PDA

View Full Version : How to check if a Sprite/CompositeSprite is visible or hidden?



eric.ho
14 May 2013, 9:02 AM
Hi, what function or attribute would I examine to check if an Ext.draw.Sprite or CompositeSprite is visible or hidden?

I'm using Ext JS 4.1

Thanks.

eric.ho
14 May 2013, 9:07 AM
Currently, I'm writing my own "isVisible()" function which checks the CompositeSprite.collect("attr").hidden attribute. This there a better approach? Thanks.