Hey there guys.
Well im having trouble when i load a movie clip then unload then reload it again the code on the loaded movie clip the second time around gets all messed up like does things in the wrong order.
heres the code that i have for loading the external swf
on (release) {
if (_global.Isscreen == 0) {
_root.loadarray[0] = "dhd_screen.swf";
_root.loadscreenwindow_mc.gotoAndPlay("_up");
}
}
the reason thename of the swf is pushed into an array is because i have an animation that plays after the button is pressed and on the that frame it loads the name of the external swf thats in position 0 on the array which works fine.
and heres the code i have for unloading the external swf.
var klisten:Object = {};
klisten.onKeyDown = function() {
if (Key.getCode() == 112) {
unloadMovieNum(2);
}
};
Key.addListener(klisten);
That code users the F1 key to unload ne screen thats loaded ih depth 2.
So is their any way to fix this code to stop the externally loaded swfs code from playing up like it does on second time its loaded?
Also i heard that theres away u can load and unload the swf into a movie clip made with either the attatch movie clip code or createEmpyMovieclip ne one here have an idea on how to do that for me?
thanks for reading and thanks in advanced.