简体   繁体   中英

How to call a function inside a movieclip from the main timeline in AS3?

I have a movieclip named clip1 and I would like to call a function inside it named myFunction() from the main timeline itself. How do I accomplish this?

clip1.myFunction();

It's simple as that

If a function has any arguments then

clip1.myFunction(arg1, arg2...);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM