Papan Das
"An animator is an actor with a pencil"
Monday, December 21, 2009
Dynamically load and display an image in AS3
Task: You need to dynamically load and display an image.
var request:URLRequest = new URLRequest("image.png");
var loader:Loader = new Loader();
loader.load(request);
loader.x = 100;
loader.y = 100;
loader.rotation = 20;
loader.alpha = .5;
addChild(loader);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment