Flash clickTag Banner

What is clickTAG?

It is normal when you do make this a banner with a link to another page. One way to make it more dynamic without having to write directly into Flash where we want the url is the link to the method clickTAG.

This method passes the address from a variable to the HTML banner in Flash, so you do not have to save the url directly in the banner but is passed in a dynamic way.

Implementation clickTAG

The method is performed by creating a variable inside the flash banner that whoever receives the url from the HTML and then make a link to that variable. Then, the procedure is an area where we can click and which serves to take you to the desired site.

First we create the button listener

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

and then the HTML variable into the tag:

<param value="clickTAG=http://www.bananatools.com/" name="flashvars"/>
<embed src="banner.swf" flashvars="clickTAG=http://www.bananatools.com/" quality="high" .../>

0
Your rating: None
jose's picture

In a few day i'll do the

In a few days i'll do the same mini tutorial for AS3 Wink


Anonymous's picture

AS3 version?

Hi is there a decent AS3 version out there


jose's picture

You're welcome...

You're welcome...


tito's picture

Nice Info

Useful post and great site!


Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><p>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: [code], [blockcode], [as], [as3], [css], [drupal5], [drupal6], [html], [java], [javascript], [mysql], [php], [xml].
  • You may quote other posts using [quote] tags.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.