-
Full Screen Issues
Hi, i am working on a standalone player Movie full screened, but i have two problems wich is driving me crazy and i have no idea how to solve...
The first is: when i call the videoplayback, i dont want it to go full screen, so i setted the fullScreenTakeOver to false, it worked perfect for the first movie i chose, but i have a menu to chose between 8 movies, when i click a second movie, my screen goes all black and i can hear the sounds... Here is the code:
Actionscript Code:
VidAn.VPB.fullScreenTakeOver = false; //Mouse Click function clic(event:MouseEvent):void { VidAn.VPB.visible = false; var sel:String; sel = event.target.name; VidAn.VPB.source = "Videos/" + sel + ".mp4"; if (MovieClip(root).zz == 0) { MovieClip(root).Thumbs.gotoAndPlay(16); MovieClip(root).zz = 1; } else { MovieClip(root).Thumbs.gotoAndPlay(27); } }
The other issue is that, when my movie starts, it starts full screened and centered, but when it loads a second movieclip, inside my stage, it goes to top left until it finishes the animation, after that it goes back to center... What can i do to solve it...
Thanks in advice...
-
I had the same problem,
Try to call the fullscreentakeover inside the function after a new VidAn is crreated. and the child is added.
This code is what solved it for me... (where i guess filmruta is your VidAn)
Actionscript Code:
function visaFilm() { var filmruta:filmplayer = new filmplayer ; filmruta.playern.fullScreenTakeOver = false; filmruta.addEventListener(MouseEvent.MOUSE_DOWN, toMeny); filmruta.playern.source = aktuellFilm; addChild(filmruta); filmruta.playern.play(); filmruta.playern.addEventListener(Event.COMPLETE, toMeny);
function toMeny(event:Event) { filmruta.playern.stop(); removeChild(filmruta); filmruta = null; TimerRestart(); } }
-
aqqaz, thanks for your answer, i was starting to think that i would be fully ignored in here, i managed to find that by my self, the fullScreenTakeOver only works if you code your Video PlayBack...
But thanks for your help anyway...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|