PDA

View Full Version : Compose image at runtime.


AmiAction
11-14-2008, 04:44 PM
Hello,

does anyone knows it is possible to compose one or more images at runtime and then display it on the stage?

Thank you

fou99004
11-14-2008, 07:42 PM
The short answer, maybe. Your question is pretty vague. Are this images already in the library or do you want to load them into the swf or do you want to do something completely different?

To add a dynamically created item to the stage you use the 'addChild' method.


var txt:TextField = new TextField();
txt.text = "hello";
txt.x = txt.y = 20;
addChild(txt);