Having trouble with this type of export

Hi Guys
Really trying to understand why my Hype advert isn't working in relation to the attached spec.
First of all I have attached a test doc, if someone could point me in the right direction. Usually I turn to Google Web Design to create adverts that use this type of code/process[Test advert.zip|attachment](uploahype file.zip (66.9 KB) hype file 2.zip (177.3 KB) d://3azeNUYIzHcy7rA3aw6MqIzIMa5.zip) (66.9 KB) .

Technical Requirements

Enabler

To the tag of your HTML file, add a script tag that links to the Enabler:

More Information: https://support.google.com/richmedia/answer/2672545?hl=en-GB&ref_topic=2672541&rd=1

Exit

function bgExitHandler(e) {

Enabler.exit(‘Background Exit’);

}

document.getElementById(‘bg-exit’).addEventListener(‘click’, bgExitHandler, false);

More Information: https://support.google.com/richmedia/answer/2672517?hl=en

Kind regards

John

Hi John,

If you install the 'Double Click Studio' export script, you'll get a new 'Exit' action in your action inspector:

Then when you export using that export script (File > Advanced Export):

You'll get code automatically added to the head of your document that supports this format.

Here's the output: Default.zip (67.0 KB)

Using this method there's no need to create new JS functions for each exit. You can link an 'id' with your exit if you have more than 1 exit.

1 Like

Hi Daniel

Many thanks for your response, will go through this now