|
-
load in center
I'm using this AS to load multiple external images into mc instances on a stage.
//1
function loadImage1 ( value : String ) : void
{
loader1 = new Loader();
loader1.load(new URLRequest(value));
loader1.contentLoaderInfo.addEventListener(Event.C OMPLETE, loaderComplete1);
}
function loaderComplete1( e: Event )
{
loader1.contentLoaderInfo.removeEventListener(Even t.COMPLETE, loaderComplete1);
mc1.addChild(loader1);
}
loadImage1 ( '2kro.jpg' );
The external images always load from the upper left corner down, how can you make the image load from the center of the instance on stage?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|