initialk
04-14-2009, 10:03 PM
I've been trying to load an external SWf file that would go directly to a specific frame. Although there may be a way to do so by adding a gotoAndStop line in the first frame of that SWF file, I'm trying to find a way to do so on the parent file instead (where the button activating this is located). This is my code thus far:
page2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
removeChild(loader);
var newSWF:URLRequest = new URLRequest("chpIntro.swf");
loader.load(newSWF);
addChild(loader);
MovieClip(loader.content).gotoAndStop(2);}
Any help is appreciated.
page2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
removeChild(loader);
var newSWF:URLRequest = new URLRequest("chpIntro.swf");
loader.load(newSWF);
addChild(loader);
MovieClip(loader.content).gotoAndStop(2);}
Any help is appreciated.