View Single Post
Old 06-01-2009, 09:29 AM   #2 (permalink)
jamiemac2005
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: small flash actionscript problem!

Hey, you're gonna have to show us what's on your main timeline then. because the gotoAndPlay function is like a return function (it kills the current thread and moves to the next[example below])... Possibly putting the second bit of code(scene 2, 1) to frame 7 will help...

Example of why this doesn't work right now:
Code:
//gotoAndPlay will end the current thread of code
_root.gotoAndPlay(2);
//so this trace will not run
trace("this wont run");
But if you can't find a solution then post back with details on what frame the scene2, 1 label is on and what's in frame 7 of the root. You may find splitting this into seperate movie clips works well.

If you really want in depth help on this then i suggest zipping it up (using win/7zip/alt) and posting it up here, because flash is so customiseable it's hard to visualise what's going on.

Cheers,
Jamey

p.s. there are only a few flash developers that frequently post on TSF (me being one, FredT seems quite able as well) so if it takes a while for us to reply don't think we've abandonned you =]

Edit: re-read a little, put the gotoAndPlay("Scene 2, 1"); at the end of the walk. That's the only way i can see it happening.
__________________

Myspace

Last edited by jamiemac2005; 06-01-2009 at 09:30 AM.
jamiemac2005 is offline   Reply With Quote