Resize embed swf

I have a swf that is 400 x 400.
If I want to embed this so that is infact only 200 x 200, and
want the movie to fit to this size but not get cropped is there a
way to do this?
If i try and set the dimensions of the embed in html to 200 *
200 it crops the swf.
Please also note that I have the swf set so that if a user
clicks a certain button it will max the swf to fit to the size of
the browser window.
thanks to any responders.

Hi,
Mike Almond (http://twitter.com/#!/mikedotalmond) has a blog post on this: http://blog.madebypi.co.uk/2010/12/22/strobe-media-playback/
There were also some posts in this forum related to this previously.
-Andrian

Similar Messages

  • Need to resize a SWF file

    i need to resize a swf file thats 800 x 300 down to 600 x 226
    how can i do this without having to set the new parameters in
    the embed tag like this <embed src="banner.swf" height="226"
    width="600"> ..??
    is there a way to resize the whole project when i export the
    swf file or something.
    i made my project a lil to bigger than i needed and have
    already imported a few other swf files into this main banner swf
    project so i need to resize everything down now..
    How can i do this..??

    What format is the file in before you export to SWF?
    What program are you using to convert your file from its
    current form to SWF?

  • Embed swf change Stage.scaleMode

    Is it possable To change the scale mode of a swf in the html embed code?
    my problem: I have the popular free flash game 'metal slug' as a swf, Its too large and wont resize as it was exported by who ever made it to preserve aspect ratio....
    Ive been trying all day to get it to resize but it wont:
    <div id="Nested" style="position:absolute; left:22px; top:32px; width:400px; height:300px; z-index:1;">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="400" height="300">
        <param name="movie" value="metal_slug.swf">
    <param name="scale" value="exactFit">
        <param name="quality" value="high">
    <param name="flashvars" value="Stage.scaleMode=exactFit">
        <embed src="metal_slug.swf" scale="exactFit" flashvars="Stage.scaleMode=exactFit" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="300"></embed>
      </object>
    I have tryed lots of different things including trying to tell the swf through flashvars to be 400 by 300, Ive tryed to decompile it and re-export it with sothink but that didnt work as its no longer reconised any of the game sounds, text, and didnt load any more (tryed and tryed)
    I have searched and searched all through google but this swf still refuses every thing i try!
    please can some one show me how to resize this swf?

    Try publishing swf as width 100% and height 100% (File -> Publish Settings -> HTML -> Dimensions: Percent). Then you can bound it with div and set dimensions of div.
    Hope it solves your problem.

  • How to get the content in embed swf file in Swf Loader on run time

    How to get the content in embed swf file in Swf Loader on run time
    [Bindable]
    [Embed(source="assets/index.swf")]
       private var SWFSRC:Class;
    <mx:SWFLoader id="_swfloader" source="{SWFSRC}" />

    Hi Flex harUI,
    Throw the error.
    Access of undefined property content

  • How to resize a SWF file to fit on stage

    Hi everyone,
    I'm fairly new to Flash so please bear with me. I'm trying to resize a SWF file made in InDesign. My Flash application is set at 1920x1080 and the SWF file was made at the same size. I need it to be resized to 1700x956. This is the section of script that relates to the SWF file.
    break;
    case 'fact_btn':
    eventAction = ".../FactSheet.aspx";
    eventLog(eventAction);
    factLoader.load(new URLRequest("FactSheet/HABFactSheet.swf")); //fact.swf
    factLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
    break;
    factLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
    spotlightStageRect.addChild(factLoader);
    spotlightStageRect.visible = true;
    spotlightStageRect.addChild(close_btn);
    close_btn.addEventListener(MouseEvent.CLICK, removeSpotlight);
    I've tried adding in the code below but the stage comes up blank when I run it in Flash. Anyone have suggestions? Also let me know if you need to see more of the script.
    factLoader.width = 1700
    factLoader.height = 956

    you need to execute that resize factLoader code in loaderCompleteHandler

  • How to embed swf in fla?

    can anyone help me how to embed swf to an fla?
    thnx!

    If the swf has actionscript in it, then you cannot embed it and still have it work (it will lose its code), so you need to load the file dynamically instead.

  • Load and resize a SWF inside a MC

    Hi,
    I'm using AS2 to load an SWF inside an MC. The MC measures
    800x600, while the SWF (which can vary in size) measures in this
    case 14x60, even though, looking at it, it seems to be about half
    the size of the hosting MC. This makes me think that the dimension
    scales are different. I'm loading the SWF using MovieClipLoader and
    I'd like to resize it so that it fits as proportionally snug as
    possible within the MC. How can I do this? If I try to resize the
    SWF to the MC's dimensions, it become way too large and goes off
    screen. If instead I try to rescale the hosting MC to fit around
    the SWF, the SWF itself rescales as well. I'm going nuts! How can
    accomplish this?
    Thank you,
    Tatiana

    To make things simple, I'd like to take an existing SWF (the
    picture) and load it into a FIXED SIZED MC (the frame) and I'd like
    to rescale the SWF so that it fits perfectly into the frame.
    By all means, I know that what you said should work and I
    admit my inexperience with AS2, but somehow the SWF's I'm loading
    in, have scales that are totally different with respect to my
    Stage. I even tried loading the SWF directly onto the stage and
    then I loaded the frame separately onto the stage and tried to
    resize it to the SWF's _width and _height. The frame became a tiny
    dot on the screen, while the SWF filled half of my Stage.
    Thanks again for your help.

  • Problem with embed swf in fla

    hallo,
    I am trying to embed an SWF into an FLA (My website)
    I want to embed an SWF movie on page 4 of my website along with other content.
    There are a lot of tutorials on the web, but to be honest, I get so confused, a lof of them have errors so I figured i'd ask here if anyone knows of a good, simple tutorial on how to embed SWF in FLA.
    thanks so much.

    The mask would be a separate layer that sits above the layer your animation is in.  So if you right clicked the layer the animation is in and selected mask, then that's not masking it, it turning it into a mask.  What you want to do is create another layer above it and draw a rectangle that would be the same size as the stage of the swf.  Then if you right click that layer it and select mask, the rectangle will be the mask for the anoimation--allowing only what is beneath it to be viewed.

  • Resizing Imported SWF?

    I have imported an SWF into a FLA project library and have
    dragged it onto a frame in my project. I am trying to resize the
    SWF to about 1/4 of its original size to make it fit correctly in
    the new project. I cannot figure out how to resize the SWF. I have
    tried the properties sheet, but it won't take different width and
    height parameters. No object boundaries appear (all I have is a dot
    to select the object) so I cannot use the transform tool to scale
    it. Any ideas?

    I did this recently where I had a backdrop clip that I wanted
    to serve as a 'screen' for jpgs I loaded in. I wanted them to
    resize to the full extent of the background clip and maintain their
    aspect ratio. The backdrop clip could have different dimensions at
    different points in time as well... anyhow this should work with
    swfs same as jpegs.
    So I'll explain it in my context as I don't know exactly
    yours (sorry this might sound a bit complicated because of that).
    #1 If your holderclip is called
    imageHolder and it contains a single clip inside at location
    0,0 called
    imageBackdrop
    #2 You create an emptyMovieClip inside imageHolder and use it
    to load your swf into using a Loader with a listener
    #3 you have some code similar to this in your onLoadInit
    event for the Loader (onLoadInit lets you initialise things like
    size location etc before it displays)
    If you can do something like that then I think you should be
    on the right track for what I think you want to do.

  • Resize the swf in an elastic div

    Hi, i want to explain my problem:
    I've an elastic css layout, and there is a div hat countains
    my swf, this div has height and width variables, that is, the
    dimension of the div is not fixed, height and width are not in px
    but in %.
    Now, I want to know how can I do to have the swf resizabe
    100% height and 100% width in the div? If I give 100% to height and
    width in the embed tag the result it's that the swf don't resize it
    self, but there are white spaces in the div (if I click with the dx
    buttom of the mouse on th white spaces I see the traditioal flash
    menù).
    Someone says to me that the solution is to use an
    actionscript with a stage object.
    I'm not an expert of flash, someone can help me with this
    problem?
    Thanks!

    You cannot have static content above interactive content.

  • Safari is resizing the swf file

    i go to File => Open => swf
    it opens just fine, but then when i resize the window
    everything grows or shrinks with the window.
    what's that about?

    Seth Prince;
    That is what happens when you open a "bare" swf--embed the
    swf in an
    html page and set the size in pixels. See flash's publish
    feature... -Tom
    Unger

  • Embed swf to open in new page

    Hey guys,
    I got this code to upload a few swf files. It worked just great, except I have the swf plays within the same page. I'd like to add something like a "_blank" code to have the swf plays in a new browers window. But I don't think that's the code for it, and I don't know where to put it.
    PLEASE help..
    THANKS
    existing code I"m using:
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0, 40,0"
    WIDTH="320" HEIGHT="240" id="XXX">
    <PARAM NAME=movie VALUE="XXX.swf">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=base VALUE=".">
    <EMBED src="XXX.swf" quality=high WIDTH="320" HEIGHT="240"
    NAME="Nextel1" ALIGN="" TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" base=".">
    </EMBED>
    </OBJECT>

    There's nothing wrong with the code.
    If you want the flash file to open in a new browser window, put the swf file on the server and make a hyperlink to it that opens in a new browser window.
    Or create a webpage as you have now and make a hyperlink to it so the page opens in a new window.
    You add a hyperlink on the page where you want the hyperlink.
    It's the way a website works and it's not iWeb specific.
    You may want to learn html etc.

  • How to embed swf in flash player with skin

    Hi,
    I tried to embed a swf in asp.net page. The code is
    OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" WIDTH="498" HEIGHT="288" >
                    <PARAM NAME=movie VALUE="../Flash/PersonalGreetingMovie_002a_B.swf">
                    <PARAM NAME=quality VALUE=high>
                    <param name="wmode" value="transparent">
                    <param name="FlashVars" value="&streamName=FLV_Video_URL&skinName=Flash%2FSkinOverAllNoCaption%2Eswf&autoPlay=fal se&autoRewind=false">
                    <EMBED src="../Flash/PersonalGreetingMovie_002a_B.swf" quality=high wmode="transparent" FlashVars="&streamName=FLV_Video_URL&skinName=Flash%2FSkinOverAllNoCaption%2Eswf&autoPlay =false&autoRewind=false" WIDTH="498" HEIGHT="288" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
                </OBJECT>
    But it got error:
    Error #2044: Unhandled skinError:. text=[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="
    Error #2035: URL Not Found. URL: SkinOverAllNoCaption.swf"]
    It seem that skin swf of SkinOverAllNoCaption.swf can not be found or loaded. Please help.Thanks.
    York

    If the swf has actionscript in it, then you cannot embed it and still have it work (it will lose its code), so you need to load the file dynamically instead.

  • How to resize a swf created in Catalyst?

    Hello,
    I have created a beautiful site in Catalyst. My problem is: I don't know a code to edit the size of the swf created in Catalyst.
    The swf is now 800 x 600, but I want it to automatically fit the browser.
    I already made an swf in Flash Professional CS5, and then import it in Dreamweaver, and edit 800 x 600 to 100% x 100%.
    This works really well, but when I do the same with my swf created in Catalyst, it doesn't.
    Does anyone know how I can solve this problem?
    Thanks,
    Matiege

    Hi Matiege,
    What version of Fc are you using? The latest version of FC, called "Panini", supports constraints, so you can run the project, resize the browser and all objects that are using constraints will be aligned properly. The object layout constraints are specified with so called "suction cup" displayed when the object is selected. There is also a few options if you right click on the suction cup. The "Panini" is available for download at http://labs.adobe.com/technologies/flashcatalyst_panini/.
    The older version of FC supports absolute coordinates only.
    Does it answer your question?
    Thanks,
    - Mykola
    FC QE

  • Resizing imported swf files...

    I have a movie clip that I want to import a swf file into,
    but the swf is larger than the movie clip's area. I tried using a
    resizing code for importing images that I found, but it makes the
    swf very small. Is there a way to control the size of the imported
    swf?

    I did this recently where I had a backdrop clip that I wanted
    to serve as a 'screen' for jpgs I loaded in. I wanted them to
    resize to the full extent of the background clip and maintain their
    aspect ratio. The backdrop clip could have different dimensions at
    different points in time as well... anyhow this should work with
    swfs same as jpegs.
    So I'll explain it in my context as I don't know exactly
    yours (sorry this might sound a bit complicated because of that).
    #1 If your holderclip is called
    imageHolder and it contains a single clip inside at location
    0,0 called
    imageBackdrop
    #2 You create an emptyMovieClip inside imageHolder and use it
    to load your swf into using a Loader with a listener
    #3 you have some code similar to this in your onLoadInit
    event for the Loader (onLoadInit lets you initialise things like
    size location etc before it displays)
    If you can do something like that then I think you should be
    on the right track for what I think you want to do.

Maybe you are looking for