Copy link to clipboard
Copied
I have this movieClip in the main timeline that I want to control while I am inside a certain movieClip. Is this possible?
Yes. There are a couple of ways it can be done. The least challenging would probably be to target the main timeline object using: MovieClip(root).objectName
If that is not clear and you can provide some idea of the kind of control you wish to impose, it might be easier to provide an example using this approach.
An alternative approach is to have the main timeline have an event listener assigned to the secondary object and to just have that secondary object dispatch an event for that listener.
...Copy link to clipboard
Copied
Yes. There are a couple of ways it can be done. The least challenging would probably be to target the main timeline object using: MovieClip(root).objectName
If that is not clear and you can provide some idea of the kind of control you wish to impose, it might be easier to provide an example using this approach.
An alternative approach is to have the main timeline have an event listener assigned to the secondary object and to just have that secondary object dispatch an event for that listener. The event handler function for that listener would also be in the main timeline, so targeting the main timeline object would just require using its instance name.
Copy link to clipboard
Copied
MovieClip(root).objectName works for me. Thank you very much!
Copy link to clipboard
Copied
You're welcome
Find more inspiration, events, and resources on the new Adobe Community
Explore Now