Hi, I would like to do something like this:
<mx:SetProperty target="{accessManager}" name="webApplication"
value="{webApplication}" />
In other words when I change state and create an accessManager component
I'd like to use SetProperty to accomplish this:
accessManager.webApplication = webApplication;
But accessManager.webApplication always ends up as null even though
webApplication is created before the state change. I guess this is
because accessManager isn't fully initialized yet??
So instead I did this which works:
<mx:State name="ManageAccess">
<mx:AddChild position="lastChild">
<manageAccess:AccessManager id="accessManager"
creationComplete="initAccessManager()"/>
</mx:AddChild>
</mx:State>
<mx:Script>
<![CDATA[
private function initAccessManager():void {
accessManager.webApplication = webApplication;
}
]]>
</mx:Script>
But that is a lot less descriptive and much more verbose!
Does anyone know if SetProperty can assign a reference? Am I missing
something simple?
Yours truly,
-Brian
--
______________________________________________________________________
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: POD?? E-mail: [EMAIL PROTECTED]
(Enter through LB99) Web: http://www.ryerson.ca/~blesser
______________________________________________________________________