1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP, Javascript Register clicks on Flash banner help

Discussion in 'HTML & JavaScript' started by redbullfx, Apr 20, 2012.

  1. redbullfx

    redbullfx Newbie

    Joined:
    Apr 3, 2012
    Messages:
    3
    Likes Received:
    0
    Hey everyone,,

    just as the title says..i need help, im stuck and i dont know how to register clicks on flash banners. In php, javascript, Anyone know how to??..... Thanks for the help..
     
  2. roster67

    roster67 Registered Member

    Joined:
    Mar 27, 2012
    Messages:
    69
    Likes Received:
    10
    This is a client side issue, nothing to do with server side and so PHP.

    You cant interract between a flash object and javascript unless the Flash is deliberately written in a co-operative mode to pass some informations out to JavaScript.

    Thats said, only two mouse events can be catched directly in javascript which been triggered by a flash object:
    mouseover event and mouseout. {should be confirmed for all browsers!}

    So, if an user trigger the mouseover event from Flash obj, made current window focus changed before any mouseout event from Flash obj been trigerred, you can assume that your user had clicked on Flash banner.
    But its really tricky...
     
    • Thanks Thanks x 1
  3. redbullfx

    redbullfx Newbie

    Joined:
    Apr 3, 2012
    Messages:
    3
    Likes Received:
    0
    Thanks for your explanation...