kbd
June 3rd, 2008, 06:38 AM
:vader: Hello,
I hope this is a simple question.
I have a class file that is loading a SWF file.
I cannot seem to access the loaded movie from the document class? What am I missing?
import extransLoader;
var newExTransLoader=new extransLoader;
newExTransLoader.nextMovie="movie1.swf";
newExTransLoader.setexLoader();
addChild(newExTransLoader);
button1.addEventListener(MouseEvent.CLICK, clickButton);
function clickButton(event:MouseEvent):void {
if(newExTransLoader.nextMovie!="movie1.swf"){
newExTransLoader.nextMovie="movie1.swf";
trace(newExTransLoader.nextMovie);
newExTransLoader.gotoAndPlay("outro");//<---------This is the line in question.
}
}
Any help would be greatly appreciated!!!!
I hope this is a simple question.
I have a class file that is loading a SWF file.
I cannot seem to access the loaded movie from the document class? What am I missing?
import extransLoader;
var newExTransLoader=new extransLoader;
newExTransLoader.nextMovie="movie1.swf";
newExTransLoader.setexLoader();
addChild(newExTransLoader);
button1.addEventListener(MouseEvent.CLICK, clickButton);
function clickButton(event:MouseEvent):void {
if(newExTransLoader.nextMovie!="movie1.swf"){
newExTransLoader.nextMovie="movie1.swf";
trace(newExTransLoader.nextMovie);
newExTransLoader.gotoAndPlay("outro");//<---------This is the line in question.
}
}
Any help would be greatly appreciated!!!!