Link to home
Start Free TrialLog in
Avatar of Nickvannuil
Nickvannuil

asked on

FULL SCREEN MOVIE

right now im working on a lil project of my own...
i want the flash movie im working on to be able to run from a cd rather than put it on the internet...
i was wondering if anyone know how to make a flash movie, when opened, run in full screen?
also i'd like to know how u make a flash movie maximise the window its being played in, ie the flash player program.
also how would i make it auto run from a cd?

thank you veryyyyy much!:)!
Avatar of rascalpants
rascalpants
Flag of United States of America image

place this code in the first frame of the movie to make it a fullscreen:

fscommand("fullscreen", "true");


you would have to use Javascript in conjunction with a getURL(); to make the window maximize.


you create an Autorun.inf file by opening notepage and type the following:

[autorun]
OPEN=moviename.exe

and then save the file as AUTORUN.inf


the autorun file will open the moviename.exe file ...



here is the javascript to auto maximize the window...


<script language="JavaScript">
<!--

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>


just place this code in between the head tags of your html file...


rp  
Avatar of Nickvannuil
Nickvannuil

ASKER

thank you:-)
ASKER CERTIFIED SOLUTION
Avatar of rascalpants
rascalpants
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks man....im still not so sure about the javascript part... you said just put it in between the html tags and there was already javascript stuff there from the FS Command soooooooo im a lil stuck with it but ill get there! thanks!
there is no fscommands in my javascript code above?  are you using it somewhere else?

you can have as many Javascripts on a page as you want...

just place the one I gave you first, and it should relocate the page and make it fullscreen...


rp