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

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?

  • How to create the SWF file which was included surrogate pairs.

    I would like to make sure how to create the SWF file which are included surrogate pairs.
    The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
    Ex, I set the '  '(UTF-16 is '20B9F') to 'Unicoderange'.
    However, I cannot add the surrogate pairs.
    The error of outside the scope of Unicode occurred when I compiled the AS file.
    The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
    Then, I read the following pages.
    These pages are written that unicode-range supported surrogate pairs.
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
    http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
    So please let me know how to create the SWF file which are included surrogate pairs.
    Environment
    - Flex3.5a
    - TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
    Thanks,
    Takeshi Ishihara.

    I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..

  • How to Preloading a swf file in one application

    hello friends,
    How to preload a swf file in one application??
    i have two panel in one panel i given login screen and In second panel there is one module i have to show this panel which is visible="false" when user logged in but i have to preload this module in second panel when the user is doing logi. and when user logged in that time i have to show the second panel hiding the first panel.
    so how to do this i m not getting can anyone help me??
    Thanking you,
    Gajanan

    i have created a jar file.Now i want to reuse this
    jar file in another java program.Could anyone please
    guide me with the steps of how to reuse a jar fileput your jar file in class path and import the class which u want to reuse in your code so that u can access all the methods in that class in ur code.

  • How can I associat ".swf" files with flashlite 2.1

    How can I associate ".swf" files with flashlite 2.1? When I
    install flash lite 2.0,it can do ---- click .swf files system can
    autoly use flashlite to play.But now I install flashlite 2.1,it
    lost this ability return as "unknow files formate".
    Now,how can I reassociate ".swf" with flashlite 2.1?
    first: I must use flashlite 2.1.
    second:I must click .swf file directly.
    I know another way to open :open the player and then find the
    .swf,and open it. But ,unfortunately,I can not use this way to
    open.Now I will be looking for another way.

    unfortunately, the 2.1 developer edition you have installed
    has not overwritten the original version integrated into the
    symbian OS by the manufacturer. This means that the only way to
    open the 2.1 files is to open the 2.1 player from your apps menuu,
    and click on the swf file. You will only get direct access if the
    updated player is in a firmware update for you handset.
    Matt
    http://www.outside-media.co.uk/blog

  • When do you think a preloader is necessary?  How large should a swf file be to justify it?

    I'm looking for opinions on preloaders.  When do you use a preloader?  How large must a swf file be before you to put a preloader in it? I am working on a small program that is 80kb in size right now and I'm not sure if I should add a preloader.

    About 500kb, you should use a preloader.
    Below? It depends on your file. If everything is on frame 1 , maybe it's better to use one.
    You can test it  with "Simulate Download" (Control - Test Scene ->  View - Simulate Download)

  • How can I convert .swf  file to exe file?

    thanks

    Hi
    Thank for your choise.
    If showing only white screen, please download the lastest version, v2.03.
    http://www.bullrushsoft.com/download.html
    This problem occurs in Win7 sp1, especially IE has been upgraded to v10.
    Our SWF to EXE Converter must need the FlashPlayer plugin for IE, it 's not a atandalone program.
    So it only 880KB.
    Our online converter is the adobe flash player exe, it can be embed the swf  into, and standalone, so its size > 4MB.
    More details, please visit http://www.bullrushsoft.com/online.html
    Best Regards.
    2013-08-11
    Bullrushsoft Support Team
    From:  mmshahid73
    Date:  2013-08-11  02:52:01
    To:  Sandro_brs
    Cc: 
    Subject:  _How_can_I_convert_.swf fileto_exe_file?
    Re: How can I convert .swf file to exe file?
    created by mmshahid73 in Flash Ad Development - View the full discussion
    Hi, I used bullrushsoft SWF to EXE converter, but the created EXE file showing only white screen, i think i need to add flash player also but i don't know how to add flash player duriing swf to exe conversion.
    Because when i converted swf into exe from my pc, it showing size 880 KB where swf file size is 413 KB, onthe other hand, I convert the same online which is playing correctly but the converted file size is 4.57 MB.
    Am i right?
    Kindly help
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5583680#5583680
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5583680#5583680
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5583680#5583680. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Flash Ad Development by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do I script SWF files instead of JPG files in XML loader?

    I have a SWF loader (greensock.com platform) and a thumbnail image scroll underneath it made of small image buttons. Each image button has a link which loads a new SWF file into the SWF loader above. Here is the code for each button which loads the bigger SWF file into the loader above:
    Button3.addEventListener(MouseEvent.CLICK, Button3_PlayPopUp);
    function Button3_PlayPopUp(event:MouseEvent): void {
        //setting the sourceVar
        sourceVar="3.swf";
        //making the SWFLoader load
        //as setting the soureVar after the SWFLoader is created won't do anything unlesss
        //I also re-create the SWFLoader with the new sourceVar when the button is clicked
        loader_howToLoader2.url = sourceVar;
        loader_howToLoader2.load(true);
    Then I decided to load all button via XML loader. I followed the tutorial on XML loaders which deals with loading jpg images and assigning URL links to them in the following manner first in XML file:
    <image src="appThmb_imgs/appThmb_imgs117x175/A-illuminatorUpLit_117x175.jpg" title="UpDownGlowingVase" url="http://www.888acolyte.com"/>
    and then in AS3 like this:
    var xmlLoader:URLLoader = new URLLoader();
    thisOne.link = imageList[item].attribute("url");
    function clickScrollerItem(e:MouseEvent):void {
    //trace("clicked item " + e.currentTarget.itemNum + " - visit url: " + e.currentTarget.link);
    var urlRequest:URLRequest = new URLRequest(e.currentTarget.link);
    try {
    navigateToURL(urlRequest);
    catch (e:Error) {
    // handle error here
    trace(e);
    My question is: How do I apply the code to each individual small thumbnail button to load a bigger image into the SWF loader above? Do I have to add something to XML file or this way it will never work with jpg images? Can url in XML file set the source var (//setting the sourceVar), since they are all individual and then somehow apply the making SWL loader to load part (//making the SWFLoader load) as a standard somewhere in the AS3 code?

    O.K. Here is my COMPLETE function.
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    function LoadXML(e:Event):void {
        trace("xml load complete");
        xmlData = new XML(e.target.data);
        //trace(xmlData.image); //we'll see each image xml element listed in the output panel with this xmlList
        buildScroller(xmlData.image); //rather than trace the xmlList, we send it to our buildScroller function
    //build scroller from xml
    function buildScroller(imageList:XMLList):void{
        trace("build Scroller");
        //var scroller_x:int=0;
        for (var item:uint = 0; item<imageList.length();item++) {
            var thisOne:MovieClip = new MovieClip();
            //thisOne.img_width=imageList[item].attribute("width");
            //outline
            var blackBox:Sprite = new Sprite();
            blackBox.graphics.beginFill(0xFFFFFF);
            blackBox.graphics.drawRect(-1, -1, 86, 128);//-1,-1 places rectangle 1px left and up.86, 128 draws rectangle 1px wider on all sides of placed image dimenstions of 84x126
            thisOne.addChild(blackBox);
            //scroller_x += thisOne.img_width + 20;
            //var currentX = currentImageWidth+spaceBetween;//modified line to adjust variable thumb widths
            thisOne.x = (84 + padding) *item;//84 is the width of the loaded images and 15 (which was before paddign var) is the padding
            //thisOne.x = scroller_x;//modified line to adjust variable thumb widths
            thisOne.itemNum = item;
            thisOne.title = imageList[item].attribute("title");
            thisOne.link = imageList[item].attribute("url");
            thisOne.src = imageList[item].attribute("src");
            thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
            //trace(thisOne.itemNum, thisOne.title, thisOne.link, thisOne.src);
            //Loading and Adding the Images
            //image container
            var thisThumb:MovieClip = new MovieClip();
            //add image
            var ldr:Loader = new Loader();
            //var url:String = imageList[item].attribute("src");
            var urlReq:URLRequest = new URLRequest(thisOne.src);
            trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
            ldr.load(urlReq);
            //assign event listeners for Loader
            ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);//tells us when the loading is complete
            ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);//tells us if there are any typo errors when the loading is complete
            thisThumb.addChild(ldr);
            thisOne.addChild(thisThumb);
            //create listeners for this thumb
            thisOne.buttonMode = true;//makes boxes act as buttons
            thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem);//makes boxes act as buttons
            thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem);//traces the title when the mouse is over the bounding box in the Output Panel
            thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem);//traces the title when the mouse is out the bounding box in the Output Panel
            //add item
            scroller.addChild(thisOne);
    But I am not sure if I expressed myself clearly. All what you have indicated happens. Images are being loaded and url strings are working. I can not figure out how to tweek the code so instead of url specified in xml file I can load swf image into the SWF loader on the same screen?

  • How to call a .swf file in another .swf file?

    Hi all,
    I am new to flash and ActionScript3.0. Presently, I am using
    flash CS3 and the code I need is in ActionScript 3.0.
    Suppose, I have a .swf file(viz., file1.swf). Now, i am
    developing one more .swf file(viz., file2.swf), in which I need
    to execute file1.swf when a CLICK event is listened on button
    present in second file(i.e., file2.swf).
    In how many ways, we can get this.
    And, please I need code very urgently.
    Help me.

    You use the Loader class to load external content like swf's
    or images. If
    you click the main entry for Loader Class in the AS3 help,
    there's an
    example of loading an external swf.
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to tell a swf file in web was made by flash or flex?

    the swf file in web, how to tell it was made by Flash or
    Flex? accurately!

    Im not sure, but I would think that right now the main way to
    tell the difference would be to find out if it requires Flash
    Player 8.5 or not. Currently, Flash swfs only go to 8.0. Another
    way is to look at the source of the HTML file. I notice that Flex
    puts an incredible amount of code into the HTML file.
    Thia

  • How to load External swf file in AIR

    I try this code its working in computer but when I publish this file in .apk or .ipa , my external swf file is not opening
    (I include my external file as well)
    places_btn.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
    function newvid(event:MouseEvent) {
         trace("you clicked me");
         var loadit = new Loader();
         addChild(loadit);
         loadit.load(new URLRequest("scene02.swf"));

    thx boss its working great
    I have 3 scenes; load scene code is working great
    1. How can I unload the scene?
    2. Can I unload all scenes or one by one?
    can I unload some think like this
    Load scene 2 , unload scene 1 and scene 3
    Load scene 3, unload other all scene
    i try this
    load2.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
    function newvid(event:MouseEvent) {
              trace("you clicked me");
              var loadit = new Loader();
              addChild(loadit);
        var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
        loadit.load(new URLRequest("scene02.swf"), _lc);
              loadit.unload();
    load3.addEventListener(MouseEvent.MOUSE_DOWN, newvid1);
    function newvid1(event:MouseEvent) {
              trace("you clicked me");
              var loadit = new Loader();
              addChild(loadit);
        var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
        loadit.load(new URLRequest("scene03.swf"), _lc);
              loadit.unload("scene01.swf scene02.swf");

  • 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.

  • Embed .swf file or how to hide your .swf file on the web for protection

    Hi, is it possible to hide your .swf file so that it can not be taken.  Is there a way to protect it?  if someone please post the chain of commands on how to do this.

    http://www.google.co.in/#hl=en&source=hp&q=swf+encryption+software&oq=swf+encryption&aq=2v &aqi=g2g-v8&aql=&gs_sm=e&gs_upl=848l6367l0l9310l22l20l3l2l2l0l324l3334l1.4.7.3l15&bav=on.2 ,or.r_gc.r_pw.&fp=bdf9e41683b1cd0a&biw=1024&bih=609

  • How to make transparent SWF files ???

    Hi all, plz i have 2 questions ,,, First, how can i remove
    the title menu from the swf file so when i lanuch it (( locally not
    in a browser )) the upper bar which has the min,max,close buttons
    hidden,,, is that possible ??????
    Second, Is it possible to export a transperent flash movie
    ??? for example i want to make a flash movie in the shape of a
    circle ,, so when any one open the swf file just the circle appears
    without background or frame for the window,, Can i do this with
    flash ???
    Thanx alot...

    On Sat, 9 Feb 2008 08:17:13 +0000 (UTC), "Ghost Of Death"
    <[email protected]> wrote:
    >Hi all, plz i have 2 questions ,,, First, how can i
    remove the title menu from
    >the swf file
    I don't remember exactly, but you need to find a doc about
    fscommand
    paramers. There is such doc somewhere at Macromedia / Adobe
    websites.
    I saw it some time ago. The is a parameter like "mainmenu" or
    so,
    which can be "true" or "false". As far as I remember there
    was such
    thing.
    > Second, Is it possible to export a transperent flash
    movie ???
    Flash movie itself is "transparent" uless an explicit
    background shape
    is used. It is another question how to make Flash Player box
    to be
    transparent. Web browsers support so called windowless mode,
    but Flash
    Projector (SAFlashPlayer.exe) - does not.
    Personally I use my own projector, written in Delphi, which
    uses
    special third-party component, supporting windowless mode.
    There are
    other tools, supporting it. Try to search Google for
    "TFlashPlayerControl".

  • How can we compress SWF files and optimize tool?

    I need to reduce SWF file size up to 70%, quality will not be sink.
    Is this possible in adobe software? please help...

    Iam working on banner production, is their any better software/tools for SWF optimization/compression?
    I got one  SWF and FLA from other creative team,  SWF size is below 50 KB look's better quality, I have changed some small amends, when i was exporting it from FLA... the SWF file weight goes to 90KB, i compressed image quality then, expoted again... the file size goes to 70KB. how can i do  50KB in better quality.
    Thank you for your help!

Maybe you are looking for

  • Vertical text in PDF- XSL-FO

    Hi Guys, We are trying to display a vertical text is a column in a PDF file. ( 90 o rotation of horizontal test). Is it possible in XSL-FO transformation? Could you please throw some light on this? (As we have lot of columns we are not able to displa

  • Using .smil files for dynamic streaming in playlists

    I have multiple questions, but I feel I would make more sense to explain my intentions. I have a video player with a playlist written with AS3, along with an .XML settings file to edit the playlist.  I can successfully play rtmp:/ streams from my FMS

  • Does the last flash player version works correctly for Adobe portofolio file?

    I have a problem with some Adobe Acrobat portofolio files, they were created some months ago with Acrobat X pro version but right now can not be opened. The first message that appears is: "To view the Flash technology content in this PDF file, please

  • Too many computers not enough answers

    Hi, I have a MacBook Pro at home and I use a Dell computer running Windows XP Pro. I have a 6th generation iPod classic. I usually listen to at work. Last Friday I took the iPod home and my son accidently turned it off while I was watching a movie. L

  • Transfer data from PC to Mac.

    I have given my G5 to my daughter who has a Windows PC. Is there any way to transfer data i.e. photos, documents etc. from the PC to the Mac please?