clicks on flash banner

Discussion in 'Scripts' started by giusbit, Jul 6, 2009.

  1. #1
    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?
     
    giusbit, Jul 6, 2009 IP
  2. ricmetal

    ricmetal Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    id go and find a javascript that counts clicks on a div for example
    and place the flash inside the div
     
    ricmetal, Jul 10, 2009 IP
  3. giusbit

    giusbit Active Member

    Messages:
    199
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    can't find any :(
     
    giusbit, Feb 2, 2010 IP
  4. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #4
    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.
     
    Grit., Feb 2, 2010 IP
  5. ricmetal

    ricmetal Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    <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
     
    ricmetal, Feb 2, 2010 IP