PDA

View Full Version : Making an swf clickable


nulrick
09-23-2010, 11:43 PM
hi!

I was sent an swf ad for my website and when I mouseover it I get the click hand symbol but when I click a page loads with an error saying that the page cannot be found.

I tried to place an a href tag around the entire swf file but I get the same error. Is there a way to fix this without having the flash file?

gangstareef
09-24-2010, 12:24 PM
Lots of flash ads implement something called a clickTag, which ad networks use for tracking purposes. Could be the case with your ad. The AS code calls the navigateToURL() method (or its AS2 equivalent), but rather than hard-coding the desired URL, it's passed in from the HTML container, eg. as a FlashVar. If you google clickTag, I'm sure you can read up on it...

Here's an example AS3 implementation. (http://www.flashinyourface.com/blog/2010/2/3/as3-clicktag-example.html)