How to run flash examples with Photon?

Sergiy
Sergiy
edited February 2012 in Flash (deprecated)
Hi, i have problems with flash examples, i have downloaded:
1. Photon-Flash-v3-0-0-2-RC3_SDK.zip
2. ExitGames-Photon-Server-SDK_v3-0-19-2868-RC8.zip

And that's what I get:
For Scribble demo:
ch2.png

For chat demo, I got same problem:
PhotonChat created
connecting to 127.0.0.1:4530, Lite
got Photon Response: initialize!

Only traces about initialization and nothing happens, no log in or chat window, just gray screen with "loading" title.

So, what I'm doing wrong? Do I need some extra steps for running demo examples?

Comments

  • This looks good so far.
    Maybe it's a firewall setting of your machine, not allowing Photon to listen to these ports.
    Please let us know if that's possible.
  • ports.png

    No firewall/antivirus or any other programs.
    PhotonScribbleAS3.as , line 287: 
    
    private function onPhotonResponse(event:Event) : void {
    			switch(event.type){
    				
    				case InitializeConnectionResponse.TYPE:
    					debug("got Photon Response: initialize!");
    					Photon.getInstance().sendJoinRequest("DemoScribble");
    					break;
    

    so, here flash stops, no "JoinResponse" comes from server.
  • This is kind of stupid of me: The RC8 includes a fix of the TPC/Flash protocol. We kept the fitting Flash SDK back until this server SDK was out. Then I forgot to put the Flash SDK live.

    Sorry about the confusion.
    I uploaded RC4 of the Flash SDK now. It's also containing a Loadbalancing API (compatible with the Photon Cloud).
    Please download Photon-Flash-v3-0-0-2-RC4_SDK from http://www.exitgames.com/download/photon

    I uploaded RC4 o the SDK. This includes a new LoadBalancing API (with source). Here you can see how new (custom) operations are done in Flash.
    Open folder: demos\demo_03_loadBalanced_chat\classes\de\exitgames\photon_as3\loadBalancing
    LoadBalancedPhoton.as extends PhotonCore to add features like properties.
    LoadBalancedPeer.as extends LoadBalancedPhoton (and thus PhotonCore). This adds new operations and uses SendOperation().
  • Thank you so much!