A follow-up and workaround for this issue, for those who care.
The issue of FLV blacking out the screen when a projector runs in
full-screen mode seems to affect the Video class itself. I stand by
my original guess that this occurs because of a security issue. The
documentation for these security issues mention that they do not
affect Flash projectors, but apparently they do.
It's less than ideal to rework the FLVPlayback instances in my Flash
document into purely ActionScript invoked instances, the artist-types
on the team won't like that. So for now I use a brute force "global"
event listener to set the fullScreenTakeOver to false on any
FLVPlayback instances, something like this:
// 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;
}
}
To summarize, I see two major flaws with this version (2.0.0.37) of
the FLVPlayback component:
Flaw #1) In full-screen mode Flash projectors FLVPlayback instances
completely black out the stage.
Flaw #2) The FLVPlayback component inspector should include a
fullScreenTakeOver parameter.
SD
On 2007-08-02, at 7:28 AM, Stephen Downs wrote:
Problem: I am creating a Flash stand alone projector that relies on
several FLVPlayback component instances to play some local file
system flv video. When I am in full-screen mode and try to display
a video (instructing a movie clip container to go to a particular
frame where the video resides), the screen turns black. Pressing
ESC exits full-screen mode, but displays no video. I then have to
go to a frame where the movie clip container does not exist, then
return, and video then appears. The problem is exhibited on both
Mac OS X and Windows.
Expected behavior: I want to run a full-screen mode projector that
displays flv assets non full-screen, in an appropriate aspect
ratio, with controls like the ones FLVPlayback offers. Help!
I achieve full-screen mode like this:
// _target_mc is the main timeline movieclip:
_target_mc.stage.displayState = StageDisplayState.FULL_SCREEN;
I attempt to turn off full-screen playback for FLVPlayback
instances using:
// vid is the FLVPlayback instance:
vid.fullScreenTakeOver = false;
I wouldn't be surprised if I am running up against a silly security
limitation. The documentation mentions that FLVPlayback will fail
silently if there is a security conflict, so I'm not sure I can
listen for any security events. Any suggestions exploring this are
appreciated.
I may end up dynamically creating and displaying FLVPlayback
instances instead of relying on the easier stage layout method.
Setting the fullScreenTakeOver property might have to be performed
before the instance is added to the display list.
Details:
Flash 9, AS 3 fla published as Projector
flash.system.Security.sandboxType is localTrusted
FLVPlayback.VERSION is 2.0.0.37
thanks for your input,
Steve
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com