Sounds like you want something like:
<mx:VBox mouseDown="highlightme(event)"/>
function highlightme(event){
event.target.setStyle("borderColor",0xff0000);
}
standard disclaimers about code before the first cup of coffee...
At 08:39 AM 5/14/2005, you wrote:
>In a vbox, I have a group of child panels created dynamically with a repeater.
>
>What code should I use on the mousedown to allow a user to select any one
>of the panels, and what property do I change to highlight the selected panel?
>
>Ideally what I'd like to do is outline the selected panel in a specified
>color.
>
>Can anyone offer a code sample showing how to do this?
>
>- Tom
>
>
>
>
>
>
>----------
>Yahoo! Groups Links
> * To visit your group on the web, go to:
> *
> <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/
>
>
> *
> * To unsubscribe from this group, send an email to:
> *
> <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>
> *
> * Your use of Yahoo! Groups is subject to the
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
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/