I do not think that this passes any data but it does let you grab an instance (usually of a singleton) so that you can use setters and getters to pass the data. If the object is not a Singleton, I am not sure which instance you get so it is only part of the solution.

Look at the book "Head First Design Patterns" if you want to see how communication can be achieved.

Look at the Observer pattern and the Factory for a start. Other books will have these common patterns but I have found "Head First Design Patterns" to be clear and a fairly easy read (lots of pictures).


Ron

Andrew 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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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