loadMovie (swf), problem of scale...

I have a movieClip to load external images or files SWF that is works very well - unless the loaded SWF has an object that lies or moves out of the scene (it's original stage - that of the loaded SWF was published with). The movieClip resizes the SWF to keep the object in the view. For example, if a line of text starts behind the scenes left and is interpolated at right backstage, the movieClip will zoom in, then, to keep him posted.
While this could someday be a nice effect to play with, this is not what I wanted.
I tried to use this in the loaded SWF file:
Stage.scaleMode = "noScale";
and this, in loading the film:
myMovieClip._lockRoot = true;
Thinking this would prevent the loaded SWF to scale (and to ensure loading film don't think thought * it * to stop the scaling...), but it did not work. I tried to rework the loaded SWF so that nothing actually left the scene, but the effect only works with text or bitmap images (they bow down) and the animation gets a little nervous. I would avoid turning it into an animated GIF or a movie, since GIFs animate and I worry about the size of the file (and I wish I could allow for SWF files may do things than those who simply cannot do).
I also want to keep a movieClip, because I want to be able to take still pictures.
I'm sure that there is a simple answer to this - maybe I've just screwed up with my placement of the code above (in the file SWF loaded, it is the first line of actionscript code to run; Scene 1, frame 1 - in the movieClip movie, it's the straight after the movieClip is created with createEmptyMovieClip and right before the SWF file is passed).

So, is it possible to prevent a resizing of a loaded SWF movieClip that contains elements behind the scenes?

hide your scene

Tags: Adobe Animate

Similar Questions

  • Dreamweaver SWF problem

    I am a relatively new user of Flash/Dreamweaver and can't seem to understand this one.

    I checked my root file and * think * all of them point to the correct files, but for some reason any my .swf will not load in any browser; at the local level.

    The .swf is not on its own (ie: to http://www.5enses.eu/Index_.swf), which is strange. I heard it could be a path problem, but I have no idea how to solve this problem.

    The site is:

    http://www.5enses.EU/Index_.html

    Code is:

    _____________________________

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 / / IN" "http://www.w3.org/TR/html4/strict.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 ">"

    < title > 5 | FASHION/ART | PERFUME | MUSIC | A KITCHEN | SEX < / title >

    < style type = "text/css" >

    HTML, body {height: 100%; padding: 0; margin: 0 ;}}

    table {text-align: center; height: 100%; width: 100%; border: 0 ;}}

    < / style >

    < / head >

    < body >

    < table >

    < b >

    < td >

    < object id = 'FlashID' classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "1200" height = "800" > "

    < param name = "movie" value = "Index_.swf" / >

    < param name = "quality" value = "high" / >

    < param name = "wmode" value = "opaque" / >

    < param name = "swfversion' value ="15.0.0.0"/ >

    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->

    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "

    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->

    <!-[if! IE] >->

    < object type = "application/x-shockwave-flash" data = "Index_.swf" width = "1200" height = "800" >

    <!-<! [endif]-->

    < param name = "quality" value = "high" / >

    < param name = "wmode" value = "opaque" / >

    < param name = "swfversion' value ="15.0.0.0"/ >

    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "

    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->

    < div >

    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >

    "< p > < a href ="http://www.adobe.com/go/getflashplayer_fr"> < img src ="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"alt = 'Get Adobe Flash player' width = '112' height ="33"/ > < /a > < /p >"

    < / div >

    <!-[if! IE] >->

    < / object >

    <!-<! [endif]-->

    < / object >

    < script type = "text/javascript" >

    swfobject.registerObject ("FlashID");

    < /script >

    < table >

    < /tr >

    < /table >

    < / body >

    < / html >

    _____________________________

    My expressInstall.swf and swfobject_modified.js are downloaded in a Scripts folder and cowards in the root directory.

    Thanks for your help!

    Publication of Flash settings when you export the SWF file:

    Under settings wrapper HTML as shown above:

    • Size should be '%' to 100 width and height 100
    • What will make the entire area of the browser a wrapper for holding your flash SWF file
    • Now, the important part: scale & alignment: I opened the dropdown in the screenshot:
      • Default (show all) fit the SWF movie to screen, keeping the proportions - but will leave a blank on both sides, if the proportions of your screen and the SWF format doesn't match - scales when the browser resizes
      • Borderless fit the film to the screen, but will bleed borders with the color of the scene you define in Flash and can crop the contents sometimes - scales when the browser resizes
      • Exact adjustment - content shows full to occupy full width & height of the screen and does not report l / h - can cause the stretching - scales when the browser resizes
      • No scale - is not resize the movie in full screen - container will be 100% width & height, but SWF shows size of exact degree - don't scale when the browser is resized

    To learn more about HTML Wrapper Flash publishing settings, look here: http://help.adobe.com/en_US/flash/cs/using/WSd60f23110762d6b883b18f10cb1fe1af6-7bd1a.html# WSd60f23110762d6b883b18f10cb1fe1af6-7bcca

    -ST

  • Cross-domain SWF problem

    Goal
    My main SWF (let's call it "TheShell.SWF") needs to load another SWF (call it a "TheContent.SWF") using loadMovie cross-domain.

    Problem
    I added the following line to the first picture of TheContent.SWF:
    System.security.allowDomain ("' http://www.example_shell_host.com ' ");

    However, when I opened "TheShell.SWF" on another area if fails to pull in the SWF file.

    I tried specifying the exact path ("' http://www.example_shell_host.com/creative ' "), but this does not work either. Nor is the use of the "*" credits.

    What I am doing wrong? Do I need to add any code to 'TheShell.SWF '?

    See you soon

    Just a quick update.

    After exhausting all other options, I moved the files of two new servers and they worked very well.

    Thank you

  • Child .swf problem

    Hello, I was hoping that someone may be able to help me with a problem I've been and unloading external .swfs, ill try to explain this better than I can.

    I have two .swf files, that are connected to an external .as file. One is the main, the other is the child being loaded in the main .swf file. The user clicks a button in the .swf main trigger of a function contained in the .as file that load child .swf.

    Now, I have a Boolean variable in the child .swf, which gets the value true to a certain part of the movie, this variable is sent in the .as file then taken the start of a function using ENTER_FRAME to unload the movie (unloadAndStop ()). The problem, I think I'm having is the sprite container (which is created in the .as file), is not recognized as a child, so will not unload. However if I create a CLICK MouseEvent and point it at the sprite unloadAndStop() function works well, but I would like to avoid that if possible. That's what I have in the .as file:

    (endFind is the Boolean value is set in the child .swf and the loadSWF() is called by a button in the main .swf)

    import flash.events.Event;

    var url: String = "objectSearch.swf";
    var _Req:URLRequest = new URLRequest (url);
    var _swfLoader:Loader = new Loader();
    var _swfContent:Sprite = new Sprite();
    var endFind:Boolean;

    function loadSWF (): void {}

    _swfLoader.load (_Req);
    _swfContent.addChild (_swfLoader);
    addChild (_swfContent);
    setupListeners (_swfLoader.contentLoaderInfo);
    }

    function setupListeners(dispatcher:IEventDispatcher):void {}
    dispatcher.addEventListener (Event.COMPLETE, addSWF);
    }
    function addSWF(event:Event):void {}
    event.target.removeEventListener (Event.COMPLETE, addSWF);
    _swfContent = event.target.content;
    }

    function unloadSWF (): void {}
    _swfLoader.unloadAndStop ();
    trace ("unloadSWF:", _swfLoader.unloadAndStop ());

    //!!!!!! removeChild throws ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.//!

    removeChild (_swfContent);
    _swfContent = null;
    }

    Adding a mouseEvent to sprite seems to work ok
    _swfContent.addEventListener (MouseEvent.Click, endCheck);
    function endCheck(e:MouseEvent) {}
    trace ("Click");
    unloadSWF();
    }
    This is not because of the method unloadAndStop().

    addEventListener (Event.ENTER_FRAME, endCheck);
    / * function endCheck(e:Event) {}
    {if(endFind==true)}
    unloadSWF();
    }
    }*/

    If you need more information please let me know. I really appreciate everybodys help and comments.

    A better way to deal with children is to listen only for them to say something and then take action.  What that means, it's basically the child to have just send an event and have the parent look for him so that he could take action.  So for this you need to assign a listener to the object after it has loaded...

    function addSWF(event:Event):void {}

    event.target.removeEventListener (Event.COMPLETE, addSWF);

    _swfContent = event.target.content;

    MovieClip (_swfContent) .addEventListener ("unloadMe", unloadSWF)

    }

    and set the unloading feature to be the event handler...

    function unloadSWF(evt:Event):void {}

    .. .etc

    }

    and in the child swf just got it dispatches the event your listener expects when it must be unloaded.

    dispatchEvent (new Event ("unloadMe"));

  • Playback SWF problem

    I have a problem playing a swf file, I created on the computer to others. It plays fine on my computer, and we are both using the latest version of IE/Firefox with the latest flash players.

    I went to insert - > media-> swf and select my swf on the local disk to insert the swf file, this is the code:

    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "1024" height = "768" id = 'FlashID' title = "always" > "

    < param name = "movie" value = "always.swf" >

    < param name = "quality" value = "high" >

    < param name = "wmode" value = "opaque" >

    < param name = "swfversion' value ="11.0.0.0">

    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->

    < param name = "expressinstall" value = "Scripts/expressInstall.swf" >

    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->

    <!-[if! IE] >->

    < object type = "application/x-shockwave-flash" data = "always.swf" width = "1024" height = "768" > "

    <!-<! [endif]-->

    < param name = "quality" value = "high" >

    < param name = "wmode" value = "opaque" >

    < param name = "swfversion' value ="11.0.0.0">

    < param name = "expressinstall" value = "Scripts/expressInstall.swf" >

    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->

    < div >

    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >

    " < p > < a href =" http://www.Adobe.com/go/getflashplayer_fr "> < img src = ' http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif "alt = 'Get Adobe Flash player' width = '112' height ="33"/ > < /a > < /p > "

    < / div >

    <!-[if! IE] >->

    < / object >

    <!-<! [endif]-->

    < / object >

    I downloaded successfully already of the swf on my site.

    Anyone know what causes this problem? Thank you.

    Post a link to the actual page.

    Are there what other related Flash files? for example, a .flv file?

    Have you also download the swfobject.js (javascript file) and properly link to him in the?

    Adninjastrator

  • Strange problem of Scale image

    Hello

    I have loaded an image using MovieClipLoader and uses the following code to the scale to fit a picture frame:

    var mcLoader:MovieClipLoader = new MovieClipLoader();

    ..

    ..  Add headphones...

    mcLoader.loadClip (filePath, frame.imageHolder);

    function loadInitEventHandler(target_mc:MovieClip):Void

    {

    var scale: Number = Math.min (frameWidth/target_mc._width * 100, frameHeight/target_mc._height * 100);

    target_mc._width = scale;

    target_mc._height = scale;

    }

    The code works for most of the images except the images with a resolution 2880 x 2880.  He applied properly - part of the image to the right is not displayed. Please see the pictures below.  The lower image adjusted correctly, but the upper part, there is no.

    Gallery image problem - 28-11-2011 0-14-46.png

    The calculation looks OK and I don't know what the problem is.

    Any help is appreciated!

    Thanks in advance!

    2880 x 2880 is the upper limit.  anything beyond is problematic.

  • Problem of scale free transform with border

    If "show transform controls" is checked, and I have a selected layer, a white border is on the edges of the layer with small boxes in angles or circles. Hovering over one of these boxes changes the cursor in the "arrow of scale." Traditionally, by clicking on the border with this arrow and holding down the mouse button allows you to reduce the layer by dragging the mouse.

    Photoshop CS5 (and), by clicking on the border and keep the mouse button has no effect. By dragging the mouse returns the pointer to the "selection arrow" and drag the image on the screen instead of resizing. This is because when you click on the border, she develops suddenly in a much larger area. Only by clicking once and then letting go can you move your cursor to the newly defined edge and then move towards the bottom of the image. It's incredibly frustrating and adds an unnecessary step in the process. Because I instinctively seeks to seize the border as it is, I usually end up dragging the image by mistake.

    What's up with that?

    elvisgreenchina wrote:

    still no joy

    I guess this could be a problem with the text settings somehow...  Have you tried using the menu entry reset characters in the CHARACTER Panel?

    Try the same concept with the PARAGRAPH Panel.

    -Christmas

  • External loading swf problem

    Hello

    I think it's my last stop to find the answer to my problem

    I made a simple project with flash CS5 that contain

    main SWF that load an external swf into movie empty

    I was able to load external swf everything smoothly but

    Problem

    the external swf file has drag-and - déposer only work perfect, but when it is called stops working

    external text in swf input do not work as when he called

    I scoured the net for a week and that you can't find the answer

    Pllllllllllllllllllllllease help

    Thanks in advance

    The loaded file using _root references?  If so, you must set the _lockroot true inside this file property so that it does not seek beyond itself to the _root of the file that it loads.  If you are not familiar with it, it is documented in the help files for Flash with examples.

  • Display swf problem

    Hey, I have several sovereign wealth funds and I can nest them in html without problem.  However, a swf is causing me problems.  This swf contains an animation on the stage as a preloader.  The rest of the SWF is then completely managed by an external as3 class.  The as3 class to load an xml file and prepare the images.  After its complete, removing the charger removeChild (preloader); (the original animation that displayed).  If I run the swf file on my computer, everything works great.  As soon as I stir him, everything that happens is animation preloader plays constantly, and he never developed to display the images.  Is there something I need to do when I embed this swf in html format so that it can work properly?

    see you soon

    If the swf file is in a different folder as the html file, then you probably are not the xml file or other files correctly.  The swf file must load it as if it were in the same folder as the html page that incorporates files target.

  • resizing SWF problem

    I use Captivate 5 and in the past, when I published and clicked on the .html file, the swf would open in the browser IE centered and with the "worthy of the browser" size It also automatically adjusted to the size when I open the .swf file, although sometimes it was not centered.

    But now when I click the .html file, the swf would open with a fixed size, which in my case is too big for the screen and wouldn't resize even if I drag the browser. If I click directly on the .swf file, it's worse - it has a fixed size and the game disappears from the bar downstairs. I don't know if there are settings I should change, it has to do with the size of the file objects or used widgets, or whether versions of browser or settings (I recently downloaded IE 8). The problem exists for the files published earlier and used to be very good.

    Can someone tell me what is the problem? I hope to return the automatic resizing.

    Another issue is when I copy the .swf files as well to another folder, the .html .html does not work anymore. Is this normal? How do I then upload them to a Web site for html work?

    Thank you!! Any help is very appreciated.

    Hello

    Also thought to mention the CP5 correction has been released a few months back. It's a few important fixes. So you can install it if you have not already done. Details of the patch are available here-

    http://www.Adobe.com/support/Captivate/downloads.html

    To find out if you have the last update patch already installed, go to the menu "help > about Adobe Captivate" and look for the build number. It should read 5.0.1.624 if the last update is installed on your system.

    It is for your information.

    Thank you
    Mukul

  • Flash CS5 Catalsyst publish to SWF problem

    I imported a SWF (a simple animated background) in my Flash Catalyst project. When you run the project, the swf file appear without problem.

    After the publication of the draft, CF creates two files for me. I tried to launch the Main.html file in the local execution folder and the project works very well. When I tried to open the file in the folder web deployment Main.html however, the project runs, but the swf file, I imported appears at all.

    Is this normal? I have not yet tried downloading my project in a server because I wanted to make sure that it worked very well when it runs locally. Someone who can give me some answers will be very appreciated. Thank you all.

    The version of web deployment should only work correctly when posted to and loaded from a server.

    The run-local version should only run correctly from the hard drive on your local computer.

    Here's a longer explanation of the difference between the two.

  • load swf AS2 AS3 swf problem

    I have a flash with AS3 and inside the swf I load in an AS2 swf file.

    to load a swf works fine, but the problem is when I load it in that I want to go

    a specific part of it, for example, I want to go to frame 3 in the loaded swf file.

    I need to check this in the AS3 swf, does anyone know if this is possible?

    Thanks in advance

    Yes, it is possible.  Use the localconnection class to communicate between the two rulers.

  • Problem of scale a 3-d object

    I have a text with a fill and stroke.

    I added 3D effect. Has added a second fire. Used a time frame.

    After, I did the 50% opaque fill.

    I then realized it was too small. When I scale upward, the 3D breaks just apart, pieces disappear and the prospect goes haywire.

    I tried it with features of the scale and the effects on and outside.

    Any ideas?

    Well, I don't see what you see maybe a cache of police problem. It happens here?

  • Need the sound to play on imported into the second swf with loadMovie swf

    I have a movie of parent with a couple of movieclips placeholder in this regard. I use the loadMovie to load 2 separate swf on the spaces reserved for execution:

    a swf contains the sound, which I initialize it using the following:

    sounds = new Object();
    sounds.reelSpin1L = new Sound();
    sounds.reelSpin1L.attachSound ("reelSpin1L.wav");

    now, I also wrote a function inside this same swf, which I want to call from a second swf file, which reads:
    function playReelSpin() {}
    sounds.reelSpin1L.start (0, 99);
    trace ("play music ReelSpin!");
    }
    trace ("the sound played");


    Now when I call the function from the other swf when running, I see the trace on the output window message, but I don't hear the sound!

    The weird part is, when I run the first swf that I've initialized the sound and call the function, it works very well.

    In conclusion, so I need to know why the sound won't play on a swf that was loaded into another swf when running.

    I appreciate any help you can provide.

    -Pat Ferguson

    Wow! It worked! I can't believe it's that simple! I was going out of my mind for 2 days trying to figure this out too! Thank you! Thank you! Thank you!

    -Pat Ferguson

  • Passing parameters to loadMovie() SWF using

    I'm a loading film

    loadMovie ("myPopUp.swf", 1);

    How can I pass parameters to the SWF? And how to retrieve the parameters in the second film (myPopUp.swf)?

    Any help is greatly appreciated,

    Here is the link.

Maybe you are looking for

  • recovery disc pavilion g6

    Nice day! I need to buy or download recovery diskfor HP laptop Pavilion G6 - 1095ST (LP277EA #AB8). Burned the hard drive and now I can't restore the system, drivers and the utilitiesonthe new disk. Help please!

  • Need help with my (DVD, CD-ROM) Drive

    I have a laptop HP with Windows Vista, when I put a disc in the drive nothing happens, when I eject the disc, it turns so there is definitely power here, can someone help me what is wrong, please...

  • 0x8050800c error code, stop Windows scans, how do you overcome this?

    0x8050800c error code, how can it be overcome so that the scans can be run?

  • __Windows 7 installation error 1406 office _

    I have updated from Vista to Windows 7. I had office home and Student 2007 and it was running on Vista. Now with the upgrade to Windows 7, I had to install it again. I have admin rights, I use Spybot which I stopped him, and the installation still do

  • Security policy to remove it from blackBerry Smartphones

    How can I delete a strategy of security remains of my blackberry - at some point, that I was connected to a BES. I made more part of the Organization, but I can not remove this strategy, I tried to charge the device, upgrading software, etc..