So
then two mxml files will be accessing the same actionscript. In one mxml, the
member is set and the other mxml accesses the member. That might work for me.
But can two mxml files access the same actionscript?
-Shweta
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mink, Joseph
Sent: Friday, October 14, 2005 1:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem with repeater and datagrid -- Please help!Or you can create a static actionscript class with a private member. Set that member, and then everyone who accesses the static class will get the same value for that static member:class StaticClass{public static var theValue;}...StaticClass.theValue = something;...if (StaticClass.theValue == something)...Does that help?
On 10/14/05, Parekh, Shweta - BLS CTR <[EMAIL PROTECTED]> wrote:
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Friday, October 14, 2005 12:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Problem with repeater and datagrid -- Please help!
> 1. Are there global variables in Flex so that I can take the result from
> remote call in a global variable and then use it anywhere -- in my case in
> the child component?
You can save the result in the application and then refer to it from
child components using the _expression_ "parentApplication.myResult"
(can even bind to it I guess).
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.