I've got a Video object inside of a custom VideoDisplay component inside of a 
larger UI with other components.  The Video object, once resized, ends up being 
250 by 180.  My full-screen toggle button gets the dimensions and location of 
the Video object, in relation to the parentApplication.  I then set the 
fullSreenSourceRect to a new Rectangle with the same dimensions and location.

When the video goes full-screen, it looks fine for a second, then when the 
"Press Esc to Exit" message appears, the entire bottom half of the source 
rectangle area (the area below the message) dissapears.

This can be fixed by setting the scaleMode to StageScaleMode.EXACT_FIT, but 
then when I exit from full-screen mode, my entire UI is sized incorrectly.

Thanks in advance,
Brandon

****************

Code:

var boundsObject:Rectangle = 
videoDisplay.subscribedLiveVideo.getBounds(this.parentApplication as 
DisplayObject);
var x:Number = boundsObject.x;
var y:Number = boundsObject.y;
var w:Number = boundsObject.width;
var h:Number = boundsObject.height;
                               
this.parentApplication.stage.fullScreenSourceRect = new Rectangle(x, y, w, h);
//this.parentApplication.stage.scaleMode = StageScaleMode.EXACT_FIT;
this.parentApplication.stage.addEventListener(FullScreenEvent.FULL_SCREEN, 
fullScreenHandler);
this.parentApplication.stage.displayState = StageDisplayState.FULL_SCREEN;


      

Reply via email to