hi, i need to count the clicks on a flash banner my code is like this <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="728" height="90"> <param name="movie" value="/code728x90-01.swf"> <param name="quality" value="high"> <embed src="/code728x90-01.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="728" height="90"></embed></object> Code (markup): i can't edit the flash file itself how can i do that?
id go and find a javascript that counts clicks on a div for example and place the flash inside the div
how come you can't change the code for the banner? My suggestion would have been to change the URL that the banner points towards, so that it went through a page that checked each click through and counted it. I mean the only other way i can think of is changing the actionscript.
<div onclick="call a script that updates a text file or a database">flash content</div> this should work. it that doesn't work, then you can try and use onMouseDown, in flash, and call the script to update from flash i don't know how to make this script by heart but if you break the problem into pieces its easier to put the working code together regards