Hello,
How could i get a normal movieclip to display external .swf
I have 3 buttens i press one and i would like the movieclip to get a file named /home.swf and every butten would load a diffrent file, how would i go around doing this ?
Hello,
How could i get a normal movieclip to display external .swf
I have 3 buttens i press one and i would like the movieclip to get a file named /home.swf and every butten would load a diffrent file, how would i go around doing this ?
What’s the instance name of the movie clip that you want to load the .swf’s into? And is it on the root timeline or inside another movie clip?
path.to.movieclip.loadMovie("movie.swf");
it wil replace the movieclip. If you want to load it into that movieclip, you’ll first need to create an empty mc:
path.to.movieclip.createEmptyMovieClip("container_mc",0);
path.to.movieclip.container_mc.loadMovie("movie.swf");
[left]path.to.movieclip.createEmptyMovieClip(“container_mc”,0);
path.to.movieclip.container_mc.loadMovie(“movie.swf”);[/left]
[left] [/left]
[left]so if my movieclip was named “hello” the code will be:[/left]
[left] [/left]
[left][left]hello.createEmptyMovieClip(“container_mc”,0);
hello.container_mc.loadMovie(“movie.swf”);[/left]
[left] [/left]
[left] [/left]
[/left]
yeah… it would insert swf-file movie.swf into the movieclip hello as if it was a normal internal movieclip named container_mc…
:: Copyright KIRUPA 2024 //--