A Flash Developer Resource Site

Results 1 to 20 of 48

Thread: Fullscreen Flash from Browser

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Quote Originally Posted by Menzoic
    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
    As far as I know open a popup using javascript would start the swf all over again.
    FP9 fullscreen continues to play the swf. It does not restart. What's also very nice is that you can define the rectangle that is going to be blown up to full screen.

  4. #4
    Member
    Join Date
    Aug 2007
    Posts
    58
    cool, thx

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