OZONE Asylum
Forums
Multimedia/Animation
erm... attachMovie in class constructors?
This page's ID:
11466
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Well, I found [i]a[/i] solution! [code] [i]// in the class constructor...[/i] this.onKeyDown = function() { [i]// actions referring to variables within constructor's scope[/i] } [i]// in variable declaration [/i] var onKeyDown:Object; [/code] Essentially, I'm registering the class itself as a listener -- which is what I should do anyway, I suspect, since the class is the "view" element of a model-view architecture. I have one class that sets up and animates graphic and UI element; one class that accepts user input (this one), and one class that governs the underlying data model of the program. As long as it works, and as long as I [i]think[/i] I'm going by the book, I'm happy. Sleeping on it was all it took for me to get the idea. Now, I [i]did[/i] sleep fourteen hours (eep!), so I damn well better have come up with some ideas... [url=http://faq.ozoneasylum.com/1250]Cell 1250[/url] :: [url=http://www.alanmacdougall.com]alanmacdougall.com[/url] :: [url=http://www.gurusnetwork.com/tutorials/illustrator/index.html]Illustrator tips[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »