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.
: 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
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()
...
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:
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
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
@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
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
, 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
9 matches
Mail list logo