Skip to main content
Inspiring
May 13, 2007
Question

Communication between classes

  • May 13, 2007
  • 2 replies
  • 394 views
http://www.nutrixinteractive.com/blog/?p=33

This may help some coders looking to buff up on writing classes. I have written a tutorial on communicating between classes using the EventDispatcher class, this class really helped me progress in OOP and I have based this around importing XML data as well which is a pretty common request these days so should prove useful....

Hope it helps,

Simon
This topic has been closed for replies.

2 replies

Inspiring
May 14, 2007
I've been aware of EventDispatcher for a bit and used it successfully. You are correct, it is a very good thing to know about. I was having a problem last week and looking through your tutorial I saw the Delegate class. I think that will be the solution to my problem.

Thanks for the reminder!
May 14, 2007
The Delegate class is simply a wrapper for the Function.apply method and you can easily get by without it.
Known Participant
May 13, 2007
thats an awesome post, i have been working with classes in my current project and in order to accommodate for the delay in download time for variables to be imported into flash from an http php script i have been looping my movieclips then having them update but this is a perfect remedy for what i have been doing.
newtriksAuthor
Inspiring
May 14, 2007
Glad it helped you isaac :) this is the main reason I posted, when I clicked onto EventDispatch it opened so many doors for me writing classes and in AS3 it gets even easier....