Copy link to clipboard
Copied
Hi all,
In as2 we can use _root to access the main timeline function from the inside some movieclip or button.
In as3 how to access the main timeline function from inside the movieclip or button.can any one please tell me.
"root" is the AS3 equivalent, but using it alone will often not wortk. You more often need to cast it as some form of object before the compiler will recognize it. Using "MovieClip(root)" will usually do the trick.
Copy link to clipboard
Copied
"root" is the AS3 equivalent, but using it alone will often not wortk. You more often need to cast it as some form of object before the compiler will recognize it. Using "MovieClip(root)" will usually do the trick.
Copy link to clipboard
Copied
ok thanks
Copy link to clipboard
Copied
yes it is working
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more