Change the size of the SWF/FLA

I wonder if it is possible to change the size of a flash application when running?

I know that I can to scale the SWF with HTML/JavaScript, but I do not speak here of scale. I want to change the actual size only it visually enlarge. Let's say my SWF is 400 x 300 pixels. When running, I want to change it to 500 x 400. All the elements in the SWF file (buttons or other) should remain the same size. This is the scene itself that needs to change.

Is this possible and if so; How can I do?

Yes and no.

No, you can't dynamically change the size of the stage.

Yes, you can view your SWF file in any size space.

What do I mean?

When you embed the object in the HTML code, you can set the width and height to whatever size you want, regardless of the size of the stage.  You can even change these settings dynamically with Javascript if you want to.

Then, in the SWF file (you can do it in the embed as well) - you set the ScaleMode to "noScale" and the attribute align 'C' and you have the effect of a larger scene, without changing.

How to change the ScaleMode and align, you ask?

If you use Actionscript 2, in the first frame actions:

Stage.scaleMode = "noScale";

Stage.Align = "C";

The Stage.align has many other parameters (and 'C' is not documented as an option).  'C' centers completely from the scene.  Then there is "TL" - TopLeft, 'T', 'TR', 'L', 'R', 'BL', 'B', 'BR' one for each of the 9 spots on the grid.

If you use Actionscript 3:

stage.scaleMode = StageScaleMode.NO_SCALE;

AS3 automatically sets the attribute align C for you.  If you want to change it:

internship. Align = StageAlign.TOP_LEFT; (or one of the others)

Tags: Adobe Animate

Similar Questions

  • Help! Size of the SWF become bigger after an AE project

    Help!

    I did a project EA, that make up a SWF and a WMF file

    When the project is set up, I found the file size of the SWF become bigger than the original

    What is the worse: the content of the SWF file was changed, and some content was gone

    Although changing the SWF status read-only can solve this problem

    However, I would like to know what has happened, and what happens if this happens on WMV?

    THX A LOT!

    If the problem is that a SWF file that you use as source footage has been changed, it is because you have the preference enabled to write XMP metadata to imported files. Which turns off. (It is disabled by default in the current versions of After Effects.) This preference is in the Media & Disk Cache preferences category.

  • problem with the SWF version when you use a native extension

    Hello

    I am trying to create an android app where I use a donkey BT (Extension Native Android).  After packaging wih ADT, I get the following message:

    Included native extension "com.myflashlab.air.extensions.bluetooth" includes a

    SWF 25 version that is greater than the root SWF version of this

    application: 17


    Anyone who knows how to change the swf to a swf file version?

    Another article, the CS6-oriented:

    https://chrisgriffith.WordPress.com/2012/07/20/updating-Flash-Professional-CS6-to-support-11-4 /.

    The procedure should work for later versions, simply to find the files to Flash Player 14 or later.

  • support of stadium imported main of the SWF, flv unloading of the

    I have my main.fla that matter external SWF files contain the flv. I have three buttons to navigate the main timeline of images 2-4. Images 2-4 an external swf is loaded into a clip vacuum film through this code. Each loaded swf acts as a menu with a few beautiful vidoes loading in the background.

    The problem I found is that the flvs continue to play as I navigate between menus, which makes the swf/fla main slow down because the pc no longer works hard to deliver all the stuff running in the background. I added this code to frame 1 of my empty clip that is in my library that has the instance name "menu1".

    I get the error "access to cancels definition property mc1.

    I have the source files for my site here if you take a look and see what I'm doing wrong. I removed this code so that I don't get the error and have tried other things to no avial.

    http://www.coldbloodedsovereignty.com/site.zip

    ///////////////////////

    var loader: Loader = new Loader();
    addChild (loader);
    Loader.Load (new URLRequest (MovieClip (this.parent) .src));

    ////////////////////

    ///////////////////////////////////////////

    var src:String = "external.swf";

    Menu1.addEventListener (Event.REMOVED_FROM_STAGE, f);

    function f(e:Event):void {}

    MovieClip (e.target).loader.unloadAndStop ();

    }

    After some trial and error, I have the winning code and the solution. My action script resided inside the physical video I created that was charge my external swf. I decided to try to work around it and put the code on the main timeline of the main SWF and it worked! Thank you for assiting me everyone.

    var myrequest2:URLRequest = new URLRequest ("external.swf")

    var myloader2:Loader = new Loader();
    myloader2. Load (myrequest2);
    stage.addChild (myloader2);
    myloader.unloadAndStop ();

  • Publishing to SWF format changes the size of classes

    Hey,.

    I don't know if someone has encountered this problem, but when I publish my dish, his change of the size of it. In my .cp file, I have 700 x 513 course to adapt to our LMS. When I write, his fate to 700 x 553 according to the HTML file.

    This affects the PlayBar? I have not all borders on the course...

    Thank you

    Kristen

    Hello Kristen,

    CP4 PlayBar will be outside the film in the SWF, if you chose a play bar with a height of 40px (ago smaller). Even when you add the table of contents: the width of the film is increased by 250px.

    Lilybiri

  • change the size of the swf according to the size of html page

    Hi experts
    I want to change my swf size according to the size of the html page in which she opens
    such as if the page size is 1024 x 768 then swf should scale to this size
    If its 700 per 500 also sw should change its size is possible
    I want this for my animation initially FRO m edge on the page

    Basically, I do not know how this has tried various options for last week no chance
    There are 100% option for swf that will scale the size of the swf to 100% of the page, but it does not toedge of page edge

    can anyone help

    Quote:
    Posted by: newsgroup user
    Thanks urami who worked

    Darr_darshan wrote:
    > Hi experts
    > I want to change my swf size according to the size of the html page in which it
    > open
    > such as if the page size is 1024 x 768 then swf should scale to this size
    > If its 700 per 500 also sw should change its size is possible
    > I want this for my animation initially FRO m edge on the page

    First of all, the size of the screen is never the same as the size of the browser to not use if
    you want to keep the proportions when scaling your files and do not distort the
    content. Keep in mind that the browser has its chrome all around, more grand, being on top
    of the screen (navigation), bar State and borders on the left and right sides.
    Second, always resize movie to the top, never down. While the scaling of movie you able to
    Keep your text, not the case when you descale movies especially with small text.
    who become illegible. Then you make movies in (example) 600 x 400 and intensify their
    instead.

    To fill the browser window, go to file - publish setting and on the HTML tab
    change the PIXEL size of PERCENT and set 100% x 100% - publish.
    Open the published html document recently opened in your favorite HTML editor, such as Notepad.
    Dreamweaver and Frontpage, adjust the margins up, down, left and
    right to zero pixel. This will make it fill the window entirely. Flash is
    not give this possibility.

    --
    Best regards

    Urami

    --

    !!!!!!! Merry Christmas!
    &
    Happy new year


    If you want to send me a message - DO NOT LAUGH at MY ADDRESS

  • How can I change the size of my radio buttons

    I am building a survey and option buttons are too small. I wish they were bigger in the region of clickble and visually. I copied the external library to my folder and tried to modify the assets of the radiobutton. I double click on the symbol in the library to enter editing mode, make the changes, and then return to scene 1. Then I drag a component to the stage, but the changes I made are not reflected in the new instance - it looks exactly the same as before.

    Thank you, mgsDolphin

    I tried to change the size of the circle of radio button component to make it easier to choose. To change the size of the circle that is clickable, you import radio button component assets into your library. Help Flash provides a good explanation of this. In my Flash file is stored in:
    Macromedia > Flash > EN > component interface component user FLA > HaloTheme.FLA > Flash > themes > MMDefault > active RB

    You drag active RB out of the external library panel and in the library of your FLA file. Now you can work on them.

    The active key in the elements folder and is called Radio form 1. When you double-click on this you can evolve it and which changes size Visual and clickable circle RB. A problem is that the change is not visible in the FLA, you will need to run the SWF file to see.

  • DataGrid. Cannot change the size of the text to hardcode

    Hi, I have a troouble with the datagrid control. I placed a DataGrid on the fla. I've hardcoded to format text, but when I change the size of the text, as illustrated below it does not change the text size in my datagrid. Thanks in advance for any help.

    var smallText:TextFormat = new TextFormat();

    smallText.size = 70;

    smallText.font = "Verdana";

    smallText.align = TextFormatAlign.CENTER;

    It's the code and THANKS your code works very well. I have some problems with the other stuff, but they seem easy so I'll go and search online.

    See you again - oh and yes I did text a smaller bunch

    public function configureStuff (): void

    {

    backLayer.addChild (new _backgroundClass() as MovieClip);

    _BAR = new _barClass() as MovieClip;

    _Time = new _timerClass() as MovieClip;

    _dataGridContainer = new _datagridClass() as an object;

    dataContainer.addChild (_dataGridContainer as Sprite);

    var smallText:TextFormat = new TextFormat();

    smallText.size = 40;

    smallText.font = "Verdana";

    smallText.align = TextFormatAlign.CENTER;

    _dataGridContainer.dataV.AddColumn ("vertical");

    _dataGridContainer.dataV.SetStyle ("textFormat", daily); Gerry

    _dataGridContainer.dataH.AddColumn ('horizontal');

    _dataGridContainer.dataH.SetStyle ("textFormat", daily); Gerry

  • Question about the size of the swf

    Hi all, I had a small question. I have some old .swf files that I made a long time ago, but I do not have the .flas. I have trouble finding the size (height and width) of these files. I want to use the swfobject to embed, is there a way to find out just how big, or is it possible to use swfobject without declaring a size?

    Thanks for any advice.

    If you double-click the SWF file to open it, it should open in the Flash Player to its actual size.  SO, you should be able to get a screenshot of it and then determine the size of the crop of this screenshot.

  • Change the font size TextFormat to TextField

    Project: Counter click Simple two separate buttons.

    Problem: The size of font click must be changed/increased.

    link to .fla

    • Don't know where to put this code in the script below.
      (threading cause police to initially be it a good size of 20 but returned by default when the issuance of a mouse click)

    var myFormat:TextFormat = new TextFormat();

    myFormat.size = 20;

    fl_TF.setTextFormat (myFormat);

    var myFormat:TextFormat = new TextFormat();

    myFormat.size = 20;

    fl_TF2.setTextFormat (myFormat);

    • Script without myFormat:TextFormat applied.

    var myVar = 0;

    var myVar2 = 0;

    button_1.addEventListener (MouseEvent.CLICK, fl_ClickToPosition);

    button_2.addEventListener (MouseEvent.CLICK, fl_ClickToPosition2);

    var fl_TF:TextField

    var fl_TF2:TextField

    fl_TF = new TextField();

    fl_TF2 = new TextField();

    fl_TF. AutoSize = TextFieldAutoSize.CENTER;

    fl_TF2. AutoSize = TextFieldAutoSize.CENTER;

    fl_TF. TextColor = 0xffffff;

    fl_TF2. TextColor = 0xffffff;

    fl_TF. Background = false;

    fl_TF2. Background = false;

    fl_TF. Border = false;

    fl_TF2. Border = false;

    fl_TF.x = 102;

    fl_TF2.x = 102;

    fl_TF.y = 85;

    fl_TF2.y = 255;

    fl_TF. Text = String (myVar);

    fl_TF2. Text = String (myVar2);

    addChild (fl_TF);

    addChild (fl_TF2);

    function fl_ClickToPosition(event:MouseEvent):void

    {

    myVar ++;

    fl_TF. Text = String (myVar);

    }

    function fl_ClickToPosition2(event:MouseEvent):void

    {

    myVar2 ++;

    fl_TF2. Text = String (myVar2);

    }

    Any help is greatly appreciated

    Thank you

    Try this:

    var myVar=0;var myVar2=0;
    
    button_1.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);button_2.addEventListener(MouseEvent.CLICK, fl_ClickToPosition2);
    
    var defaultFormat:TextFormat = new TextFormat();defaultFormat.font = "Arial";defaultFormat.size = 10;defaultFormat.color = 0xffffff;
    
    var fl_TF:TextField = new TextField();var fl_TF2:TextField = new TextField();
    
    fl_TF.defaultTextFormat = fl_TF2.defaultTextFormat = defaultFormat;
    
    fl_TF.autoSize = TextFieldAutoSize.CENTER;fl_TF2.autoSize = TextFieldAutoSize.CENTER;
    
    fl_TF.x = fl_TF2.x = 102;
    
    fl_TF.y = 85;fl_TF2.y = 255;
    
    fl_TF.text = String(myVar);fl_TF2.text = String(myVar2);
    
    addChild(fl_TF);addChild(fl_TF2);
    
    function fl_ClickToPosition(event:MouseEvent):void{     myVar++;     var format:TextFormat = fl_TF.getTextFormat();     format.size = format.size + 1;     fl_TF.text = String(myVar);     fl_TF.setTextFormat(format);
    
    }
    
    function fl_ClickToPosition2(event:MouseEvent):void{     myVar2++;     var format:TextFormat = fl_TF2.getTextFormat();     format.size = format.size + 1;     fl_TF2.text = String(myVar2);     fl_TF2.setTextFormat(format);
    
    }
    
  • Size of the SWF file and Rollover text problem

    Hello and thanks in advance for any input.

    Two problems...

    1. size of the SWF file

    I did a small enough (at least in my eyes its small) flash site. However, when even it is really not much content, the swf file is already 2.4 mb and I have yet to finish. It loads fine on my internet speed, but im worried general users with slower internet connection. Y at - it something that I should get the size of the file (if all goes well without comprimising quality).

    2 text buttons (video Clips)

    Function rollover (event listener) for MCs containing the text continues to run when the mouse is over the button. That is he is not treating the text as a button box, his processor only as a button, while you ride between a letter and another, the reversal is re - define and restarts.

    The Swf file is here.

    And the FLA is here. * Edit *-how can I get this fla to you guys? This doesn't seem to work when I try to download the file - it gives just a fla.txt file?

    Thank you.

    Zack.

    Click with the right button on the bitmap images in the library, select "Properties".

  • Change the size of the ScrollPane blurs display components

    I am creating a presentation for a touchscreen and I root a ScrollPane component that contains a list of the names of staff as buttons, who cry to the timeline and view a photo. As this ScrollPane is designed to be touched and the thumbbar by a finger draggd - I really need to increase the size of these elements.

    I have imported the SampleTheme.fla and began customizing all elements - change colors and more importantly increase the sizes. I changed all the elements of the "arrow" 50 x 50 pixels and has increased the width of the entire sliding bar and thumbbar elements to 50 px wide to match. However, when playing the movie, all the elements are a bit scrambled since they are not in their correct position in the ScrollBar component, up arrow flickers when the mouse cursor is above him, and the thumbbar passes to the upper position of the scroll bar down half before continue to scroll. The arrow is missing completely. It's all a bit of a mess.

    I noticed there are some items in the folder of the scroll bar that looked like 'the element cards' where every element was laid out in a grid. With resizing all these are now overlapping, which cannot help.

    Does anyone know how to solve this problem?

    Don't know what happened the first time I tried to resize the ScrollPane components - but on a second attempt, this seemed to work very well. I had to individually set the properties on each item changed to "Export in First Frame", but besides that, it was easy in the end. I now bright turquoise 40 x 40 pixels and down arrows and the bar do match!

  • YouTube slow to change the size of the screen

    Just updated to FF42 and noticed a problem with the change of YouTube screen size. More specifically, when I change the screen full-size and vice versa full to view normal change it is significantly more slow then before. I don't see this problem on Chrome or IE9 and he started with the 42 FF update. Must be something the way FF42 manages the resizing of the screen. I look forward to comments from person. Thank you

    About: config change these:

    full-screen - api .transition - duration.enter
    full-screen - api .transition - duration.leave

    200 200-1 - 1

  • Can I change the font size of the subjects email in my Inbox

    I'm changing the font size in the Inbox for a friend with a visual impairment. I am not able to find an option to do it though. Is this possible?

    I think that you need an add-on.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/theme-font-size-changer/

    http://Xenos-email-notes.simplesite.com/416814616

  • How can I change the font size on my tab headings and bookmarks menu? The fonts have inexplicably increased in size and I can't find an option to change them.

    Without any evident input from any of the users on my PC, the police in my topics tab, field toolbar and bookmark URL has increased. I can't find any options to make them smaller. I changed the font for my content page and main menu but I'm stuck with large large fonts out of proportion to the securities tab, toolbar field and bookmarks URLs.

    RanchInNevada

    Try to use this extension.
    https://addons.Mozilla.org/en-us/Firefox/addon/theme-font-size-changer/

Maybe you are looking for