I'm having a some trouble with loading an SWF into my main SWF.
Here's what I'm doing:
I have a main SWF with 4 frames. I want to click two buttons that will then load two SWF's into Frame 2 and Frame 3. Below is the script I wrote for the buttons. The earlywork_btn needs to load RColeman_EarlyWork.swf into frame 2. This swf is a slide show. The currentwork_btn needs to load RColemna_CurrentWork.swf into frame 3.
HERE IS MY SCRIPTS FOR MY BUTTONS:
stop();
function onbiographybuttonClick(evt:MouseEvent):void {
gotoAndStop("1");
}
biography_btn.addEventListener(MouseEvent.CLICK, onbiographybuttonClick);
function onearlyworkbuttonClick(evt:MouseEvent):void {
gotoAndStop("2");
}
earlywork_btn.addEventListener(MouseEvent.CLICK, onearlyworkbuttonClick);
function oncurrentworkbuttonClick(evt:MouseEvent):void {
gotoAndStop("3");
}
currentwork_btn.addEventListener(MouseEvent.CLICK, oncurrentworkbuttonClick);
function oncontactbuttonClick(evt:MouseEvent):void {
gotoAndStop("4");
}
contact_btn.addEventListener(MouseEvent.CLICK, oncontactbuttonClick);
And in Frame 2 I have this script to load RColeman_EarlyWork.swf. It works, however, once it loads then it is in my enitre main swf file, basically each time I click a button it is ontop of the content in the other frames. How do I make it just stay in Frame 2? Also, I can only load this one swf file, not the other one into FRAME 3.
HERE IS MY SCRIPT TO LOAD THE SWF FILES:
var ldr:Loader = new Loader();
var url:String = "RColeman_EarlyWork.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
I'm desperate, PLEASE HELP!!!