[flexcoders] Change Color of panel from a function

2008-12-29 Thread timgerr
Hello all,
I am having troubles finding information on how to change the border
color of a panel from a function, here is my code:
mx:Panel id=editPanel layout=absolute width=330 height=65%
right=10 top=128
  mx:Button x=122.5 y=10 click=EditMe id=nodeEditMode
label=Edit Mode/
  mx:Label x=10 y=37 text=Name/
  mx:TextInput x=10 y=63 id=node_Name width=218
editable=false/
/mx:Panel

private function EditMe():void
{
  Not sure what to put here
}

I don't see the ability to change the color when I do editPanel. .
Thanks for the help,
timgerr





Re: [flexcoders] Change Color of panel from a function

2008-12-29 Thread Manish Jethani
On Tue, Dec 30, 2008 at 10:23 AM, timgerr tgallag...@danati.com wrote:
 Hello all,
 I am having troubles finding information on how to change the border
 color of a panel from a function, here is my code:

[snip]

http://blog.flexexamples.com/tag/bordercolor/

You'll have to call the setStyle method on the Panel object.

Manish