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

  • SEARCH
  • Home
  • 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 8553635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:41:51+00:00 2026-06-11T14:41:51+00:00

Quick Summary Is there a way in actionscript to detect when the user clicks

  • 0

Quick Summary

Is there a way in actionscript to detect when the user clicks on “empty space” in a chromeless video player instance (i.e. a click that doesn’t cause the player to react)? This is particularly important when the chromeless player is displaying an overlay ad.

If not, is there a way to detected when a user clicks-on or closes an overlay ad?

Details

My flash-based application needs to interpret “empty” mouse clicks on the video window as a trigger for a specific action. This behavior is is demonstrated in youtube’s “full” flash player – clicking on an “empty area” that doesn’t otherwise invoke an action toggles between pause-and-play, and double-clicking an empty area toggles between windowed-and-fullscreen.

This is simple enough while playing self-hosted content – I can just assume any click on the video window is an empty click, and can act appropriately.

This, however, is not the case when I’m playing a youtube video, as it can popup an overlay ad over the video content. I need to allow the user to interact with the ad, but still let my application’s logic handle clicks on the “empty” areas of the chromeless player.

I’ve spent ages trying to solve this, and haven’t made any headway. The documentation doesn’t cover this. There isn’t any new state thrown via onStateChange in response to displaying or interacting with an ad. There doesn’t appear to be an API change associated with displaying an overlay ad (no onApiChange is thrown, and polling getOptions() didn’t turn up anything). Kludging a work-around using getObjectsUnderPoint didn’t work. I even tried backwards-engineering the information by polling the Mouse.cursor state (it visually gets set to “hand” when hovering over interactive objects in the chromeless player… but it’s set to “auto”).

Any suggestion on how to accomplish this? Particularly in a manner that’s transparent to whether the chromeless player is using StageVideo or not?

  • 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. Editorial Team
    Editorial Team
    2026-06-11T14:41:52+00:00Added an answer on June 11, 2026 at 2:41 pm

    While this is an area where the Players API team recognizes the need to improve things (by creating a callback that’s fired when an ad or other overlay is shown, or trying to return information about what rectangle of a video player is “safe” from overlays), there’s nothing at the moment in the API that accomplishes what you’re after.

    Feel free to file a feature request for tracking purposes, and we can keep that up to date if anything develops.

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

Sidebar

Related Questions

Quick question, I was wondering if there is a way to use Solr's API
Quick summary of my problem: first rendering of the view contains the elements in
Quick summary: in x86-64 mode, are far jumps as slow as in x86-32 mode?
What is a quick and easy way to 'checksum' an array of floating point
Quick summary Pinging back to a webservice in ajax from the client keeps the
Quick summary No items show up in my Grid in the GUI of my
We have the following structure in our Subversion repo: Here is a quick summary:
Quick summary: I have a Rails app that is a personal checklist / to-do
Can someone give me a quick summary of what a ViewModelLocator is, how it
Quick Summary of Issue I would to run a python script every minute of

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.