Help with x and y positions and layering for external swf

Could someone please provide the actionscript for when you are loading an external swf to set it at a certain x/y location and also how to bring it to the top. Thanks.

Hi,

 create a empty movieclip and use the MovieClipLoader class to set the x/y positions. 

 below is the sample code: 

createEmptyMovieClip("holder_mc", _root.getNextHighestDepth());
var mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(mc:MovieClip) {
    mc._x = 200;    // Set your X position here.
    mc._y = 200;    //  Set your Y position here.
};
mcl.addListener(mclListener);
mcl.loadClip("your.swf", holder_mc);
   

:party:[quote=pandu_kirupa;2333470]Hi,

create a empty movieclip and use the MovieClipLoader class to set the x/y positions.

below is the sample code:


createEmptyMovieClip("holder_mc", _root.getNextHighestDepth());
var mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(mc:MovieClip) {
    mc._x = 200;    // Set your X position here.
    mc._y = 200;    //  Set your Y position here.
};
mcl.addListener(mclListener);
mcl.loadClip("your.swf", holder_mc);
   

[/quote]