Shared objects are a little like cookies. You can find more details at
http://learn.adobe.com/wiki/display/Flex/Shared+Objects
--- In flexcoders@yahoogroups.com, "spuy...@..." wrote:
>
> Thanks. I am not even certain what you mean by dispatching a custom event.
> I have heard of Shared Objec
Of Gordon Smith
Sent: Friday, August 07, 2009 2:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: How to make variables persist across
application
The simplest way to use custom events is to use the mx.events.DynamicEvent
class.
When the application creates the LoginPopu
...@ymail.com
Sent: Friday, August 07, 2009 11:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to make variables persist across application
Thanks Gordan. Using the first option worked. I am also interested in the
second option but am not certain where to start. Could you provide
Static properties are properties bound to a class instance. This is usually
the way I would do it.
you create a class login info as normal then inside you can put
public static var userId:String;
This can then be accessed anywhere in the application by LoginInfo.userId as
stated by Gordon. The
Before you call the close() method, dispatch a custom event or use
this.parentApplication and store the data in the application level.
And then pass it to viewstack children.
Thx.
Shameer
--- In flexcoders@yahoogroups.com, "spuy...@..." wrote:
>
> Is there a way to have the variables I set in a
you would declare an AS subclass
of Event instead of using DynamicEvent, but that's another lesson.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of spuy...@ymail.com
Sent: Friday, August 07, 2009 11:36 AM
To: flexcoders@yahoog
Thanks. I am not even certain what you mean by dispatching a custom event. I
have heard of Shared Objects though. Can you point me to a goo resource on how
to do this?
Thanks,
Lee
--- In flexcoders@yahoogroups.com, "valdhor" wrote:
>
> Or you could dispatch a custom event to your applicatio
Thanks Gordan. Using the first option worked. I am also interested in the
second option but am not certain where to start. Could you provide a little
more detail?
Thanks,
Lee
--- In flexcoders@yahoogroups.com, Gordon Smith wrote:
>
> You have several options. Perhaps the simplest is to dec
Or you could dispatch a custom event to your application that contains a user
info object.
Or you could save the user info data to a shared object.
--- In flexcoders@yahoogroups.com, Gordon Smith wrote:
>
> You have several options. Perhaps the simplest is to declare
>
> public var userid
9 matches
Mail list logo