Video composant : FullScreen mort !
Salut tt le monde,
Incapable de passer en mode fullscreen avec FLVPlayback composant flash.
- méthode manuelle : en utilisant le fscreen bouton du player
- method code : avec les quelques lignes d AS63 trouvé sur LiveDocs (ci dessous)
pouvez voir à : http://www.dev.tv/videos/video_player.html
FLA attaché
aucune de ces 2 méthodes ne marche, pourtant fullscreen mode est à TRUE par défaut. Besoin de toucher à l HTML, ce qui est génial avec AS3 c est que rien ne marche PAR DEFAUT.
Merc bcp, Sylvain.
Code:
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;
} |