-
accessing a var that is in the mainClasss
Hi was having a problem, that i already solved but i don´t understand te solution.
To trace a variable that is in the main class i have to use this:
trace(myClass(root).amount);
While i would expect it to be this:
trace(root.myClass.amount);
When do i have to use the dot syntax and when the parentheses?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|