A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: Full Screen Tutorial

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Posts
    356

    Smile

    Would someone please direct me to an excellent tutorial on how to launch a Flash movie FULL SCREEN? I've seen them everywhere, but never tried to do it. And now that I'd like to do it, none of the tutorials are what I'm after. I'm trying to create the same effect as:

    http://www.nutshelldigital.net

    Thanks, Metrov

  2. #2
    architech
    Join Date
    Jan 2001
    Location
    bcn
    Posts
    255


    Just use the FSCommand (command: fullscreen, arguments: true)

    Unfortunately this only works while opening your swf files in your hard drive or a CD. I'm looking for a tutorial on how to do it in html as well, if you find any please let me know.

    Hope that helps.

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    356
    Yes, I'm talking about Full Screen Flash for HTML / Internet delivery.

    M

  4. #4
    Senior Member
    Join Date
    May 2000
    Posts
    105

    resolved

    Try this code:

    <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="yourfile.htm";
    }
    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="yourfile.htm";

    }
    if (navigator.appName=="Microsoft Internet Explorer")
    {
    window.open("yourfile.htm","screen","fullscreen=ye s");
    }
    }
    else
    {
    location.href="yourfile.htm";
    }


    }
    // -->
    </script>

    then

    <body onLoad="intro();">

    hope it will help...


    VALMONT

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Posts
    1,180
    Hi...
    Heres a utility that produces the parameters of your windows for you:

    http://www.actionscripts.org/tutoria...er/index.shtml

    Hope this helps.

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Posts
    356
    Thanks very much for your suggestions. They work well.

    However, is there a code that will make your .swf [no matter what size the original] go full screen as well?

    These codes make the browser go full screen, and then stretch the Flash Movie all the way to its largest dimension, either width or height, which may not fill the whole screen. I know I've seen sites where the entire screen is a Flash Movie.

    Or, is there another way to do this?

    Thanks, M

  7. #7
    Junior Member
    Join Date
    Feb 2001
    Posts
    3
    you can read in the screen height and width using the javascript commands screen.width and screen.height then launch a new browser window which holds your flash movie. Now you just have to read in the screen width and height from the javascript into flash and scale the movie appropriately.

    At least i think that should work. I'm afraid i'm not amazingly experienced with flash yet so i can't tell you exactly how to read in the javascript variables width and height.



    Here is an html page that you can adjust:

    <html>
    <head>
    <title>...page title...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <SCRIPT LANGUAGE="Javascript">
    var width = screen.width;
    var height = screen.height;

    <!-- Begin
    function openWindow(URL) {

    newWindow = window.open(URL,"title","toolbar=1,location=0,dire ctories=0,status=0,menubar=0,scrollbars=0,resizabl e=1,width=width,height=height,left=0,top=0")
    }
    openWindow('whatever your URL is')

    window.close(this);
    //END -->
    </SCRIPT>
    </head>

    <body bgcolor="#FFFFFF" text="#000000">

    </body>
    </html>

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Posts
    1,180
    Hi..
    Do as above then add this fscommand to the first frame of your swf file:

    fscommand ("fullscreen", "true");

    Good luck.

  9. #9
    Senior Member
    Join Date
    Jul 2000
    Posts
    356
    mmmm, well, I'm trying all the above methods without success yet. I'll just keep playing with it until I get it to work [hopefully]. It's not an urgent matter; would just like to add the technique to my toolkit.

    Thanks again, m

  10. #10
    Senior Member
    Join Date
    Jun 2000
    Posts
    1,180
    Hi..
    Quick step:
    1) Add this action to frame 1 of your movie:

    getURL ("javascript:window.open('http://www.flashkit.com','NameofWindow','fullscreen=yes,t op=0,left=0'); void(0);");
    fscommand ("fullscreen", "true");

    Good luck.

  11. #11
    Senior Member
    Join Date
    Jul 2000
    Posts
    356
    MMMMMMMMMMM....still no luck. Will have to keep tweeking. Have to go visit my tax accountant now. Back later. Thanks again. m

  12. #12
    Senior Member
    Join Date
    Feb 2001
    Posts
    221
    Check out your publish settings.
    On the HTML tab > Dimensions... select percent and then 100% on width and height.

    You may want to play around with these settings. I hope this is what you are needing.

    --Neelixx

  13. #13
    the usual
    Join Date
    Jul 2000
    Posts
    1,482
    a bit of advice with the full screen option - make sure that you have an exit button in your movie - many people don't which is very annoying so they tend to just exit before they even look at the site!

    Hope this is of use

  14. #14
    Senior Member
    Join Date
    Jul 2000
    Posts
    356
    I will probably abandon the full screen option. See here for the reason why:

    http://www.macromedia.com/support/fl...vie_size01.htm

    Thanks to my friend, rgb. Metrov

  15. #15
    Senior Member
    Join Date
    Sep 2000
    Posts
    177
    What would the actionscript be for your button?

  16. #16
    Senior Member
    Join Date
    Sep 2000
    Posts
    177
    I used this script 4 my button:

    getURL ("javascript:window.open('http://www.flashkit.com','NameofWindow','fullscreen=yes,t op=0,left=0'); void(0);");
    fscommand ("fullscreen", "true");

    but to have this function work you have to do this from another web page by clicking on a button. I want to type in my url and have it go to fullscreen without clicking on any button and having another window open. Then have an action inside my button to close the site.

    Can this be done within flash without any java.

  17. #17
    Senior Member
    Join Date
    Sep 2000
    Posts
    177
    I used this script 4 my button:

    getURL ("javascript:window.open('http://www.flashkit.com','NameofWindow','fullscreen=yes,t op=0,left=0'); void(0);");
    fscommand ("fullscreen", "true");

    and it worked but to have this function work you have to do this from another web page by clicking on a button. I want to type in my url and have it go to fullscreen without clicking on any button and having another window open. Then have an action inside my button to close the site.

    Can this be done within flash without any java.

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