Search code examples
htmlflashflash-cs5

How do I input my link information in html5 from a swiffy created from a flash file?


I'm creating a banner ad in flash cs5 with AS 2 and converting it to html5 with swiffy, I have a button with a click tag in flash, but where do I input the link information for my click tag - in the html, in flash or is it input somehwere else?


Solution

  • I would like to add something:

    for the purpose of running this flash/html5 thru a adserver, the URL inside the flash doesn't really matter, you could have one inside the flash and another one on the codeside; The click will use the one on the code side.

    So yuo could have inside the flash:

    on (release) {
    getURL("http://www.msn.com", "_blank");
    }
    

    and, after the conversion, the related code would be:

    "actions":[{"value":"http://www.msn.com","type":305},{"value":"_blank","type":305}
    

    Now you could actually replace the URL like this:

    "actions":[{"value":"http://www.google.com","type":305},{"value":"_blank","type":305}
    

    and the banner would go to google instead of going to msn.

    note that I also added the target _blank.

    cheers