This content has been marked as final. Show 3 replies
In your package, SMUComm, add:
...and add 'Application.application' to your controls references, like:
Application.application.statusBox.text="Data sent from Earth...";
Your example would work in adding Application.application however it is not a very robust way if you ever need to reuse the class somewhere that does not have the buttons in a different place other then Application.application. A better way to scope this would be to set references to all of the components you need to use internally when you declare the class itself. Example as follows.
Thanks to both of you!
Kaotic, I've implemented your changes and mixed with what I had written myself this morning, my test application just took a big leap forward. I truly appreciate the work you did cleaning up and improving my code!
(My boss also picked me up a copy of O'Reilly's ActionScript 3 Cookbook... it's a great way for a beginner like myself to start learning Flex/Flash.)
Thanks again to all,