Thanks to the code snippet , you can dynamize your banner with just a few clicks.
Before you can use the code snippet, make sure you have the ADventori HTML template.
Download the XML file ADventori snippet code.
In Adobe Animate, display the view “Code snippets” (Window –> code snippets)
In the “Code snippets” window, import the XML code snippet ADventori file.
The ADventori category must appear in the list of code examples:
To be able to dynamize a banner, you must first declare your dynamic assets (texts, images, videos …). To do so, click on “✎initData”
“✎initData” will inject code directly into the action of your scene. In this example, we have declared three dynamic assets:
- a text: “wording”
- an image: “img”
- a URL redirect: “url”.