Partial screen FLVPlayback

I am creating a full screen demo where I need to simulate a YouTube video. I have dragged and dropped a video that plays an external .flv file.

It works great if the scene is not set to full screen. But I need to set up the scene to full screen like this:

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;

      

The problem is that when the animation reaches the video, the screen goes black and the video doesn't play. I have already set the instance name and tried to put the following code in the frame actions:

video.fullScreenTakeOver = false;

      

But this does not affect the problem.

Anyway, is there a scene in full screen and normal-sized video playback?

Thaks

I am using Flash CS3 Pro and creating an .exe.

+1


source to share


2 answers


The crash seems to be caused by the presence of a component flvPlayback

in the scene, but not in the first frame of the timeline.

The simplest solution is to either have a compnent in the first frame.

Alternatively, if this is not practical, then simply adding the component to the first frame of the movie clip will work.



Finally, working on flvPlayback

the step with the script should work.

Just remember video.fullScreenTakeOver = false;

in all cases

+1


source


Try setting "scaleMode" to "noScale" in the component parameters?



0


source







All Articles