Full screen in swf

Hi Everyone,
I have created a flash project in CS5 and I have set the size of the stage to 500 x 400. When I view it in the flash player as the swf it plays fine. What I want to be able to do is get the swf file to fill the screen with the image no matter what size the end user scales the window of the Flash player too.
Any help would be appreciated.
Thanks
Neil45156

"Filling the screen" can be either a good thing or a bad thing, depending on whether or not you are taking into account the aspect ratio of the .swf. For several examples of Flash "scaling" as relates to aspect ratio... from an old post:
Here are examples of different scaling parameters available in the Publish settings. You can also add these parameters directly in the html (<param name="scale" value="noscale"). All the examples replace the actual Flash dimensions with 100% for both width and height (width="100%" height="100%"). These examples use the old <object> and <embed> to illustrate the different ways to scale Flash. Once you understand how it works I’d recommend that you use swfobject to place the Flash in your final project.
View the source code for each page to see the full code.
http://www.cidigitalmedia.com/tutorials/scale/exact_fit.html
"exactFit" scales the file to fit exactly within the confines of the screen, irregardless if the movie becomes consequently distorted. The original aspect ratio is not maintained. So round things are not round and squares are not square.
http://www.cidigitalmedia.com/tutorials/scale/noScale.html
"noScale" is the default setting, and causes the movie to be displayed at the originally designed dimensions.
http://www.cidigitalmedia.com/tutorials/scale/no_border.html
"noBorder" causes the movie to be scaled to what ever dimensions are needed to have no border surrounding the movie within the player, which consequently could result in some of the movie being cut off from view. In other words, the movie will maintain the original aspect ratio and will fill the screen completely. But if the movie has to be streched wider to fill both sides of the screen, it will also stretch taller, but then some of the top and the bottom of the movie may be cut off from view.
http://www.cidigitalmedia.com/tutorials/scale/show_all.html
"showAll" scales the movie to the size of the screen (which could cause pixelation if the file contains raster information), the difference between showAll and exactFit is that showAll mantains initial movie size proportions. Because it maintains the original aspect ratio, there can be space to the sides or the top and bottom. But everything always shows and they are not distorted. But notice the photo in the center, it becomes pixilated at larger screen resolutions.
The trickiest part of trying to go full screen is that it’s difficult to make the Flash wider without making it taller also, that is, to maintain the correct proportions or aspect ratio of everything on the stage. These methods are just simple scaling accomplished with html. There are also methods to dynamically scale the stage and it’s elements using Actionscript… but that’s a much more complex undertaking.
Best wishes,
Eye for Video
www.cidigitalmedia.com
Hope you find this helpful.
Best wishes,
Adninjastrator

Similar Messages

  • Open .swf in full-screen browser window?

    Hi there! I would appreciate if someone could help me with this:
    I have a .swf that I embed in an .html file. When loaded, the html file opens up in a window with the application taking up only 50% of the window. I'd like to have the application open in a window that's full screen. Is that possible at all?
    The .html file I'm using is a standard one generated by Captivate and looks like this:
    <!-- Copyright [2008] Adobe Systems Incorporated.  All rights reserved -->
    <!-- saved from url=(0013)about:internet -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Title</title>
    <script src="standard.js" type="text/javascript"></script>
    </head>
    <body   bgcolor="#ffffff">
    <center>
        <div id="CaptivateContent"> </div>
        <script type="text/javascript">
           var so = new SWFObject("myfile.swf", "Captivate", "891", "551", "10", "#ffffff");
            so.addParam("quality", "high");
            so.addParam("name", "Captivate");
            so.addParam("id", "Captivate");
            so.addParam("wmode", "window");
            so.addParam("bgcolor","#ffffff");
            so.addParam("menu", "false");
            so.addVariable("variable1", "value1");
            so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
            so.write("CaptivateContent");
        </script>
        <script type="text/javascript">
            document.getElementById('Captivate').focus();
            document.Captivate.focus();
        </script>
    </center>
    </body>
    </html>

    Hi,
    What do mean by browser window?
    If you mean the File>Open dialog, double click on the Title bar to get it back to a smaller size.

  • Can a SWF file resize in the PDF when user zooms or goes 'full screen'?

    Hi,
    I've got some animation in my Indesign file which I've exported as a SWF and brought back in to InDesign.
    I then create the Interactive PDF. It has a white background, so I select it in Acrobat and got to PROPERTIES and give it a transparent background.
    BUT, when I go full screen or above 75% - the SWF shrinks on page.
    The users of this PDF will need to zoom in, or go full screen. I really need the SWF to be resizing as the user goes full screen, or views it however they choose.
    Is there a way to set the SWF to resize with the PDF?

    Let me guess. You’re using InDesign CS5 and never bothered to install any of the patches.
    Download and install 7.0.4.
    Bob

  • Full screen with swapping swf file

    I am creating a projector presentation in which a swf file is
    being loaded (loadmovie) and replacing the currently running one.
    And I have the movie set to be full screen mode (both movies are
    set to that using the fscommand). The problem I'm having is that
    once the new movie is loaded, it goes from being full screen (movie
    is not being scaled, so there's black behind it) to jumping into
    the left hand corner of the monitor at the movie's size. It still
    kinda acts like it's full-screen, there's no menu items and no
    window frame.
    Any idea what's going on here, and better yet, how I can fix
    it?
    thanks for your help.

    Don't load external files into _level0 or _root.
    Replacing the main swf with another is not a good practice.
    There are a few other examples of problems caused by this.
    AFAIK this only happens on the Mac platform. Is that what you
    are using? Also I don't think there is any other solution. If
    anybody knows anythings else, please let us know.

  • .Swf file full screen problem

    Hi, i'm using FMS 4.0 to perform an rtmp stream and an .swf player, built in Flash professional to open the stream!
    My problem is that when i embed the swf into my site (www.livezone.gr), all the buttons work except of the full screen button! To embed the swf file i have uploaded it to my web server first in a folder which also includes the Skin.swf file and
    i use the following  code to embed it :
    <iframe src="My Video.swf" frameborder="0"  width="610" height="480"></iframe>
    The problem is only when embeding it,otherwise when i open it directly from my webserver or my pc everything works fine!
    .That's my only problem,if you can help me solve it everything will work like a charm!
    Thanks in advance, Michail Papamichalakis

    open the fla that published your swf.  click file>publish settings, tick html if it's not already ticked.  click the html tab>click the template combobox and select flash only - allow fullscreen.
    then click file>publish.
    you should see your swf file (re)published and an html file in the directory with your fla.
    put the flash published swf and html in the same directory with your iframe containing html file and change your iframe tag to:
    <iframe src="Live%20Streaming%20player1.html" frameborder="0" width="610" height="480" ></iframe>
    assuming that's the name of the html file published by flash.

  • Opening flash .swf and constraining it to it's original size rather than full-screen

    When I open a flash object (.swf) from my desktop to test it, it opens full screen. I would like to constrain it so that it opens to the size it was created, e.g., 800 x 600.

    If you open an SWF link directly in a browser tab then you always get the dimensions of that tab. You either have to open the link in a new window and resize it or use the above mentioned bookmarklet code with a keyword and the url as the parameter to replace the %S. Bookmarklet code like that is very handy as you can also use it if Firefox insists in downloading a file (image) and you want to open it in a tab. Of course you need to supply the correct MIME type in that case.
    * http://en.wikipedia.org/wiki/Bookmarklet
    * http://en.wikipedia.org/wiki/Data:_URI_scheme

  • How i can make my swf file appear full screen?

    Salam;
    I need to make my swf view as a full screen in all browsers, i need to add code in fla file, not in html page, can i make that?
    thanks for any help ...

    1.  the stage has a displayState property you can use.  check the help files for example code.
    2.  publish your html to allow full-screen.
    3.  test in your browser.

  • SWF full screen mode

    I need to generate a SWF file that will be converted into EXE and recorded a CD. When I run the EXE file on the CD takes it to appear in full screen. I can not do this in InDesign. The file is generated, but when I run is converted not appear in full screen. Only appears if I give the command CTRL F.

    I think Flash Projectors (exe and app) are operating inside their own security sandbox and therefore it´s possible to make full screen as an initial state. Same goes with Adobe AIR...
    But if you run your SWF inside the browser, yes, user has to accept full screen state...

  • Script to force Full Screen SWF?

    I'm creating eBrochures in ID_CS5 but looking to create SWFs that fun full screen for local playback, not web based.
    Is the full screen paramter scriptable from within ID so that the SWF opens as such ?

    Your solution may be to convert your video to FLV and have an autorun on the disc that runs an embedded flash video player. In this fashion, with directx you can automatically go full screen (almost as though running an opening cinematic from a game).
    The downside is that the project would only be copatible with Windows based PC's, and then for maximum compatibility you'd need to do some research on video capabilities, as well as programming skill (to some degree) for scripting the procedure.
    Suffice to say, it sounds like it would be more trouble than it is worth, unless the need is great.

  • Opening swf in full screen mode

    Hi,
    Is there a way to adjust the screen resolution through actionscript? My requirement is to open the flash movie in full screen mode while all the contents are resized according to the screen size that the movie clip is runing. Please note the movie is not opening on a browser, it should be opened as a stand-alone SWF file.
    I tried to do this by setting stage.displayState = StageDisplayState.FULL_SCREEN; at the begining of actionscripot, but it didn't work.
    Thanks.

    Hi,
    I am using the below function and it is working fine..
    import flash.events.MouseEvent;
    import flash.display.StageDisplayState;
    fullScreenBtn.addEventListener(MouseEvent.CLICK, onfullScreen);
    function onfullScreen(event:MouseEvent):void
              stage.displayState = StageDisplayState.FULL_SCREEN;
    i think the problem is you are trying to load it full screen from flash IDE, if so then it will not work, Try to run the SWF file seperately, it would definately work.
    Vipul

  • HOW to view SWF full screen with controls

    I have a SWF file. Is there a player that can allow me to
    play it full screen with basic controls at the bottom? Controls
    that I can choose play, stop, pause, fast fwd, rewind and a
    progression bar. Thanks!
    Glenn

    on(release) {
    fscommand("fullscreen", true);
    glennchung wrote:
    > I have a SWF file. Is there a player that can allow me
    to play it full screen
    > with basic controls at the bottom? Controls that I can
    choose play, stop,
    > pause, fast fwd, rewind and a progression bar. Thanks!
    >
    > Glenn
    >

  • How to link swf in html and make it full screen?

    Hi,
    I gotten with me a game in .swf format.
    I seen some site with full screen flash game, meaning people play the game full screen. How do they do that?
    how do i link my .swf file to index.html and make it full screen?
    Thank you.

    Hi, thank you.
    i have seen the video. I no longer have the source file but only have the final output, .swf.
    how do i link my .swf file to index.html and make it full screen?
    using html and css.

  • Flash .swf full screen?

    i have a .swf file in the index.html, i want to have full
    screen of the swf file from the web page. how to do that? alsoi
    need to use KEYBOARD in the full screen,. (i mean i will type
    something on search / text box)
    Is there any sample code to do?

    You need to use a % for the width and height embed.
    If you want it to fill the screen, change the width and height both to 100% instead of the pixel dimensions.  This way it will fill the screen, and the scaleMode will shrink/stretch it accordingly.

  • FlashDVD.swf to FLA for better interface (full screen...)

    Does anyone know how to edit the FLA for FlashDVD.swf so i can add features like full screen and stuff? Posably decompiling?

    They don't bother me, but I know how those little things can be sometimes... and respect your opinion that they bother you.  I don't think anyone would be adversely affected if they were toned down a touch or two (i.e. made darker, but still visible).
    To take it a step further, I actually may see an opportunity for the developers to add some value to these markers (regardless of whether or not they make them less obtrusive or not):  position them according to the center-lines of the image being viewed (rather than the center-lines of the monitor, as they are currently).  In their current implementation, they provide useful information (i.e. a quick and easy way to see the center of each axis) only if no panels are visible, or if both the left- and the right-panels are visible and also identical in size.  If one side panel is taken away (as in the screen-shot you posted above), the top and bottom arrows no longer provide useful information, as the center of the image is now shifted towards the side without a visible panel.
    It's a small detail, but perhaps and easy one to refine...

  • Interactive rollover function isn't working in full screen mode.

    I've created an interactive document with animation in Indesign CC.
    Part of this document has menu bars that change to longer bars when rolled over. I export as an swf and then place that in a separate document to export to pdf. When I open it in Acrobat Pro XI everything works correctly...until I make it full screen. The text and images look fuzzy and low res and the roll over function on the menu bar doesn't work. Unless you click and drag over them, not hover.
    Things I have tried:
    Changing the document to A3, as it is currently A4 - no change.
    Changing the resolution in both flash exporting options and interactive pdf exporting options. I've tried 72 dpi, 96dpi 110dpi (to match the acrobat settings) - still no change.
    Have tried both multi state object method of changing the menu bar and a show/hide function - This hasn't made a difference either.
    I've had a flick through Acrobat settings but I'm not sure what I am looking for.
    The buttons used with the roller also have a on release or tap function to go to a destination as well as the rollover option. I'm not sure if this button having multiple actions might be affecting this as it seems to have no problems handling multiple interactive actions when not in full screen.
    Any ideas?
    Thanks
    Jodie

    Hi,
    I would like to inform you that you need to use keyboard shortcut V to bring up the select tool (Ctrl-V does not work).
    Also, you may try pressing the F8 key to un-hide the toolbar.
    Regards,
    Nakul

Maybe you are looking for