Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Flash player creates transparent rectangles in the flash window

I'm encountering a weird, very difficult to reproduce graphics glitch in a Flash video player!, so far only in Chrome.

screenshot

The gray rectangle below "Enter the building" is showing the background color of the html div that the flash player is sitting in. There is a smaller one under the "Where are we" link. These are sprites (containing several other sprites and displayobjects) that have a scripted hover animation (they slowly move towards a random point that is withing a certain range of their origin). The glitch resizes together with them, sometimes disappearing.

What's the strangest it makes the entire flash component see through. I have this code running when the videoplayer is created:

        graphics.clear();
        graphics.beginFill(0xff00ff, 1);
        graphics.drawRect(0, 0, _stage.stageWidth, _stage.stageHeight);
        graphics.endFill();

So there should be a bright color in the back of the video player, and I've confirmed that it is there if I don't load the video player. However this bright color is not displayed, but rather the background div that contains the player shines through.

This makes absolutely no sense to me...and I have no idea how to debug this. All I know is that the appearance of the glitch is dependent on where the text-links are hovering on the screen.

The flash is loaded in WMODE transparent, which we need because it has a expandable 'wing' on the side which is semi transparent.

EDIT:

it is live at www.48hourgames.com. Once you make an account you will see the video player that ends with the screenshot above.

like image 804
joon Avatar asked Dec 07 '12 17:12

joon


People also ask

Why is there no flash option in Chrome?

As of 2021, Adobe has ended support for the Flash Player plugin. Flash content, including audio and video, will no longer play back in any version of Chrome.


1 Answers

This is a problem with the Pepper Flash player. Adobe and Google have been working on this for some time, it is how they intend to keep Flash alive and working on the Linux platform.

Pepper Flash, unfortunately, is very buggy. Sometime over the summer of this year, Pepper Flash became the default Flash plugin in Chrome for all operating systems. It has many issues that there are no real solutions to, other than disabling it (and hoping Adobe/Google will address them).

To disable Pepper Flash:

  • go to: chrome://plugins
  • click the Details icon in the upper right
  • find the Flash Player plugin section, you will likely have several versions of Flash installed here. I just installed Chrome to verify it was the problem, and had Pepper Flash plus 2 "normal" versions of Flash.
  • disable the Flash plugin that has "PepperFlash" in the path.
like image 128
Sunil D. Avatar answered Sep 23 '22 20:09

Sunil D.