A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 2 of 2

Thread: Full Screen

  1. #1
    Member
    Join Date
    Sep 2002
    Posts
    32

    Full Screen

    I have a question about scaling. Is there a way to have a movie scale to full screen when a page is opened? I have a page wit nothing but a flash movie on it, and I would like that movie to cover the entire page whether the user has a resolution of 800 or 1024. Can this happen?

    FYI, I am using Flash MX and Dreamweaver MX to build the pages.

    Thanks

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,150
    A simple way, although not fullscreen is to change the width and height to 100%. Then your Flash will resize to the users browser size.
    Other wise put this in the head tag and the browser will get fullscreen.
    <script language="JavaScript">
    window.moveTo(0,0);
    window.resizeTo(screen.availWidth,screen.availHeig ht);
    //*** Next Two Lines Are For Netscape ***//
    window.outerHeight=screen.availHeight;
    window.outerWidth=screen.availWidth;
    window.focus();
    </script>

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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