The Actions Wizard allows you to add interactivity to your animation in a visual way without even knowing any code. This video demonstrates how to access this wizard and use it to build interactivity.
The Actions Wizard allows you to add interactivity to your animation in a visual way without even knowing any code.
Here we have this simple project where we have this asset here which is a movie clip symbol instance.
If we look within here,
Understanding the Actions layer and timeline control
we have an Actions layer and we also have an animation sequence.
Let's click on that Actions layer and choose Window, Actions to open the Actions panel.
Here we can see this.stop() ; So, what this will do is actually stop anything from happening when the play head hits frame 1 of the internal symbol Timeline.
Going back up to Scene 1.
Let's go ahead and provide an instance name to this guy here.
Naming instances and opening the Actions Wizard
I'll just call him guy, and then expanding my Actions panel, I can choose to Add code using wizard.
So, let's switch to that.
Adding a play on click interaction with the wizard
What I want to do is once somebody clicks on that instance, I want it to play.
So, here is a Play command.
That's my action, I'll choose that.
And then I have to choose the object to apply the action to.
I can choose the current Timeline, or I can choose guy.
Now if you remember, guy is the instance name I gave for that instance on the stage.
So, I'm going to choose guy and hit Next.
Now, I can choose how I want to initiate the action by choosing a triggering event.
In this case, I'm going to choose On Mouse Click.
And then the object for the triggering event.
Once again, guy.
I'll now Finish and add, and it applies the code with some comments to my Actions panel on Frame 1.
So, let's collapse this and give it a test.
I'm going to choose Control,
Testing the interactive animation
Test.
So, my project has opened up in the web browser because this is an HTML5 Canvas project, and if I click on this instance, then it triggers the animation.
Perfect.
What you learned:
Add interactivity to a composition without coding using the Actions Wizard
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage and local shared objects, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
General information
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
We’ll still count your use of our site and services
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
Operate the site and core servicesOperate site and measure engagement
Always active
These cookies are required, and they are used to enable the site and related services core functionality. Without them the site could not operate, so they cannot be disabled.
These cookies enable the site and related services’ core functionality and collect statistics about user engagement, such as counting active use to help us understand trends. These cookies cannot be disabled.
Measure performance
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued and how often unique visitors return to the site, making it hard to improve information we offer to you.
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued, making it hard to improve information we offer to you.
Extend functionality
These cookies are used to enhance the functionality of Adobe sites such as remembering your settings and preferences to deliver a personalized experience; for example, your username, your repeated visits, preferred language, your country, or any other saved preference.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.