Re: [flexcoders] Re: MXML Constructor

2006-09-28 Thread Tom Chiverton
On Wednesday 27 September 2006 22:39, Gordon Smith wrote: the latter runs as early as possible. Using a preinitialize handler would be a better choice. I'd bet the original poster would be surprised if his 'constructor' didn't have access to all the things the creationComplete handler does.

RE: [flexcoders] Re: MXML Constructor

2006-09-28 Thread Gordon Smith
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, September 28, 2006 7:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: MXML Constructor On Wednesday 27 September 2006 22:39, Gordon Smith wrote: the latter runs as early as possible

Re: [flexcoders] Re: MXML Constructor

2006-09-27 Thread Tom Chiverton
On Tuesday 26 September 2006 16:57, tobiaspatton wrote: MyComp.mxml mx:Script ![CDATA[ public function MyComp() { super(); // do some constructor stuff } ]] /mx:Script ITYM: xml . mx:Something creationComplete=setUp() ...

[flexcoders] Re: MXML Constructor

2006-09-27 Thread maxym.hryniv
mx:Something creationComplete=setUp() lol :) you can define a constructor without parameters in code behind. http://www.adobe.com/devnet/flex/quickstart/ building_components_using_code_behind/ - about code behind approach. - Max -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Re: MXML Constructor

2006-09-27 Thread Johannes Nel
if he wants a constructer i would imagine that innitialize is betterOn 9/27/06, Tom Chiverton [EMAIL PROTECTED] wrote:On Tuesday 26 September 2006 16:57, tobiaspatton wrote: MyComp.mxml mx:Script![CDATA[ public function MyComp() { super(); // do some constructor stuff } ]] /mx:Script ITYM:xml

Re: [flexcoders] Re: MXML Constructor

2006-09-27 Thread Tom Chiverton
On Wednesday 27 September 2006 12:42, maxym.hryniv wrote: http://www.adobe.com/devnet/flex/quickstart/ building_components_using_code_behind/ That just feels *wrong*... -- Tom Chiverton Helping to interactively e-enable robust information

RE: [flexcoders] Re: MXML Constructor

2006-09-27 Thread Gordon Smith
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Wednesday, September 27, 2006 1:40 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: MXML Constructor On Tuesday 26 September 2006 16:57, tobiaspatton wrote: MyComp.mxml mx:Script ![CDATA[ public

[flexcoders] Re: MXML Constructor

2006-09-26 Thread tobiaspatton
I think you just need a public function in your component with the same name as the component with no arguments. This will be called as the constructor of your component. You can't have a constructor that takes parameters though. eg. MyComp.mxml mx:Script ![CDATA[ public function

RE: [flexcoders] Re: MXML Constructor

2006-09-26 Thread Gordon Smith
, 2006 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: MXML Constructor I think you just need a public function in your component with the same name as the component with no arguments. This will be called as the constructor of your component. You can't have a constructor