----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, October 31, 2007 1:39 AM
Subject: [flexcoders] How do I set a panel title


> In the language reference
> http://livedocs.adobe.com/flex/2/langref/mx/containers/Panel.html
> 
> it says
> |public function set title(value:String 
> <http://livedocs.adobe.com/flex/2/langref/String.html>):void 
> <http://livedocs.adobe.com/flex/2/langref/specialTypes.html#void>|
> so I tried
> myPanel set title("This is the new title" );
> 
> I didn't really expect it to work
> I got this error
> Error: Syntax error: expecting rightbrace before set.
> 
> How do I do this ?

 myPanel.title="This is the new title";

What you are seeing is the syntax for a setter function.

Paul

Reply via email to