How to get dimensions of the SimpleButton implemented in as2 component

Hi all,

Need urgent help.

Writing as2 component which uses **SimpleButton **class as an external class from component where I pass skin elements references, everything is fine.

Now problem is:-

  1. When I call the instance of the class, I am *unable to get the dimensions of the button created as the skin may have different dimensions. It always return 16x16 which is the size of default SimpleButton skin. I implemented setters and getters also but in vain.

  2. Secondly when I invalidate the instance due to change in properties it gives an effect of **flickering **and clearly shows, as complete component has reloaded (**reloading **is in fact required but not to show to user). I did the same in as3 worked very fine.
    I checked and concluded that the component shows the *buttons only on complete loading of all the *buttons in component.

*buttons ~ SimpleButton
Solution/Suggestion welcomed/appreciated.
Sorry but code cann’t be provided as is confidential.