Hi Tobias,

There are a few examples in doc for implementing an interface in MXML.
You can find one in the "Creating Advanced MXML Components" chapter of
the "Creating and Extending Flex Components" book, and another in the
"Working with Cell Editors" in the "Developing Flex Applications" book.

Both books are available here:
http://labs.macromedia.com/wiki/index.php/Flex:Release_Notes#Beta_1_docu
mentation

Stephen

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tobiaspatton
Sent: Monday, March 13, 2006 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to implement custom drawing for selected
list items?

Hi Manish.

I never knew about the "implements" tag for MXML components. It seems
obvious now, but I never saw it mentioned in documentation or example
code.

My custom selection behavior is mostly working now. I've got one anomaly
that I need to track down. If it starts looking like a bug, I'll post a
follow-up.

Thanks again for your help. It's nice to have a mailing list with
representatives from Adobe that are so repsonsive.

Tobias.

--- In flexcoders@yahoogroups.com, "Manish Jethani" 
<[EMAIL PROTECTED]> wrote:
>
> On 3/11/06, tobiaspatton <[EMAIL PROTECTED]> wrote:
> 
> > I take this to mean that my VBox-based list item renderer should 
> > implement this interface,  but I don't know how to accomplish
this.
> > If my component were an AS file, it would be simple. But how can
an
> > MXML component implement an interface?
> 
> Simply use the "implements" attribute:
> 
> <VBox implements="mx.controls.listClasses.IDropInListItemRenderer">
>  ...
> </VBox>
> 
> Or you can just reference the DataGrid directly from your item 
> renderer's code (there's no need to implement this interface).
> 
> Manish
>






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



 




--
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/
 



Reply via email to