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'.