getInstance() is usually used for accessing Singleton classes.  These
are classes of which only a single instance can exist.  This way any
class can call getInstance (a static method) to get the class, and
that class can store shared data.

Take a look at this:
http://en.wikipedia.org/wiki/Singleton_pattern
for an overview of singletons.  It's a very useful design pattern.

 -Andy

On 4/24/07, Andrew <[EMAIL PROTECTED]> wrote:
Is there also some way to do this using a command called getinstance() ?
I've seen it in some AS script and it looks like it passes data between
classes?

Cheers
Andrew

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to