On 11/25/05, Johannes Nel <[EMAIL PROTECTED]> wrote:
> public function MenuItem()
> {
> super();
> this.className = "MenuItem";
>
> trace("getStyle >>" + getStyle('background-color') + "@@ "+
> getStyle('backgroundColor'));
> }
Styles are not set up until the object is "initialised", and that
happens when it is added onto the display list using addChild(). So a
call to getStyle() in the c'tor will return nothing.
I think you want to use the "initialize" event.
Manish
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/