Forum ActionScript 3.0 [URGENT] Got Error like a null properties at handlemessage??

Problems and discussions relating to ActionScript 3.0 here.

[URGENT] Got Error like a null properties at handlemessage??

Postby sp00nart » February 21st, 2013, 8:59 am

what happenned to my player io ?
it alwasy got error lie a null properties , i hv some case like below:
1. i handle message "UserJoined" in myFlash.fla and only displaying inside textbox.text = String(info).. which is just send a player.Name, cz i sent it from my server like this Broadcast("UserJoined",player.Id,player.Name);
2. i run the server at the first time.. then run myFlash.fla (swf) .. and voilaaa .. it works like this :
first time :
Image
NOTE : i hv texfield named "debugText"

ok it works indeed... but the problem is now :
1. i close myFlash.swf.
2. in here im not close my server.. not at all....
3. so im just re-run myFlash.fla (swf)... and this what i got :

2nd times (without close my server):
Image

Question :
1. am i doing something wrong??
2. am i have to re-run the server if i just want to edit myscript in FLASH ??

i got this error after i updated my player.IO
i hv never got error message like this a couple month ago while doing the same way like this..

please help me here... :)

regards
spoonart
sp00nart
 
Posts: 5
Joined: September 27th, 2012, 6:53 am

Re: [URGENT] Got Error like a null properties at handlemessa

Postby Benjaminsen » February 21st, 2013, 9:40 am

No you should not get an error by simply re-running the flash file. Can you possible upload the project somewhere? :)
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: [URGENT] Got Error like a null properties at handlemessa

Postby sp00nart » February 21st, 2013, 9:50 am

ahh finally... u come.. :D

here it is .. my simple project.. http://www.mediafire.com/?axmjzutpf2y6erz


i would like to make a multiplayer pong game, but this kind of error really make me stuck , so i just do something really simple like that but still hv no idea why its happen..
sp00nart
 
Posts: 5
Joined: September 27th, 2012, 6:53 am

Re: [URGENT] Got Error like a null properties at handlemessa

Postby Benjaminsen » February 21st, 2013, 10:19 am

The second time you join, the join happens so fast that the game does not have enough time to jump to frame "game".
Add gotoAndStop("game"); as first line in handleConnect(client:Client) and your problem will go away :)
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: [URGENT] Got Error like a null properties at handlemessa

Postby sp00nart » February 21st, 2013, 10:26 am

oop sorry ... i hv edited that script already..
wrong uploaded :oops:

here the previous *.fla ..
http://www.mediafire.com/?8a968o2z9py7xgv

but i do some edited script, i just add the connection.addHandleMessage inside the handlejoin function...
n still hv same problems...
sp00nart
 
Posts: 5
Joined: September 27th, 2012, 6:53 am

Re: [URGENT] Got Error like a null properties at handlemessa

Postby sp00nart » February 21st, 2013, 10:29 am

ahhh finally... it working so well now.. thx vary much :)
i apreciate that alot ...

NOTE : forget about my last uploaded file , its working fine now ... :lol:


regards
spoonart
sp00nart
 
Posts: 5
Joined: September 27th, 2012, 6:53 am


Return to ActionScript 3.0



cron