RE: central up to date data

"David Ngo" <[email protected]> Fri, 19 Oct 2007 19:49:54 -0400
Newsgroups gmane.comp.web.flashcoders.devel
Message-ID <41322AD051F44FE9A0FCEC0544EFF119@DavidPC>
You may want to look into using a Singleton or static class, depending on
how you have things implemented and what the desired functionality is.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tom Huynen
Sent: Friday, October 19, 2007 5:41 AM
To: [email protected]
Subject: [Flashcoders] central up to date data

Hi List!

I'm using a class named utils.as to store data like color values in my
project.
This class is then extended by let's say the application.as and the menu.as.

Next in the application class I change the value of a var in the utils
class.
When retrieving this value from the third (menu) class I still get the old
value instead of the new one.

What is the best thing to do when I want to keep my data central, up to date
and accesible for all classes in my project?

Kind regards,

Tom
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders