Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I assume "MovieClip" is the instance name of the movie clip right? What if there is no instance name, because I have placed 200 of the same movieclip on stage manually? But I would like to access the variable on the root level / main timeline. How would the code look like?
Copy link to clipboard
Copied
MovieClip is not an instance and cannot be an instance name (or anything other than an adobe defined class) and is a reserved word. in my first post here i used it to coerce animate into understanding parent was a movieclip. otherwise, the compiler might think there's an error.
in as3, the root timeline can always be referenced by,
root
and, for some things you may need to cast it as a movieclip (assuming it is one)
MovieClip(root)
Copy link to clipboard
Copied
Thanks so much - for helping me out in this old thread!
Copy link to clipboard
Copied
you're welcome
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied