cloudpaster.blogg.se

Adobe animate cc 2019 restart button
Adobe animate cc 2019 restart button













adobe animate cc 2019 restart button

now that I'm on that frame, play from frame 16 image02_mc is less than frame 30, set photo_mc to framee 1 If you want to start from frame 16 when you switch back to frame 1 then simply tell it to do that right after you tell it to switch frames.

Adobe animate cc 2019 restart button how to#

The examples were just to show you how to jump around. Things get a bit more complex if the button you click exists inside image01_mc or image02_mc. So when I say photos_mc.image01_mc I'm saying 'image01_mc' is inside 'photos_mc'. Every time you put a period in there you're saying the item after the period is inside the item before the period. Timeline scripts can just with a period. If the function exists inside a timeline script inside photos_mc then you just won't need to preface photos_mc, because the script is already inside it. from main timeline, go in photos_mc and affect image01_mc If your function is on the main timeline then you'd just have to append imagexx_mc to make that work. As you've identified, my code is affecting the scope of "photos_mc" and you want it to affect a different scope (level) inside (imagexx_mc). The scope of where the function runs from is what matters. You can decide what to do based on where it currently is as well using the same properties of the MovieClip.įor example, to play if you're on frame 1 but to return back to frame 1 if you're past that frame: advance 15 frames from where I am and play, if I can You can also put in some logic to make sure it's possible:

adobe animate cc 2019 restart button

You can add math in there and do things like go back 15 frames from where you currently are, or advance 15 frames, etc.

adobe animate cc 2019 restart button

If you'd like to go to frame 16 and play: If you'd like to go to frame 16 and stop:















Adobe animate cc 2019 restart button