I load an image from a url and add it to the stage.
I need a way to add some text to the image before loading i开发者_运维知识库t to the stage !
NOTE: add text over the image after it has been loaded
thanks in advance.
NOTE: Image type mx : Image
You could just use a composite component then. Any with absolute positioning should do.
Just make sure to add the label as the last subcomponent.
For example:
<mx:Canvas width="100" height="100">
<mx:Image source="http://www.gravatar.com/avatar/" width="100%" height="100%"/>
<s:Label text="This is your text"/>
</mx:Canvas>
精彩评论