flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kessler CTR Mark J" <mark.kessler....@usmc.mil>
Subject RE: Send parameter to mxml constructor
Date Thu, 26 Sep 2013 19:13:20 GMT
Setter Dependency Injection(mxml compatible) vs constructor Dependency Injection (AS compatible).

-Mark

-----Original Message-----
From: mark goldin [mailto:markzolotoy@gmail.com] 
Sent: Thursday, September 26, 2013 2:57 PM
To: users
Subject: Send parameter to mxml constructor

I have an mxml class called Obj1. Somewhere in my code I do:
var _obj1 = new Obj1();

What I need is to provide some variable to Obj1 for its initialization. A
reason for that is because Obj1 has children that need that variable for
their initialization.
But because I cannot send a parameter to Obj1's constructor I dont know how
to solve my problem.
Any idea?

Thanks

Mime
View raw message