Making a flash banner for a website is a common thing in the world of web design. So in order to make things more efficient both for client and designer, sometimes it is necessary to make a flash banner customizable for owners to change their banner links without touching the .fla (source file). To do this you just have to do some simple things.
1. Change the way you assign a link to a button.
Normally you use this script to assign a url link to a button:
on (release) {
getURL(”www.example.com”);
}
Although this action script works but it makes your links not customizable for further use (without editing the fla files). Instead you use this lines:
on (release) {
if (clickTAG.substr(0, 5) == “http:”) {
getURL(clickTAG);
}
}
Then save the file as : testbanner.fla export it so you have the testbanner.swf
Now … ‘clicktag’ is a common method of making a flash banner. Once you have finished with it, now you can move to the next step.
2. Customize the HTML tag.
Now all you have to do is write this on the HTML code :
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,19,0″ width=”480″ height=”80″ title=”WHATEVER YOU WANT”>
<param name=”movie” value=”testbanner.swf” />
<param name=”quality” value=”high” />
<param name=FlashVars value=”clickTAG=http://www. example.com” />
<param name=”menu” value=”false” />
<param name=”scale” value=”exactfit” />
<embed src=”flashbanner.swf” mce_src=”flashbanner.swf”
FlashVars=”clickTAG=http://www. example.com”
menu=”false” scale=”exactfit”
quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”480″ height=”80″></embed>
</object>
Now you see that you write the link in the HTML code and not in the fla files.
If you have questions please let me know
Good luck … go make some design

