Tuesday, May 8, 2012

Can We add object of SpriteAsset to VBox or HBox in flex?

Can We add object of SpriteAsset to VBox or HBox?

I have an object of class SpriteAsset. I want to make it visible/invisible at runtime.

As there is no methode like setVisible() for SpriteAsset.
i tried to encapsulate object of SpriteAsset in VBox or HBox so that I can try setVisible() on it.

I found that the code doesn't run when I did


objVBox.addChild(objSpriteAsset);


The code compiles fine.

Any solution to this?





No comments:

Post a Comment