View Full Version : Return to main timeline at end of Loaded movie
malaryush
08-03-2003, 10:52 AM
I know that there are lots of posts about LoadMovie command here. I've read most of them and still can't get my problem solved - please forgive me if the answer's there and I just havn't found it!!!
I'm trying to get a random swf loaded into my main timeline, play the loaded movie swf and then return to the main timeline. The problem is tha tI can't get the Loaded movie to reurn to the main timeline once it has finished playing.
I've tried putting a GoToandPlay command into the loaded movie, but that isn't working at all.
I'm getting really fed up and know that there's an easy answer out there - I just can't find it :(
malaryush
08-03-2003, 11:11 AM
OK guys - I've got it now.
3 days banging my head against a wall and when I finally ask for help the answer seems to come along on it's own....
Ricod
08-03-2003, 11:47 PM
Funny, isn't it ? :) Welcome to the board btw.
Maybe you care to write down here what went wrong in your case ? So, when others come by with the same problem, they can search the forum and maybe will be able to solve their problem using your solution. (if it was just a syntax error or something, perhaps you can mention what you did wrong at first.)
malaryush
08-04-2003, 12:42 PM
Thanks Ricod
I'll try to remember what went wrong...
First I tried to load the swf into the main timeline. It imported fine but didn't release back to the main timeline when it finished.
I then tried to put it into a movieclip and nothing happened at all.
Until I realised that I'd forgotten to give the clip an instance name - D'oh !!!
Somewhere along the way I also found out that I had to use:
_parent.gotoAndPlay("return");
rather than:
gotoAndPlay("_parent.return");
Final answer:
On the main timeline of the main movie:
loadMovie("circle.swf", "holder");
On the last frame of the loaded movie (circle.swf):
_parent.gotoAndPlay("return");
where 'holder' is the instance name of the movie clip into which circle.swf is loaded, and 'return' is the label of the keyframe in the main movie that I wanted the clip to drop me back at once it had finished playing.
That's probably a way to simple reply, but total braindeads, like myself, should understand it....
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.