Another loading an external SWF question!

Hello!! My very first post here :bu: and I really hope I’m not asking a question which has been asked a billion times. Sorry if I am but I have searched for weeks for the right solution to my little novice issue and I’m now feeling just slightly frustrated! It has taken me ages to just work out how to actually load the swfs!!! I must have spent thousands of hours on google over the last few weeks!

My question… I have quite a few swfs to add into my main container. I’ve attached a shortened example of my ActionScript 3 code below. All I want is a simple preloader to show up whenever a new swf is being loaded. A % text and a simple bar preloader would perfect!

A big thank you :hugegrin: in advance to anyone who can help me! You have saved me from going insane!

var swfLoader:Loader = new Loader();

var swfRequestOne:URLRequest = new URLRequest("page1.swf");
var swfRequestTwo:URLRequest = new URLRequest("page2.swf");

function swfOne (e:MouseEvent):void
{
   swfLoader.load(swfRequestOne);
   addChild(swfLoader);

}
btnOne.addEventListener(MouseEvent.CLICK, swfOne);

function swfTwo (e:MouseEvent):void
{
   swfLoader.load(swfRequestTwo);
   addChild(swfLoader);
}
btnTwo.addEventListener(MouseEvent.CLICK, swfTwo);