This might be an interesting thread for some people - it might be an idea to
change the thread name for the saga..
----- Original Message -----
From: Michael Schmalle
To: [email protected]
Sent: Wednesday, October 22, 2008 2:52 PM
Subject: Re: [flexcoders] Re: Still no one knows ? Please help.
Hi,
Since you are using an itemRenderer, this could be tricky. You need to find
out where the parent is (MenuItem instance) and cast that reference to
IStyleClient.
IE
var color = IStyleClient(parent.parent).getStyle("color");
Mike
On Wed, Oct 22, 2008 at 9:40 AM, itdanny2002 <[EMAIL PROTECTED]> wrote:
Thank you very much.
Hi, may I know how to get parent style ?
when I get the style, it returns error.
I found that the stylename is null and
return undefined when got "Color" style.
How can it search the chain and get its parent
style ? Many Many Thanks.
--
Teoti Graphix, LLC
http://www.teotigraphix.com
Teoti Graphix Blog
http://www.blog.teotigraphix.com
You can find more by solving the problem then by 'asking the question'.