Hi,
I have created a function to load up my movies what I would like to do is two things
(i) change the ldr to a movieclip
(ii) add an extra parameter to add an instance name movieclip when I call the movieclip
like this…
loadMyImage(‘images/headers/logo.png’, 80, 20, ‘myheader’ );
Thanks,
loadMyImage(‘images/headers/logo.png’, 80, 20 );
function loadMyImage(imageURL, xPos, yPos) {
var ldr:Loader = new Loader();
var url:String = imageURL;
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
ldr.x= xPos;
ldr.y= yPos;
}