Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scenes and externally loaded swf

Status
Not open for further replies.

manaki

Programmer
Feb 19, 2004
11
CA
K I'm going to try to describe this as accurate as I can,
I have a project where we want a transition animation between scenes(that is not controlled by the user) so in a seperate scene I have the animation swf being loaded and I want the swf to be unloaded at the end of the animation and then automatically go to the next scene, I've tried using _root. on the external swf and _level0 but I can't seem to get it to work, oh by the way I have the external swf being loaded with this code
loadMovieNum("video/T1.swf", 1);
Please help! Thanks so much
amanda
 
Have you tried using a frame label in your next scene and targeting that?
 
Could I email you a mock, unless there's a place in here where I can add a zip file

Amanda
 
Targeting a scene name definately won't work, and as Adam suggested your should target a labeled frame.
Label the targeted frame in the targeted scene with a unique label (no number only labels or at least not starting off with a number) such as my_scene2 (or whatever suits you), add _level0 to your path, and target that labeled frame...

on(release){
_level0.gotoAndPlay("my_scene2");
}

The code can be used on a frame action, without the on(release) handler. You might want to unload the movie on level 1 also, or you can make it invisible adding the following to the above code...

this._visible = false;
 
So If I were to have this code on the external swf would it work?

stop();
_level0.gotoAndStop("about");

or to I need an event handler?
Thanks
amanda
 
Yes it should work! Assuming your level 1 is no longer visible if it was covering up the main movie with some background, and "about" is an unique label on the main timeline.
 
Weird, as far as I can tell it should work, "about" is the frame label. I can' t seem to get it to work, oh by the way I looking at some other posts of your on fscommand, it really helped me out.
 
You could e-mail me your mockup .fla. Hit my handle above for my e-mails. The .fla should be zipped up and in MX only format.
 
If anyone could take a look at my mock fla, I would appreciate it so so much. Please check the link above
Thanks so much
 
Can't open your T1.FLA. Crashes my computer every time!
Can open test2.fla, but for all I can see, you're not using what we suggested above, but targeting the scene name.

Maybe try to re-zip your main.fla?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top