wessy
wessy

Reputation: 79

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?

Upvotes: 0

Views: 929

Answers (1)

Antizam
Antizam

Reputation: 216

clip1.myFunction();

It's simple as that

If a function has any arguments then

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

Upvotes: 2

Related Questions