I’m just learning ActionScript and starting with 2.0, using Flash MX 2004 PRO.
I have created a .fla in which I load an external .swf. The .swf is actually a Flash slideshow I’d created in Flash MX . The .swf has it’s own little “controller” which comes from the Flash MX template.
My problem is that the .swf does get loaded, but then the navigation mechanism inside the external .swf doesn’t seem to work, although I have those assets in the library.
Here is the code I used to create an empty parent movieclip with a container inside, into which I load this and other .swfs:
//Creates a parent movie clip to hold the container
this.createEmptyMovieClip(“mc_1”, 0);
//creates a child movie clip inside of “mc_1”
//this is the movie clip the external .swf will replace
mc_1.createEmptyMovieClip(“container_mc”,99);
mc_1.container_mc._x=405;
mc_1.container_mc._y=105;
//Not sure I even need this step: Can anyone advise me? Here I use moviecliploader to first unload any .swf that’s playing, then load the image
MovieClipunloader.unloadClip(mc_1.container.mc);
var my_mcl:MovieClipLoader = new MovieClipLoader();
my_mcl.loadClip(“show_malconian.swf”, mc_1.container_mc);
//put event handler on the parent movie clip mc_1
mc_1.loadClip = function() {
mc_1.container_mc.gotoAndStop(1);
}
Does anyone know how I can get the navigation mechanism in the external .swf to function? When I bring in the .swf, it just loops automatically through its slideshow and I can’t use the buttons inside the .swf to click slowly through the images, etc.
Thanks!