Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 101029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:41:33+00:00 2026-05-11T00:41:33+00:00

When a site has third party flash ads, is it possible for the site

  • 0

When a site has third party flash ads, is it possible for the site to track clicks to the flash? As the flash files are not created by the site, they cannot be changed. But the site wants to confirm the click-through counts that the ad agency is reporting with its own click tracking.

JavaScript onclick (or other mouse events) attached to the object or embed tags do not work.

What I have tried most recently is to place a floating invisible div over the flash and attaching the click event to that. However this does not function well in IE.

An alternative I am thinking of is to use my own Flash loader SWF. The new SWF would load the ad SWF file as a movie it displays. Then whenever a click happens the loader flash would trigger my click tracking JS, and then allow the click event to continue on to the ad flash. Does that sound possible/feasible?

Addendum: I have two questions about the loader method:
1) Can a flash from domain example.com load a swf file from ads.mordor.com?
2) Can a swf loaded within another swf both get click events?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:41:33+00:00Added an answer on May 11, 2026 at 12:41 am

    Your loader technique seems the most sane. One of the benefits is, you can make it generic so that it can load any ad you want, with as many instances on the page as you need, while always yielding the same click data. This simplifies the need to capture multiple types of click data that different Flash ads sometimes produce.

    Here is some code I got working, sorry in advance for the large snippets.

    ImportMe.as (has a button instance on the stage named myButton)

    package {     import flash.display.MovieClip;     import flash.display.SimpleButton;     import flash.events.MouseEvent;      public class ImportMe extends MovieClip     {         public function ImportMe()         {             myButton.addEventListener(MouseEvent.CLICK, button_OnClick);         }          private function button_OnClick(event:MouseEvent):void         {             // shifts the button right 10 pixels to prove the event fired             myButton.x += 10;         }     } } 

    Tester.as (loads the ImportMe.swf clip generated from the previous code)

    package {     import flash.display.MovieClip;     import flash.display.Loader;     import flash.net.URLRequest;     import flash.events.*;      public class Tester extends MovieClip     {         public function Tester()         {             var request:URLRequest = new URLRequest('importme.swf');             var loader:Loader = new Loader();             loader.addEventListener(Event.COMPLETE, loader_OnComplete);             loader.addEventListener(MouseEvent.CLICK, loader_OnClick);             loader.load(request);             addChild(loader);         }          private function loader_OnComplete(event:Event):void         {             trace('loaded');         }          private function loader_OnClick(event:MouseEvent):void         {             trace('clicked');         }     } } 

    The only thing this example doesn’t test is whether or not the external event will fire before the internal clip does a url redirect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 97k
  • Answers 97k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can add to the crontab as follows: #write out… May 11, 2026 at 7:26 pm
  • Editorial Team
    Editorial Team added an answer Try this instead, it's a little clearer than the script… May 11, 2026 at 7:26 pm
  • Editorial Team
    Editorial Team added an answer What you describe sounds more like linewrap than scrolling. If… May 11, 2026 at 7:26 pm

Related Questions

I've run across an interesting PHP/SOAP error that has me stymied. After searching I
Our product has a long history (12 years or so). It's origins are in
On a site that has a fair share of user-generated content such as forum
I have this classic ASP site which has been working fine until we updated

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.