I hate this feeling of missing something…

The myth about flash border…

Fariz says, How to, Interest Add comments

You’re designing an online banner using flash. You included a 1 pixel border to compliment your banner. Looks great on your screen. As soon as it’s uploaded, you noticed that the border is missing. How could it be missing you say. Lol…

Sample from Yahoo!

From my favourite reading site...

I couldn’t be bothered about this until recently. I had to design a few flash banner and the requirement was to have a 1 pixel border with #333333 stroke color. Cis!

So I gave it a try. Did a quick 300×250 pixel banner and wallah!

300×250 flash ad with missing borders

Notice the missing border on the right? I found out how to get it to work. The one below is being treated and currently all four sides of the borders is showing. How did I do it?

300×250 flash ad with perfect border

The solution is rather simple.

Open your swf file. Assuming that your border is 300×250 pixel with a 1 pixel stroke.

Original border - 1 pixel

Change the stroke size to 2 pixel. I use #333333 as my border color. On your align palette, click on the align “To stage” and align top edge and left edge. If the setting is correct, your X and Y setting should be set to 0.0.

Change border stroke to 2 pixel

Go back to your scene. Click on your border layer and align top edge and left edge. Be sure to click “To stage” so the border will align with the stage. Duh!

Align the border to top edge and left edge

Publish your flash and you’re done! Yay!

4 Responses to “ The myth about flash border… ”

  1. Gravatar lukegill Says:

    You can also make the height & width of the border 299 x 249 with a 1px stroke

  2. Gravatar maggot Says:

    Hey Luke,

    I have not tried this one. But I think this would work too..

    Thanks for the tip. :)

  3. Gravatar Ben Bishop Says:

    Thanks very much. Could not work out why my borders werent behaving as intended. is this just a quirk with Flash?

  4. Gravatar maggot Says:

    Hey Ben,

    I think it’s more of a browser problem. Probably error on scripting parameters. Anyways there’s 2 ways to work around it. :P

    Cheers!

Leave a Reply

Tags

My Thoughts

Sometimes I crap a lot. Actually I still do... Most times I like to keep things short. I can't help it. It's like a feeling of missing something... It always is.