Home > Flash / Actionscript > Embedded FLVPlayback inappropriately taking over screen when SWF goes to fullscreen

Embedded FLVPlayback inappropriately taking over screen when SWF goes to fullscreen

Because the FLV player was manually placed in a movie clip, I used:
myFLVPlaybackInstanceName.fullScreenTakeOver = false;

However, if the player is generated at runtime via code, use:

// In main class constructor:
primaryDisplayObject.stage.addEventListener(Event.ADDED,
displayObjectAdded, true);

// A little later in the main class:
// Listener when any display object is added to stage.
private static function displayObjectAdded(evt:Event):void {
if (evt.target is FLVPlayback) {
evt.target.fullScreenTakeOver = false;
}
}

credit:

http://www.kirupa.com/forum/showthread.php?t=338292

via:

http://readlist.com/lists/chattyfig.figleaf.com/flashcoders/5/25885.html

Advertisement
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.