Selteco.com > FlashDesignerZONE.com > Tutorials > T1095

ClickTag in Flash.

Create sample banner with clickTag

Create New Project

  1. Launch Flash Designer and choose “Blank Animation”. Choose “Frame” > “Frame Size” to choose Full Banner (486×60), click OK.size of frame
  2. Choose “Text” tool and add text “My Flash Banner” inside the frame.flash banner
  3. Select the text, choose “Action” > “On Up”, select ActionScript and paste the code:
    getURL(clickTag,"_blank");

    action menu

     

  4. Press F9 to preview the file, note that nothing happens when you click the text
  5.  

Export Flash SWF File

  1. Choose “File” > “Export Flash SWF File”, navigate to Desktop, leave “Flash-1” as the name and click OK
  2. Send the file for testing by your advertising agency

ClickTag variable is passed to Flash file after it has been installed on a website. ClickTag code is similar to this:

<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="180" HEIGHT="180" ><PARAM NAME="MOVIE" VALUE="Flash-1.swf?clickTag=http://www.selteco.com"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="true"><PARAM NAME="AllowFullScreen" VALUE="TRUE"><PARAM NAME="QUALITY" VALUE="high"><EMBED SRC="http://flashdesignerzone.com/unlo/Flash-1.swf?clickTag=http://www.selteco.com"WIDTH="180" HEIGHT="180" PLAY="true" LOOP="true" WMODE="opaque" QUALITY="high"AllowFullScreen="true" TYPE="application/x-shockwave-flash"PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>

get flash