-
1. Re: Maybe the solution
har678 Jul 5, 2009 2:08 AM (in response to CarlBe1)Ok. I see your problem. I am a new Adobe Flash User and dont know much, but I have figured out, that if you have a layer named "Background", or something like that, and it is not a Tween Motion, and has no script in it, just place a "stop();" at the start of the scripting dialog. Also, to make the tween work, you must place this on the button that goes to that certain scene: (We will use "doClickButton21" as an example.)
myButtonName.addEventListener(MouseEvent.CLICK,doClickButton);
function doClickButton21(e:MouseEvent):void {
trace:("clicked");gotoAndPlay(1,"SceneName");gotoAndPlay(1, "LayerName");
}
Hopefully this helped. If you dont understand, just say so here and I will try and make it more simple.
-
2. Re: GotoandPlay???
Ned Murphy Jul 5, 2009 2:28 PM (in response to CarlBe1)Can you explain what you mean when you say it cannot accept a stop command? If you mean it doesn't stop despite having a stop(); command, then chances are some other code in the scene is telling it to continue.
-
3. Re: Maybe the solution
kglad Jul 5, 2009 2:37 PM (in response to har678)i believe you're trying to be helpful, har. but, you should wait until you're more familiar with flash/actionscript before giving advice.
-
4. Re: GotoandPlay???
CarlBe1 Jul 5, 2009 11:34 PM (in response to Ned Murphy)Hi
I think that I have managed to crack the code!!
So I will close this for the moment - many thanks for taking the time to look at it.
Carl
-
5. Re: Maybe the solution
har678 Jul 7, 2009 2:29 AM (in response to kglad)Sorry about the false info before. I ahve been working 2 days on this, so I should be right by now. Watch the preview movie that I made. It will hopefully solve your problem. If this is wrong, I apologize... again.
Sorry in advance if incorrect. LOL
Edit: It wont allow the movie, so I just uploaded the ZIP file which contains all the files.
-
SceneButton-SceneTween.zip 21.3 K
-


