The introduction of SWF export feature has pleased many of you. However, odds are that a big part of you haven’t ever worked with SWF files before. And the biggest challenge is to embed them properly into a website.
Now let’s say we want to embed a medium rectangle flash banner, that is a 300×250 px SWF. And let’s say the file is named banner.swf and its URL is http://www.example.com/banner.swf We’ll need this basic code:
However, the code above will give you a non-clickable banner, i.e. without a link in it. Let’s see how we must construct our swf embed code in order for the banner to be linked to a website. Let’s say we want to link our banner to http://www.bannersnack.com. We will have something like this:
You can see we added some new parameters:
<param name=”Flashvars” value=”clickTag= “> and
<embed flashvars=”clickTag= “></embed>
These two codes do the same thing, but for two different types of browsers (Object tag for Internet Explorer and Embed tag for Firefox, Opera, Safari, Google Chrome and many others), which is to link a SWF to a web page.
*Disclaimer: We decided that we’ll be focusing on developing more HTML5 features and disconnect the Flash editor. Find more info about this here. Please feel free to contact us if you need further information or have any queries about our product.