Page 1 of 1

GoToAndPlay Stopped working

Posted: 15 Apr 2012, 20:40
by Bosskafett
Okay, before I join a different room in SmartFoxServer, when I go to change a movieclip's frame on the avatar's movieclip it works fine, right? But when I change to a second room, the user variables update fine (meaning the movieclip in the avatar mc is going to the correct frame by the user variable on other screens) but the standard gotoAndPlay command doesnt seem to happen on my screen.

Code: Select all

E.g. : function changeHeadItem(){
      myAvatar.head.gotoAndStop(2);
      smartfox.setUserVariables({head:2, init:false});
      }
Oh and myAvatar is already defined as your personal avatarClip with the ID (myAvatar:MovieClip = avatarMC['_avatar' + id];) and id is also defined properly.

So, the clip does work fine in the first room joined - the second however--- it doesnt appear right on my screen.


Any ideas?
Cheers and sorry if this is unclear; its quite difficult for me to explain :S
Regards - Jack

Re: GoToAndPlay Stopped working

Posted: 15 Apr 2012, 21:46
by rjgtav
Hello, I'm sorry but that's a general ActionScript question, and not related with SFS at all. That said, you have to look somewhere else for the answer to your problem, like for example Google, or the ActionScript forums. That problem you're facing is because either the function isn't being called, or the "head" movieclip isn't being reached, which means, something there is null. I suggest you to do some traces in order to find what is null and where the problem is.