A Flash Developer Resource Site

Page 1 of 3 123 LastLast
Results 1 to 20 of 48

Thread: Fullscreen Flash from Browser

  1. #1
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    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

  2. #2
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    http://www.motionextreme.com/me_.html#undefined is also fullscreen, without need to uprage FP.

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Very interesting site but I don't see fullscreen anywhere there.

  4. #4
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    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.

  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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.

  6. #6
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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.

  7. #7
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    allright, if you both say that it is worth immediatelly download i just cant wait

  8. #8
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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..

  9. #9
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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.

  10. #10
    Member
    Join Date
    May 2004
    Posts
    60
    How do you put this up in the html and flash source ?

  11. #11

  12. #12
    Senior Member
    Join Date
    Sep 2005
    Location
    Gothenburg, Sweden
    Posts
    357
    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.
    /xzerox... Take a look at http://www.vmgcomputers.com/h75

  13. #13
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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.

  14. #14
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    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
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  15. #15
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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"

  16. #16
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Do you place this in a button?
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  17. #17
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Quote 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.

  18. #18
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    oops of course your are correct.... I wrote that from memory.

  19. #19
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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.

  20. #20
    Member
    Join Date
    Aug 2007
    Posts
    58
    Quote 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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center