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
(sigh) Okay, I glanced at the article without reading it, and then I did some programming... how do you like that, I can't access private variables from inside a with() statement! Looks like I'd better read the article ASAP... thanks for the pointer, Steve. edit: Aha! The Actionscript Dictionary itself says this: [quote] To set a variable inside a with action, the variable must have been declared outside the with action or you must enter the full path to the Timeline on which you want the variable to live. If you set a variable in a with action without declaring it, the with action will look for the value according to the scope chain. If the variable doesn't already exist, the new value will be set on the Timeline from which the with action was called. [/quote] Although that doesn't explain why the with() statemetn can't access private variables on the ... oh. Yeah. Yeah it does. If I have a class property that is a reference to an object, that object does NOT automatically have access to private properties of the class. (To put it another way, the object is not part of the class or class instance, the class simply uses it.) This is a natural result of the object model. What's more, it [i]starts[/i] to explain some of the other things I'd just been working around. (sigh) Time to rejigger my program yet again... thanks for setting me on the right track, Steve. [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] [This message has been edited by Perfect Thunder (edited 11-02-2003).] [This message has been edited by Perfect Thunder (edited 11-02-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »