A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Open full screen

  1. #1
    I am having trouble opening my swf in full screen. To bypass this I've published my movie to html as a cheat. What code do I have to incorporate into my index.html to start my intro in full screen.

    Thanks


  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Boca Raton, FL
    Posts
    158
    put this into the html doc. dont forget the part in the body tag.
    </head>
    <script LANGUAGE="Javascript">
    <!-- //

    function intro()
    {
    if ((navigator.appVersion.indexOf("Mac")!=-1) &&
    (navigator.userAgent.indexOf("MSIE")!=-1) &&
    (parseInt(navigator.appVersion)==4))
    {
    skip()
    }
    else
    {
    popup()
    }

    }
    function skip()
    {
    location.href="1_page.html";
    }
    function popup()
    {
    version = parseFloat(navigator.appVersion.substring(navigato r.appVersion.indexOf('.')-1,navigator.appVersion.length));
    if (version >= 4)
    version = parseFloat(navigator.appVersion.substring(navigato r.appVersion.indexOf('.')-1,navigator.appVersion.length));
    if (version >= 4)

    {
    if (navigator.appName=="Netscape")
    {

    location.href="1_page.html";

    }
    if (navigator.appName=="Microsoft Internet Explorer")
    {
    window.open("2_page.html","screen","fullscreen=yes ");
    }
    }
    else
    {
    location.href="1_page.html";
    }


    }
    // -->
    </script>


    <body LINK="#000000" BGCOLOR="#000000" onLoad="intro()">


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