----- Original Message -----
From: Mark Shen
To: [email protected]
Sent: Friday, December 21, 2007 5:51 PM
Subject: Re: [flexcoders] how to pass varible between screens?
yes I use singleton and I can bind the variable.
<mx:Label id="temp1" x="397.5" y="1549" text="{modelLocator.sID}" />
My question is how to use modelLocator.sID in actionscipt.
I use the statement like
filePrefix = modelLocator.sID;
It should look more like:
filePrefix = ModelLocator.getInstance().sID;
Check out singletons again!
Paul
But no event call the statement .the filePrefix is empty.
Thanks
----- Original Message ----
From: Paul Andrews <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, December 21, 2007 12:45:37 PM
Subject: Re: [flexcoders] how to pass varible between screens?
Mark, check out the use of singletons, a singleton will solve your problem.
Paul
----- Original Message -----
From: "markflex2007" <markflex2007@ yahoo.com>
To: <[EMAIL PROTECTED] ups.com>
Sent: Friday, December 21, 2007 5:09 PM
Subject: [flexcoders] how to pass varible between screens?
> Hi,
>
> I have some screens under ViewStack like this
>
> <mx:ViewStack>
> <view:Form1View />
> <view:Form2View />
> <view:Form3View />
> <view:ThankyouView />
> </mx:ViewStack>
>
> I have a variable in Form1View but how I can get the variable in
> Form2View.
>
> backend language have session variables,I am not sure if Flex also
> have the same function like session variable.
>
> Please help me out.Thanks
>
> Thanks
>
> Mark
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
> Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups.
com
> Yahoo! Groups Links
>
>
>
>
------------------------------------------------------------------------------
Never miss a thing. Make Yahoo your homepage.