Link to home
Start Free TrialLog in
Avatar of mt600
mt600

asked on

Creating MX2004 V2 Components - How do I access the width property in code?

I have created a MX2004 component which works really well.  

As a final touch, i would like to use the W (width) and H(height) properties from the component box in my code.  

How can I reference these properties in code?

This is a little urgent so i've put the points up a bit.
Avatar of negatyve
negatyve

Is your component extending movieclip or UIObject?
Avatar of mt600

ASKER

it extends UIComponent
ASKER CERTIFIED SOLUTION
Avatar of negatyve
negatyve

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mt600

ASKER

Thankyou

I believe I have spotted a glitch in v2 components.  Although I was using that coding, when i compiled my clip, the width variable then read as 0 (although in live preview and in my pre-compiled version, the width was read fine).  I'm not sure what I did, although i tidied a lot of code, but it's working now so thankyou.  

I needed someone to confirm it and an example so i knew i wasn't going mad.  Thanks again, just what the doctor ordered.