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
For anyone who might be using this thread for help, I feel like mentioning something I only found out after some troubleshooting... to register a new variable as a property of an object, you can't use with(). For example, this code... [code] with (existing_object) { new_var = 0; } [/code] ...will NOT create new_var as a property of existing_object. It'll just be a free-floating variable (and, by the way, it'll escape MX 2004's compile-time property-checking -- you can define it in a with() statement without using a formal [b]var[/b] statement. You can only make it a property of an object with... [code] existing_object.new_var = 0; [/code] I assume that you could also do... [code] var existing_object.new_var; with (existing_object) { new_var = 0; } [/code] After Steve suggested the with() syntax, I started using it for a lot of things, but didn't know about this particular hitch. [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 »