[quoted text, click to view] crebstock wrote:
> Is there a way to make a flash file launched from a website fullscreen without
> the browser bars? I realize the current solution to this question is to make
> the browser window the size of the screen, but you still have the top title bar
> and often the user's taskbar at the bottom. I'm open to any type of solution,
> but I would like the flash video to operate much the same as many DVD playback
> applications do. When you double click the video occupies the full screen and
> the controls and any bars at the top and bottom are completely gone.
this is an HTML/JavaScript question really, but what the hell..
I would actually not recommend you do this. The only browser that
supports launching in fullscreen mode is Internet Explorer, and even
then it is disabled by default in the latest version on XP SP2.
If you still want to go ahead with it, you need to use JavaScript like
the code below to launch a fullscreen window.
function openWin(file)
{
options =
"toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no,top=0,left=0,fullscreen=yes";
var win = window.open("flash_frameset.html",'flashWin',options);
win.moveTo(0,0);
}
To get rid of the scrollbars completely you must put your flash page
within a frameset. The HTML for that frameset should look something like
this:
<html>
<head>
<title>Flash Frameset</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset cols="*,1024,*" frameborder="NO" border="0" framespacing="0"
rows="*">
<frame name="leftFrame" scrolling="NO" noresize src="blank.htm">
<frameset rows="*,768,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="blank.htm" >
<frame name="mainFrame" scrolling="NO" src="flash.html">
<frame name="bottomFrame" scrolling="NO" noresize src="blank.htm">
</frameset>
<frame name="rightFrame" scrolling="NO" noresize src="blank.htm">
</frameset>
<noframes>
<body bgcolor="#FFFFFF">This programme requires a browser capable of
displaying frames.</body>
</noframes>
</html>
You will also need a page called 'blank.htm' which is just an empty html
page. The code above shows a frameset that would be tailored for a 1024
x 768 resolution. If opened in a higher resolution the 'blank.htm' pages
will fill the extra space around the main page, so you should make sure
the colour in 'blank.htm' is set to something that matches your main
movie nicely.
also note that if you're using a frameset, the code to close it via
javascript (which you will need to use since there'll be no close button
in a fullscreen window) is different to the normal code. To close a
frameset, you must use:
top.window.close();
Just to reiterate one more time - I *strongly* suggest you don't use
fullscreen (aka 'kiosk mode') browser windows like this without good
reason, especially on an internet page.
The only reason I use them is because I produce a lot of flash-based
e-learning that runs on corporate intranets, and even then I use it
judiciously, only when appropriate.
If you do this on the web, it won't work at all in the majority of
modern browsers (IE on XP SP2, Firefox, Safari, Mozilla, Netscape and
Opera) and even if it does work, you're likely to annoy your users by
blocking out their taskbar and taking over their monitor completely.
Opening browser windows fullscreen also behaves very erratically if you
use a dual-monitor setup like I do - the window will occasionally open
completely offscreen meaning you have to open Task Manager (or Force
Quit on a Mac) and kill the IEXPLORE process to get rid of it.
You have been warned!
--
MOLOKO
Macromedia Certified Flash MX 2004 Developer
Macromedia Certified Flash MX Developer
------------------------------------------------
::remove _underwear_ to reply::
'There ain't no devil - it's just God when he's drunk' Tom Waits
------------------------------------------------
GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+ w+++$ !O M+