More Group Sites
School Rankings
Jobless Net
Better Home
Enviro++


Help | Subscribe/Unsubscribe | Rules | Other Group Sites: Better Education | Better Education Forum
Welcome Guest Search | Active Topics | Members | Log In | Register

html code for flash banners .swf with clickTAG Options · View
hong
Posted: Saturday, May 14, 2011 1:45:47 PM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
If you have the source code .fla, you can use Adobe Flash to edit it and then publish it with the html code for the flash file .swf. The whole html code to display your banner will be shown directly after banner creation. If you don't have .fla, you can edit the following html code to suit you.
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="160" height="600" id="ad.swf" align="middle">
<param name="movie" value="http://taylorscollege.edu.au/ad.swf?clickTAG= http://bettereducation.com.au">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed src="http://taylorscollege.edu.au/ad.swf?clickTAG= http://bettereducation.com.au" quality="high" bgcolor="#ffffff" width="160" height="600" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>


You need to include both object and embed tags otherwise the flash banner may not work on all browsers. Note that the source flash file is mandatory in both object and embed tags. If any of them is incorrect, you may have the issue that it shows on some web browsers but not the others. So they must match and be duplicated.

If the flash file doesn't have the embedded URL link, check whether it got clickTAG set. The clickTAG tells the flash banner where it should link to. Thereby the link address is passed in the HTML-code and not stored in the banner itself. To create a flash banners with a clickTAG, visit Flash clickTAG Tutoria for details.

With clickTAG, the link is straightforward, for example, "clickTAG = http://bettereducation.com.au". The clickTAG might also be a script, on an ad server for instance, that tracks where the Flash advertisement appears and when it is clicked.
Code:
<EMBED src="ad_banner_example.swf?clickTAG= http://adnetwork.com/tracking?http://www.destinationURL.com">


A further point is that in case of the clickTAG isn't passed, the banner won't work as link. This might be useful if the banner should be adopt as a header of a website.

You can add an attribute name into the embed tag or a title into object tag, but they are optional. See the following example:
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="160" height="600" id="ad.swf"
title="University pathways & high school programs in Australia & New Zealand | Taylors College"
align="middle">
<param name="movie" value="http://taylorscollege.edu.au/ad.swf?clickTAG= http://bettereducation.com.au">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed src="http://taylorscollege.edu.au/ad.swf?clickTAG= http://bettereducation.com.au"
name="University pathways & high school programs in Australia & New Zealand | Taylors College"
quality="high" bgcolor="#ffffff" width="160" height="600" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>

Sponsor
Posted: Saturday, May 14, 2011 1:45:47 PM
hong
Posted: Tuesday, May 17, 2011 7:09:11 AM

Rank: Administration
Groups: Administration

Joined: 11/23/2008
Posts: 335
Points: 711
Location: Australia
An important security measure for clickTAG

Code:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG);
}
}


As shown in the above code, the ActionScript in this Flash file verifies that the clickTAG URL begins with "http:".

Quote:
This is an important security measure. If you do not take this precaution, a malicious HTML page could source your SWF and pass a clickTAG URL that begins with "javascript:" or another scripting pseudo-protocol. If your ActionScript code were to call getURL with a maliciously crafted JavaScript URL, it would be possible for the site serving the malicious HTML page to obtain the contents of your HTTP cookies or perform other actions on your site's behalf.


See To assign a clickTAG for your advertisement for more details.


Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.069 seconds.