PDA

View Full Version : Help, linking one swf to a scene in another swf


snowysnowpops
04-29-2005, 10:03 AM
Hi there
I have a problem linking one swf file(quiz.swf) to a certain scene (insects) in my main swf(index.swf). In other words linking one swf file to scene in a different swf file???????
I am new to flash actionscript and if anyone can help me out with my problem i would be greatfull under real pressure.

Thanks one and all

ultradeq
04-29-2005, 11:43 AM
just put this AS to index.swf, scene "insects", frame 1 (movie clip "container_mc" has to be on the stage) :


container_mc.loadMovie("quiz.swf");

or with MovieClipLoader class

var quiz_mcl:MovieClipLoader = new MovieClipLoader();
quiz_mcl.loadClip("quiz.swf", container_mc);


=========================================
http://ultrapeace.net

snowysnowpops
04-29-2005, 12:43 PM
Thanks but sorry i meant to say i am making a CD ROM, it has to be able to link just using actionscript from swf to a scene in another swf

ultradeq
04-29-2005, 02:19 PM
In FMX+ you can use LocalConnection class ... see Help in Flash

Barn
04-29-2005, 05:10 PM
Don't use scene names for navigation. For one thing, they don't really even exist in the compiled movie -- they are an authoring construct for authoring convenience, and can only be addressed from the _root timeline of a level, and they can only exist in the _root timeline of a level. They CANNOT be addressed from within a movieclip.

Use frame labels.