1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| // Requires Button and FLVPlayback components in library.
import fl.video.FLVPlayback;
import fl.controls.Button;
var myButton:Button = new Button();
var myFLVPlybk:FLVPlayback = new FLVPlayback();
myFLVPlybk.fullScreenTakeOver = true;
myButton.move(100, 240);
myButton.label = "Full Screen";
addChild(myButton);
addChild(myFLVPlybk);
myFLVPlybk.fullScreenTakeOver = true;
myFLVPlybk.source = "http://helpexamples.com/flash/video/water.flv";
myButton.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
myFLVPlybk.fullScreenTakeOver = true;
myFLVPlybk.enterFullScreenDisplayState();
myFLVPlybk.fullScreenTakeOver = true;
} |
Partager