wu-tang
12-05-2008, 02:04 AM
Ok this issue is starting to be problematic. I want to export a fullscreen projector, but when it's a projector the fullscreen value seems to override the FLVs scaling.
When the FLV get added to the display list it sets the align and scaleMode. These values seem to be totally disregarded in the fullscreen projector.
If it's not fullscreen you can scale the SWF/projector to whatever and it works fine.
These seems like a bug to me. Anyone else have this issues???
Document class:
public class Presentation extends MovieClip
{
public var current:String = new String();
public var remove:String = new String();
public function Presentation()
{
/* Setup stage */
stage.align = "C";
stage.scaleMode = "noScale";
stage.displayState = "fullScreen";
/* Add the first section */
addSection("recruiter");
Video Class:
public function playVideo(e:MouseEvent):void
{
menu.visible = false;
trace(e.target.flv);
sauderVideo = new FLVPlayback();
sauderVideo.source = e.target.flv;
sauderVideo.scaleMode = VideoScaleMode.NO_SCALE;
sauderVideo.align = VideoAlign.CENTER;
sauderVideo.playPauseButton = controls.pp;
sauderVideo.seekBar = controls.seek;
sauderVideo.volumeBar = controls.vol;
sauderVideo.addEventListener(VideoEvent.COMPLETE,F LVComplete);
sauderVideo.addEventListener(VideoEvent.READY,FLVR eady);
addChild(sauderVideo);
};
private function FLVComplete(e:VideoEvent):void
{
trace("FLV is Complete!");
sauderVideo.removeEventListener(VideoEvent.COMPLET E,FLVComplete);
MovieClip(parent).endVideo();
};
private function FLVReady(e:VideoEvent):void
{
e.target.x = Math.floor((1024 - e.target.width)/2);
e.target.y = Math.floor(100 + (658 - e.target.height)/2);
controls.x = Math.floor(e.target.x - 1);
controls.y = Math.floor(e.target.y - 1);
controls.visible = true;
vid_back.visible = true;
sauderVideo.removeEventListener(VideoEvent.READY,F LVReady);
};
When the FLV get added to the display list it sets the align and scaleMode. These values seem to be totally disregarded in the fullscreen projector.
If it's not fullscreen you can scale the SWF/projector to whatever and it works fine.
These seems like a bug to me. Anyone else have this issues???
Document class:
public class Presentation extends MovieClip
{
public var current:String = new String();
public var remove:String = new String();
public function Presentation()
{
/* Setup stage */
stage.align = "C";
stage.scaleMode = "noScale";
stage.displayState = "fullScreen";
/* Add the first section */
addSection("recruiter");
Video Class:
public function playVideo(e:MouseEvent):void
{
menu.visible = false;
trace(e.target.flv);
sauderVideo = new FLVPlayback();
sauderVideo.source = e.target.flv;
sauderVideo.scaleMode = VideoScaleMode.NO_SCALE;
sauderVideo.align = VideoAlign.CENTER;
sauderVideo.playPauseButton = controls.pp;
sauderVideo.seekBar = controls.seek;
sauderVideo.volumeBar = controls.vol;
sauderVideo.addEventListener(VideoEvent.COMPLETE,F LVComplete);
sauderVideo.addEventListener(VideoEvent.READY,FLVR eady);
addChild(sauderVideo);
};
private function FLVComplete(e:VideoEvent):void
{
trace("FLV is Complete!");
sauderVideo.removeEventListener(VideoEvent.COMPLET E,FLVComplete);
MovieClip(parent).endVideo();
};
private function FLVReady(e:VideoEvent):void
{
e.target.x = Math.floor((1024 - e.target.width)/2);
e.target.y = Math.floor(100 + (658 - e.target.height)/2);
controls.x = Math.floor(e.target.x - 1);
controls.y = Math.floor(e.target.y - 1);
controls.visible = true;
vid_back.visible = true;
sauderVideo.removeEventListener(VideoEvent.READY,F LVReady);
};