|
-
KoolMoves Moderator
Fullscreen Flash from Browser
New from Adobe!
As of flash player 9,0,28 you can do fullscreen in the browser.....
this requires some hand coding of the HTML file to get it to work (thanks Wilbert). This is really cool and while not for useful for most sites as flash player penetration is still low for the most recent release, it will get there fast.
Here's a little test I did
http://bretlanius.com/flash/lab/fstest.html
-
Polak Maly
http://www.motionextreme.com/me_.html#undefined is also fullscreen, without need to uprage FP.
-
KoolMoves Moderator
Very interesting site but I don't see fullscreen anywhere there.
-
Polak Maly
you see a flash animation fitted to browser window. but just enter fullscreen mode in your browser - and entering fullscreen mode is only 2-3 lines of JS.
-
KoolMoves Moderator
Not exactly the same thing is it? I can understand if not everyone is excited about this as I am bu man I'm jazzed about it. Not browser buttons to mess you up with people clicking back button and leaving the site when they don't mean to. etc.
-
up to my .as in code
I'm with you man. Flashplayer 9 is just awesome. They really did a nice job across the board. It's also the reported fastest penetration rate in FP history (nearly 70% right now) and is expected to beat the FP8 penetration timeframe numbers (which were also unreal) by a full two months. This one is getting installed on desktops at an amazing rate.
Last edited by Chris_Seahorn; 01-11-2007 at 05:06 PM.
-
Polak Maly
allright, if you both say that it is worth immediatelly download i just cant wait
-
KoolMoves Moderator
I already had flash 9 player but installed 9,0,28 to try out the fullscreen thing.... O course I had to ask Wilbert for help when it didn't work for me I assumed it was KM not supporting something on export but it's just that the needed parameters are not set up in the HTML output. Three places need it and I only saw two of them..
-
up to my .as in code
9.0.28 is (for a while now) being embedded as the norm for most wrappers as well as part of the Flex Builder 2 (as well as anything else specifically built for FP9 like Flash 9 beta). 9.0.16 was the prior version most heavily used and still used by some people. Adobe has a section where you can download all archived players so depending on the need there are few different FP9's being utilized. Like you, I prefer the 28's.
-
How do you put this up in the html and flash source ?
-
KoolMoves Moderator
-
There is a much simpler way. Just use this code in your html file:
Code:
<script language="JavaScript" type="text/javascript">
<!--
window.ver4 = false;
if(parseInt(navigator.appVersion) >= 4)
{
window.ver4 = true;
}
function big()
{
if(window.ver4)
{
var str4='bigWindow = window.open("full1.html", "big", "height=' + screen.height + ',width=' + screen.width + ',location=0,menubar=0,scrollbars=1,status=0,toolbar=0,top=0,left=0")';
eval(str4);
}
else
{
var str3='window.open("full1.html", "big", "height=480,width=640,titelbar=0,hotkeys=0,dependent=0,directories=0,fullscreen=1,location=0,menubar=0,scrollbars=1,status=0,toolbar=0")';
eval(str3);
}
}
//-->
</script>
Then apply this to a button or mc: getURL("javascript:big();")
(change the full1.html to your url.
-
KoolMoves Moderator
No exactly the same thing though. There is a reason Adobe made this available. To Completely remove the browser interface is a very cool thing and provides a immersive experience.
I realize it may not be for everyone, but you can be sure I'll be using it for a few projects. For example it gives you a true Kiosk look and feel with a web deliverable content.
-
Bret, what code did you use in the fun file?
I was looking at the code and began porting it to AS1 but then some of the code began to loose me.
Probably because it's my first sighting of ContextMenu
-
KoolMoves Moderator
Didn't do the context menu part...
The code is just Stage.display("fullscreen") and Stage.display("normal")
then the HTML paramater allowFullScreen with value of true in the <PARAM> <Embed> and in the Script code where the parameters are listed for the Active Content code.
AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0','loop','true','bgcol or','#000000','width','720','height','480','src',' fstest','allowFullScreen','true','quality','high', 'pluginspage','http://www.macromedia.com/go/getflashplayer','movie','fstest');
<param name="allowFullScreen" value="true">
<embed src="fstest.swf" allowFullScreen="true"
-
Do you place this in a button?
-
 Originally Posted by blanius
Stage.display("fullscreen") and Stage.display("normal")
I didn't know that was also possible. I used
Stage.displayState = "fullScreen";
in my code.
-
KoolMoves Moderator
oops of course your are correct.... I wrote that from memory.
-
KoolMoves Moderator
Diz, button or whatever depending on how you want it to work.
Then main thing is the AS is simple, and you just need a few changes to the HTML.
-
 Originally Posted by xzerox_xzerox
There is a much simpler way. Just use this code in your html file:
Code:
<script language="JavaScript" type="text/javascript">
<!--
window.ver4 = false;
if(parseInt(navigator.appVersion) >= 4)
{
window.ver4 = true;
}
function big()
{
if(window.ver4)
{
var str4='bigWindow = window.open("full1.html", "big", "height=' + screen.height + ',width=' + screen.width + ',location=0,menubar=0,scrollbars=1,status=0,toolbar=0,top=0,left=0")';
eval(str4);
}
else
{
var str3='window.open("full1.html", "big", "height=480,width=640,titelbar=0,hotkeys=0,dependent=0,directories=0,fullscreen=1,location=0,menubar=0,scrollbars=1,status=0,toolbar=0")';
eval(str3);
}
}
//-->
</script>
Then apply this to a button or mc: getURL("javascript :big();")
(change the full1.html to your url.
Wouldn't using javascript to open a popup start the swf all over again? Does the fullscreen in fp 9 continue the playing of the swf or does it restart? Is the fullscreen in fp9 blocked by popup blockers? I'm still using Flash 8
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
|