The following example shows how you can automatically resize a Flash ActionScript 3.0 UILoader container by setting the Boolean scaleContent property. A value of true indicates that the image is automatically scaled to the size of the UILoader instance; a value of false indicates that the loaded content is automatically scaled to its default size.
Full code after the jump.
// ActionScript 3.0 /* Requires: * - UILoader component in Flash library */ import fl.containers.UILoader; var uiLoader:UILoader = new UILoader(); uiLoader.scaleContent = false; uiLoader.source = "http://www.helpexamples.com/flash/images/image1.jpg"; uiLoader.move(10, 10); addChild(uiLoader);
{ 2 comments… read them below or add one }
after the jump my ass. where is the link?
Anonymous,
That’s the post. The full code. The whole thing.