-
Video Full Screen
Im working on a project in flash 8. It's a Cd rom presentation. I'm calling Multiple videos using XML for each video respectively. I want to know if there is any possibility to make my videos go full screen with a full screen button below it?
Help would be Appreciated.
Thnx
-
function toggleFullScreen(){
//if normal size, go to fullscreen, else go to normal size
if(Stage["displayState"]=="normal"){
//SWF FILE
Stage["displayState"]="fullScreen";
//EXE FILE
fscommand("fullscreen", true);
}else{
//SWF FILE
Stage["displayState"]="normal";
//EXE FILE
fscommand("fullscreen", false);
}
}
is the file swf file or are you making a exe
Last edited by Mancent; 11-28-2010 at 03:12 AM.
-
Originally Posted by Mancent
function toggleFullScreen(){
//if normal size, go to fullscreen, else go to normal size
if(Stage["displayState"]=="normal"){
//SWF FILE
Stage["displayState"]="fullScreen";
//EXE FILE
fscommand("fullscreen", true);
}else{
//SWF FILE
Stage["displayState"]="normal";
//EXE FILE
fscommand("fullscreen", false);
}
}
is the file swf file or are you making a exe
Actionscript Code:
function toggleFullScreen() { //if normal size, go to fullscreen, else go to normal size if (Stage["displayState"] == "normal") { //SWF FILE Stage["displayState"] = "fullScreen"; //EXE FILE fscommand("fullscreen", true); } else { //SWF FILE Stage["displayState"] = "normal"; //EXE FILE fscommand("fullscreen", false); } }
-
Originally Posted by danddleo
Actionscript Code:
function toggleFullScreen() { //if normal size, go to fullscreen, else go to normal size if (Stage["displayState"] == "normal") { //SWF FILE Stage["displayState"] = "fullScreen"; //EXE FILE fscommand("fullscreen", true); } else { //SWF FILE Stage["displayState"] = "normal"; //EXE FILE fscommand("fullscreen", false); } }
-
Thnx But still problms
Hi danddleo!
Thnx for your Valuable time & effort. The Finale File is an exe file.
Also i made a button on my file & copied the sciprt it showed me some handler
problm? Should i send u the file ?
Thnx for all ur Support
-
hi,
above togglefullscreen code only works with the stage fullscreen, and not with the video..
i m using flash 8 player ..
and my presentation already plays in fullscreen onload (fscommand)..
So hw do i make my video go fullscreen..its a different player on a different frame in the same fla..
(videos externally called by xml)..
Is this even possible in AS2 with flash player 8 ..or do i need to publish with flash 9 or greater..?
Any help wud be appreciated
Thanks
-
you will need to find the instance name o the video holder.
I do not know what the instance name is for you but here would be a example how you would do this.
Actionscript Code:
function toggleFullScreen() { //if normal size, go to fullscreen, else go to normal size if (instantname._width ==500) <<<--------------THATS FUNNY { //SWF FILE Stage["displayState"] = "fullScreen"; //EXE FILE fscommand("fullscreen", true); //INSTANCENAME OR MOVIE CLIP SIZE CONTROL instantname._width =1000; instantname._height =1000; instantname._x =0; instantname._y =0; } else { //SWF FILE Stage["displayState"] = "normal"; //EXE FILE fscommand("fullscreen", false); //INSTANCENAME OR MOVIE CLIP SIZE CONTROL instantname._width =500; instantname._height =500; instantname._x =0; instantname._y =0;
} }
Last edited by Mancent; 11-28-2010 at 03:10 AM.
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
|