Adding Interactivity with JavaScript
Generally, a digital advertisement like the one we've designed here will need to be interactive as well. Most ads of this kind will respond to user interaction by opening a web page where the user can get more information about, or even purchase, the advertised product or service.
Since we are publishing to the native web using an HTML5 Canvas document type, we will be coding our interactions with the JavaScript language.
Writing Code with the Actions Panel
Animate is a unique piece of software in that it allows both design and development within the same application. This hybrid approach has always been a strong part of the tool and continues to be so, no matter which platform you might be targeting.
Let's go ahead and add some code to our motion advertisement:
- By convention, and for the purpose of organization, we should keep our code completely separate from any visible assets. Go ahead and create a new layer and...