# Loading a loader

**URL:** <https://forum.kirupa.com/t/loading-a-loader/283044>\
**Category:** Uncategorized\
**Created:** [March 2, 2009, 1:51am UTC](https://forum.kirupa.com/t/loading-a-loader/283044 "2009-03-02T01:51:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harrie777](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@harrie777](https://forum.kirupa.com/u/harrie777)\
**Post date:** [March 2, 2009, 1:51am UTC](https://forum.kirupa.com/t/loading-a-loader/283044/1 "2009-03-02T01:51:44Z")

</div>

I have created an as3 loader with fixed text on the left then the loaded images in the middle and the buttons on the right. I then created another loader with several buttons to load the original loader. it works but the different elements from the original loader are out of place. can someone please help?

**here is the coding for the second loader the coding for the first loader is below:**

this.stop()

var myrequest9:URLRequest=new URLRequest(“bolly.jpg”);  
var myloader2:Loader=new Loader();  
myloader2.load(myrequest9);  
stage.addChild(myloader2);  
myloader2.x=25  
myloader2.y=100

g2\_btn.addEventListener(MouseEvent.CLICK, clickbutton8);  
function clickbutton8(myevent:MouseEvent) {  
var myrequest8:URLRequest=new URLRequest(“struxxlimageloader.swf”);  
myloader2.load(myrequest8);  
}

**Coding for first loader**

var myrequest:URLRequest=new URLRequest(“struxx1.jpg”);  
var myloader:Loader=new Loader();  
myloader.load(myrequest);  
stage.addChild(myloader);  
myloader.x=275

s1\_btn.addEventListener(MouseEvent.CLICK, clickbutton1);  
function clickbutton1(myevent:MouseEvent) {  
var myrequest1:URLRequest=new URLRequest(“struxx1.jpg”);  
myloader.load(myrequest1);  
}

s2\_btn.addEventListener(MouseEvent.CLICK, clickbutton2);  
function clickbutton2(myevent:MouseEvent) {  
var myrequest2:URLRequest=new URLRequest(“struxx2.jpg”);  
myloader.load(myrequest2);  
}

s3\_btn.addEventListener(MouseEvent.CLICK, clickbutton3);  
function clickbutton3(myevent:MouseEvent) {  
var myrequest3:URLRequest=new URLRequest(“struxx3.jpg”);  
myloader.load(myrequest3);  
}

s4\_btn.addEventListener(MouseEvent.CLICK, clickbutton4);  
function clickbutton4(myevent:MouseEvent) {  
var myrequest4:URLRequest=new URLRequest(“struxx4.jpg”);  
myloader.load(myrequest4);  
}

s5\_btn.addEventListener(MouseEvent.CLICK, clickbutton5);  
function clickbutton5(myevent:MouseEvent) {  
var myrequest5:URLRequest=new URLRequest(“struxx5.jpg”);  
myloader.load(myrequest5);  
}

s6\_btn.addEventListener(MouseEvent.CLICK, clickbutton6);  
function clickbutton6(myevent:MouseEvent) {  
var myrequest6:URLRequest=new URLRequest(“struxx6.jpg”);  
myloader.load(myrequest6);  
}

s7\_btn.addEventListener(MouseEvent.CLICK, clickbutton7);  
function clickbutton7(myevent:MouseEvent) {  
var myrequest7:URLRequest=new URLRequest(“struxx7.jpg”);  
myloader.load(myrequest7);  
}
