CODE SNIPPET: Dynamic banner in a few clicks

Installing / Initialization

Documentation DCO Enabler -> ENABLER ADOBE ANIMATE CC -> Installing / Initialization

CODE SNIPPET

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.

INSTALLING

Download the XML file ADventori snippet code.

In Adobe Animate, display the view “Code snippets” (Window > code snippets)

 

link_enabler

In the “Code snippets” window, import the XML code snippet ADventori file.

link_enabler

The ADventori category must appear in the list of code examples:

link_enabler

INITIALIZATION : 

To be able to dynamize a banner, you must first declare your dynamic assets (texts, images, videos …). To do so, click on “✎initData”

link_enabler

 

“✎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”.
Modify this list according to your needs.