adding child is easier than you write:
Thanks for reply,
I have tried that its not working.
Thanks and Regards,
1 person found this helpful
Why do you think that it's not working? You havn't seen any changes?
Canvas is only a canvas and Tile if I'm not mistaken don't show label property.
Try to set backgroundColor.
The Canvas holding the the Tile Container is not instantiated immediately as it is the second child of the ViewStack . try setting the creationPolicy of the viewstack to all and use addChild as Natasha said.
<mx:ViewStack x="0" y="25" id="VwStk" width="100%" height="506" creationPolicy="all">
After putting this code creationPolicy="all" in ViewStack its working.