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 6027221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:33:37+00:00 2026-05-23T04:33:37+00:00

Question I have video player chrome buttons designed with HTML/CSS. The full screen button

  • 0

Question

I have video player chrome buttons designed with HTML/CSS. The full screen button needs to tell Flash to go full screen, but Adobe forbids this Javascript-to-Actionscript interaction. What is a clever hack to work around this?

Background

I’m making a web based video player that supports many plugins – Flash, VLC, HTML5, iPhone’s Quicktime etc… I would like all these players to share the same chrome buttons – play, pause, mute, volume slider, resolution picker, and full screen. These buttons are layed out with HTML/CSS.

 ____________      ____________      ____________
|           |     |           |     |           |
|   Flash   |     |   VLC     |     |   HTML5   |       ...
|           |     |           |     |           |
-------------     -------------     -------------
[A][B][C][D]      [A][B][C][D]      [A][B][C][D]

All of the plugins that I deal with allow Javascript to control the plugin. Here’s an example of how you can get an HTML element to interface with an HTML5 video. The code is nearly identical when interfacing with the other plugins. The only thing that changes is the actual function name that is called.

// Using Prototype JS library
$('playButtonId').observe(
  'click',
  function(event) {
    $('html5Id').play();
  }
);

A problem arises for fullscreen in Flash. In Actionscript 3.0, you would do this to expose a fullscreen callback to Javascript:

package {
 import flash.external.*

 private var theStage:Stage;

 public class Player {

  public function Player(stageReference) {
   this.theStage = stageReference;
   ExternalInterface.addCallback("fullScreen", this.fullScreen);
  }

  private function fullScreen():void {
   this.theStage.displayState = StageDisplayState.FULL_SCREEN;
  }
 }
}

When Javascript calls $('flashPlayerId').fullScreen();, nothing happens because Adobe requires the full screen event to be triggered by a click within the SWF. This is to prevent hackers from writing malicious sites that hijack the user’s screen without them initiating it.

Current Hack

I’m currently recreating all the chrome buttons in Flash to support full screen. I had to import all my graphics into Flash and convert all the Javascript into Actionscript.

 ____________      ____________      ____________
|           |     |           |     |           |
|   Flash   |     |   VLC     |     |   HTML5   |       ...
|           |     |           |     |           |
|           |     -------------     -------------
| A  B  C D |      [A][B][C][D]      [A][B][C][D]
-------------

This has caused me a lot of pain and agony. Whenever I need to make a change, I update the HTML and JS. This change is reflected across the VLC, HTML5, and whatnot players. But since Flash does not share the same HTML chrome buttons, I have to duplicate the changes in Flash/AS. So I’m looking for a better solution that reduces the amount of duplicate code. It doesn’t have to be stylistically clean. I just want easy maintainability.

  • 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-05-23T04:33:38+00:00Added an answer on May 23, 2026 at 4:33 am

    Just give your flash movie 0.1% opacity (you will need to use wmode), and position it directly over the html buttons. The user clicks on the flash but sees the html. The actionscript code just tells the player to go fullscreen, and then calls some javascript using ExternalInterface. Bounty please!

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

Sidebar

Related Questions

Question I have an application written in Java. It is designed to run on
Another basic Rails question: I have a database table that needs to contain references
I'm trying to make a video download panel for Chrome likes Real Player's one
Does anyone have a working example of a video player built using Qt phonon?
I am doing a video player. I have the following in my project folder:
Prologue I am studying Flash and want to make a video player with where
This is a strange question, I think... I am embedding a video player using
The responses I've got to this question have solved the problem I had in
Question: I have a question that is apparently not answered by this already-asked Bash
Question We have a large number of xml configuration files that we want merged

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.