Changing Swiffy Ad Size

167 Views Asked by At

I've got an ad with the size is 728x90 which was converted from Flash to Html5 using Google Swiffy.

Myself, I've never used flash. I've done some creative campaigns in the past on GDN, but I've built them directly using Html5. Anyway, I was asked if I can convert that 728x90 flash-built-converted-to-html5-with-swiffy ad to 835x90 format.

After opening the document, I've noticed an Object literal swiffyobject = {...} which is passed as parameter to the Stage() method which resides in Google's runtime.js library. This method apparently returns an object on which we call another method start() to make the magic happen:

var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
          swiffyobject, {});

      stage.start();

The object literal swiffyobject seems for me the right place to start in order to change the ad size. However, the most relevant part I found regarding changing the size is at the start, ymax & xmax:

swiffyobject = {
            "as3": false,
            "frameRate": 20,
            "frameCount": 1,
            "backgroundColor": -1,
            "frameSize": {
                "ymin": 0,
                "xmin": 0,
                "ymax": 1800,
                "xmax": 15560
            },
            ...
        }

Since the height of the ad wilm remain the same and only the width is the problem, scaling up xmax to 17846 will change the add size but not in a way we desire, instead, for some reason, it shrinks the ad's height by approximately 4px.

Any idea where should I tackle this great swiffyobject (which after re-indented with my IDE has approximately 6000 lines) in order to change the ad size? Or is there any online convertor that solves this?

2

There are 2 best solutions below

0
Dragos Rizescu On BEST ANSWER

The only viable solution, other than completely remaking the ad in HTML5, was to get a hold of the flash files, resize them & reconvert them. Touching that swiffy object just creates a big mess and a headache.

1
Sunny Chow On

in your html, there should be a part like that:

<div id="swiffycontainer" style="width: 728px; height: 90px">
</div>

do you also change it to 835? If not, swiffy may think it's a 835x90 flash in a 728x90 container, and scale it to fit the container.