Swf inside fla stage?

Hello,
I've tried searching on the net on how to do this and there are several answers but none worked for me.  I have a swf which I wish to insert inside the flash stage.  This swf is the airtight postcard viewer.  The stage is basically a picture of a table top table with the left side having some objects.  I want to be able to tween the postcard viewer onto the right side of the table so the pictures scatter out on the right 2/3 and not interfere with the objects or "fall off " the table...once the viewer is done looking at the gallery and click on another link, then all the pics move/tween out (onRelease) as a group out of the way and new contents tween in. 
I've tried creating a new object, movie clip, while inside this instance I import onto stage the swf file and back out to scene 1 and place this object onto the stage but it doesnt work.  I can see the swf on the stage but it wont play!
I get ghis error which said "statement must appear within on/onClip Event handler..."
Please help, thank you!

You will need to use loadMovie() to bring that, or any other, .swf into your current movie. To use loadMovie(), you will need to have a target movieClip on the stage. You will be loading the .swf into this target. Look at the online help for more information on this method.

Similar Messages

  • Can No Longer Drag JPG files From Finder Directly Into .fla Stage?

    For the past six months I have been following a manual process to convert JPG files (exported from InDesign) into SWF files for display advertising assets. 
    Using pre-built FLA files as templates (configured with clicktags):
    Open FLA templates (3 separate files for 3 IAB ad sizes)
    Drag JPG from Finder directly into stage of FLA file, aligned to
    Publish to output folder for renaming
    Today, for no apparent reason, I can no longer drag anything into the stage of any FLA file.  Not just the pre-built templates.  Nothing will drag & drop into an FLA stage. 
    What I have tried:
    Restarted Mac
    Reset Flash preferences
    What I know I can still do:
    Drag files from Finder into the Library, and drag into FLA stage from there
    "File > Import to Stage..."
    This works but because of my naming convention it prompts to import them all each time because Flash sees the sequence
    This is not another step I am willing to contend with for my manual workflow
    Me and my creative team need to process hundreds of assets like this each week, so I'm very anxious to discover why functionality that was working, suddenly stopped.
    Running:
    MacBookPro Retina OS X 10.8.5
    Flash CS6 v. 12.0.2.529

    just want to add my annoyance to the pile here. I can't see any logic behind removing the drag and drop function, especially when adding a new folder is now a multi-step process that is far from obvious. to start a new playlist with local folder content you now need to:enter settingsclick into advanced settings (basically all settings now seem to be "advanced"?)manually find and add the foldergo through the adventure of finding the files in your library.
    -- because they may or may not be listed under "local files" - you won't know because Ctrl+F is also removed. so you have to remember/know what the album you added is called and search for that. if you have a mixed bag of file names from various albums, you're basically shafted; there's no way to find them all with a single search.then you can add them to playlisteta: but wait! there's more! if you have more than 15 files? you're **bleep** out of luck, because the search will only display the first 15 hits among your local files, and then show you spotify library tracks.I can't help but feel as though spotify is doing everything they can to stop us using spotify to listen to local files, as bugs that make it more or less impossible persist through multiple versions - and now features that seem to me to be basic functionality are being removed?mega minus points from someone who's been using spotify since 2008.

  • How to effectively remove a loaded SWF from the stage?

    I can not figure out a proper coding to remove a loded SWF from the stage.
    Here is my set up.
    I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"
    In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.
    I specified the variable in the "products" section with the following set up:
    var sourceVar_ProductsPopUps:String;
    function onClickSumix1PopUp(event:MouseEvent):void {
                        sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues.
    However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage.
    At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" .
    However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section.
    I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed.
    Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf"
    var sourceVar_ProductsPopUps_fromXYZ:String;
    function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void {
                        sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    Here is the code set up for the LoaderMax from the "prdctsPopUps" section:
    var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps,
                                                                                                        estimatedBytes:5000,
                                                                                                        container:holderMovieClip,
                                                                                                        onProgress:progressHandler,
                                                                                                        onComplete:completeHandler,
                                                                                                        centerRegistration:true,
                                                                                                        alpha:1,
                                                                                                        scaleMode:"none",
                                                                                                        width:540,
                                                                                                        height:730,
                                                                                                        crop:true,
                                                                                                        autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();
    Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?

    actually, i think you'll need to use something like:
    var loaderProductPopUps:SWFLoader;
    if ((loaderProductPopUps){
    if(loaderProductPopUps.content)){
       loaderProductPopUps.unload();
    loaderProductPopUps= new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page.
                                                                                                         estimatedBytes:5000 ,
                                                                                                         container:holderMov ieClip,// more convinient and easier to manage if to place the LoaderMax into an empty mc (holderMovieClip)
                                                                                                                                                                         // if not will work as well. Then the line container:holderMovieClip, has to be replaced with container:this,
                                                                                                                                                                         // can be any size, can not be scaled as it distorts the content
                                                                                                         onProgress:progress Handler,
                                                                                                         onComplete:complete Handler,
                                                                                                         centerRegistration: true,
                                                                                                         //x:-260, y:-320, //no need for this is if used: centerRegistration:true,
                                                                                                         alpha:1,
                                                                                                         scaleMode:"none",
                                                                                                         //scaleX:0, scaleY:0,
                                                                                                         //vAlign:"top",
                                                                                                         width:540,
                                                                                                         height:730,//scales proportionally but I need to cut off the edges
                                                                                                         crop:true,
                                                                                                         autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();

  • Having stopped audio with a swf inside a sidelet can someone create a swf that will resume the audio

    Ok, rick is going to post the fla of this file and I will
    post the swf. Basically this is all about having a slide that has
    audio running all the way through and enabling the user to roll
    over a sidelet and have the video and audio stop playback.
    At present, the max you can achieve is, to stop video. The
    audio keeps going and of course everything gets out of
    sync. Rick has create a swf that you input into a sidelet (
    after having imported your image or video ) which stops the audio.
    Fantasitc. Unfortunatly he was not successful in creating a swf
    that will resume the audio.
    So there is the mission. To create something that will resume
    the audio, be it a swf inside the sidelet or something else.

    Hi there paul. Am I right in thinking that your code will
    mute the audio. In my situation this would cause problems becasue
    you would roll over the sidelet - the audio would go silent and
    when you rolled off, or resumed the audio, it would have been
    playing so again the video and audio will be out of sync.
    Rick - rather than another swf which would activate the audio
    and video when you roll off the sidelet ( while that is the perfect
    solution ) what about looking at a button the user can press to
    resume things, maybe Im wrong but that sounds a little easier.
    ( however for all those reading this that is not really the
    solution I am looking for, what Im looking for is the above
    solution where you can just roll off and on and so on )

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

  • AS3 SWF inside Director 11.5.9 quirk

    I've previously used AS2 SWFs inside Director 11.5.9, and the SWFs work fine, actionscript works as it should.
    I'm working on a project where I need to use some AS3 SWFs inside Director, and I've come across a limit on the pixel width and height of the SWF. It seems that if either the pixel width or height of the published SWF are greater than 1638, then any actionscript inside the SWF is ignored when the SWF is loaded into director. The SWF still works ok outside of Director.
    For example, any actionscript stop(); commands are ignored and the playback continuously loops through the swf timeline.
    Has anyone come across this before?
    I am almost 100% certain this issue is related to the pixel width / height, as I've made a simple button navigation swf, and published it with different stage sizes. 1638 or less work inside Director, 1639 or more don't work inside Director!

    Made me laugh until I cried...
    Or did I just cry? :(
    Cruel but funny!
    Richard

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

  • Load SWF inside naviteWindow [AIR]

    Hello,
    I have an AIR application where I have to load a SWF from a server.
    At some point the user will click on a button and that button will create a new nativeWindow.
    Inside that nativeWindow we have a stage reference.
    I just want to load a SWF, addChild it to the stage and be happy!  :-P
    But I'm getting this error:
    SecurityError: Error #2070: Security sandbox violation: caller http://somewhere.com/swfapp.swf cannot access Stage owned by app:/Teste.swf.
    at flash.display::Stage/get stageWidth()
    at com.swfapp::MainClass/initApp()
    at flash.display::DisplayObjectContainer/addChild()
    at flash.display::Stage/addChild()
    at NativeWindowSWFLoader/loadSWFURLComplete()[C:\Users\hats\Desktop\teste\NativeWindowSWFLoader.as:93]
    I'm using a normal Loader:
    private function loadSWFFromURL():void
              var context:LoaderContext = new LoaderContext();
              context.applicationDomain = ApplicationDomain.currentDomain;
              context.securityDomain = SecurityDomain.currentDomain;
              context.allowLoadBytesCodeExecution = true;
              context.allowCodeImport = true;
              loaderSWFURL = new Loader();
              loaderSWFURL.contentLoaderInfo.addEventListener(Event.COMPLETE, loadSWFURLComplete);
              loaderSWFURL.load(new URLRequest(urlSWF));
    private function loadSWFURLComplete(e:Event):void
                  //var loaderInfo:LoaderInfo = LoaderInfo(e.target);
                  //var byteArray:ByteArray = loaderInfo.bytes;
                   this.stage.addChild(loaderSWFURL);
    Can someone hep me on this?
    Thank you.

    Hi,
    I've recently come across the same problem. I really need some advice and help.
    I was able to load a swf with htmlLoader in a nativeWindow. The swf is a URL base.
    On Windows works without any problem but on mac it doesn't show anything.
    I ran scout to check if the traces on the swf appear and for my surprise they show on scout but the native window screen in totally white. I really have search everywhere and i can't find an answer.
    Any ideas?
    I'm running with a retina mac (latest model).
    Best regards and thanks.

  • Editing an SWF or FLA file

    I have both the FLA and SWF files for a website template I
    bought. I am trying to edit the file in Flash CS4 using the
    following instructions. But I never see any of this code - all I
    get are errors and the Movie timeline. How do I get to the code to
    modify it? I'm a total novice at Flash but I want to learn.
    Flash CS3/CS4 - additional changes
    There are some differences between Flash MX 2004 and Adobe
    Flash CS3, and therefore you need to make some small changes to the
    FLA file if you want to edit the FLA file
    To do this you need to open the photographer.fla file, go to
    the act layer, and then in the first frame you will see the
    following code:
    stop();
    Stage.scaleMode = "noScale";
    Stage.align = "T";
    _root.pagen=0
    _root.loadVariables("text.html", 0, "POST");
    You should replace it with the code below and then save the
    changes and export it as an SWf file.
    stop();
    Stage.scaleMode = "noScale";
    Stage.align = "T";
    _root.pagen=0
    _root.loadVariables("text.html");

    That's a problem, since the format changes between jpg and swf when converted
    probably won't just go back to their previous state, less the changed section.
    The converter you have, is it a freeware to convert swf to fla; or what does it say
    that it can do? In some cases, a flash video can be copied (perhaps illegally)
    through use of a software such as Ambrosia's SnapZ ProX and a movie of any-
    thing playing on your Mac can be copied. So, a movie could be paused at the
    end where the unwanted content exists, so the copy would not have it recorded.
    Snapz ProX - Ambrosia Software: (not freeware, has 'free trial' version)
    http://www.ambrosiasw.com/utilities/snapzprox/
    Otherwise, there are a few shareware and freeware editors for swf content; to
    some degree or another they either convert content or allow some editing.
    And this may only work as far as the item's creator allowed, if the file is locked.
    ' swf fla freeware editor Mac OS X ' - google search:
    http://www.google.com/search?hl=en&q=swffla+freeware+editor+Mac+OS+X&btnG=GoogleSearch&aq=f&oq=
    I'd tried some basic editing of swf files a few years ago, and was able to only
    convert the string of images into single-frame jpgs and work on each one,
    but could not get them back into an swf. Perhaps graphic converter or other
    software could do something for these; but I am inexperienced in all that.
    Good luck & happy computing!

  • Crop multiple swf or fla in a folder

    Is there a way that I can crop a specific area of multiple swf or fla files that are in folder? With a script or program? I tried many programs but all are for file by file..

    I want to load these swf files inside html file not in a flash file. So i need them to crop them.
    As there is not a "crop tool" in flash.. Can I resize the document and re-locate them with a script? Which is close with what crop do approximately.
    thanks

  • Loading external swf into Fla. not working

    I have created a Flash page that loads an external swf into
    it when you click a button. The swf loads but the actionscript
    assigned to the swf which scrolls images across does not work. When
    i open the swf in a browser window with the direct link to it the
    scroll works but inside the fla file the swf loads but the scroll
    buttons are not working at all. Would this be something in the
    actionscripting in the swf or fla file. Any advice would be greatly
    appreciated, thank you.

    var imageRequest:URLRequest = new URLRequest("my_gallery.swf");
    var imageLoader:Loader = new Loader();
    imageLoader.load(imageRequest);
    addChild(imageLoader);
    is as3 code.  that won't work in your as2 project.
    here's the equivalent in as2:
    this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
    targetMC.loadMovie("my_gallery.swf");

  • NON-Flash User Wants to Edit and "Recompile" an SWF or FLA file...help??

    Hello!! Although I am NOT new to Mac, I have NEVER attempted to edit an SWF file and I'm seeking an EASY way to do so. I think I might be CLOSE but I'm wasting time trying to figure it out so I'm posting here for some help...hopefully!! :-))
    I also apologize because I did NOT know where to post this question so KINDLY direct me if I have posted in the wrong place!
    Soooo, I have an complete, original .swf flash movie. It is a Holiday greeting but the VERY LAST frame has text that is NOT RELEVANT and I wish to change that text.
    It appears that the text I want to change is (I do NOT know the correct term) a "layer" of graphic content for the last frame.
    So, I have done TWO THINGS: I have used the Flash Decompiler app to (1) create an .fla file and (2) DECOMPILED the entire .swf extracting ALL the resources/objects that are used to create the original .swf animation. I have NO IDEA what to do with the .fla file...I know it is used to edit the animation but I do not have software to manipulate the file.
    BUT, in the decompiled files, I HAVE LOCATED the one resource...a TEXT RESOURCE...that I wish to change. This extracted text resource is named "Dynamic text 293.swf", saved as in .swf format.
    Now HERE is where I am STUCK!!...and I THINK this is the direction I would like to go:
    1. Open the Dynamic text 293.swf file in a format that allows me to EDIT THE TEXT I wish to change. HOW DO I DO THAT?? Can I convert it to a jpeg, edit the text, and then BACK to an .swf file?? Can I simply CREATE a JPEG and somehow SAVE IT as an .swf file to REPLACE the Dynamic text 293.swf file? Is there an EASIER/DIFFERENT way to edit the text in this Dynamic text 293.swf file?
    2. After editing the text in the Dynamic text 293.swf file, HOW DO I "RECOMPILE" the folder of alllll the extracted resources from the original .swf animation, NOW with this NEW/EDITED Dynamic text 293.swf file, and RECREATE the full .swf with the changes I made??
    Again, I do NOT have FLASH or MACROMEDIA or any of those apps :-/ I DO have the .fla file conversion AND have isolated the SINGLE extracted resource file (Dynamic text 293.swf) that I want to edit.
    THANK YOU TO EVERYONE FOR YOUR HELP Greatly appreciated!!
    Scott

    That's a problem, since the format changes between jpg and swf when converted
    probably won't just go back to their previous state, less the changed section.
    The converter you have, is it a freeware to convert swf to fla; or what does it say
    that it can do? In some cases, a flash video can be copied (perhaps illegally)
    through use of a software such as Ambrosia's SnapZ ProX and a movie of any-
    thing playing on your Mac can be copied. So, a movie could be paused at the
    end where the unwanted content exists, so the copy would not have it recorded.
    Snapz ProX - Ambrosia Software: (not freeware, has 'free trial' version)
    http://www.ambrosiasw.com/utilities/snapzprox/
    Otherwise, there are a few shareware and freeware editors for swf content; to
    some degree or another they either convert content or allow some editing.
    And this may only work as far as the item's creator allowed, if the file is locked.
    ' swf fla freeware editor Mac OS X ' - google search:
    http://www.google.com/search?hl=en&q=swffla+freeware+editor+Mac+OS+X&btnG=GoogleSearch&aq=f&oq=
    I'd tried some basic editing of swf files a few years ago, and was able to only
    convert the string of images into single-frame jpgs and work on each one,
    but could not get them back into an swf. Perhaps graphic converter or other
    software could do something for these; but I am inexperienced in all that.
    Good luck & happy computing!

  • Exporting to a .swf or .fla from InDesign CS6 - issues with timeline when opened in Flash.

    Hello,
    Looking for help with exporting files for Flash. I have tried both .swf and fla exports from InDesign for the animations I have created. The .swf file will play fine in Flash player but I am having no luck using the .swf or .fla file in Flash. The .fla file will open in Flash but there is no time-line. I can import the .swf file into Flash, but again there is no timeline - all the graphics and elements are visible in the library.
    - Is there a particular way the file(s) have to be exported from InDesign in order for them to appear with a time line in Flash?
    - Are there particular do's and dont's when it comes to creating InDesign files that are going to be used as Flash animation?
    Any thoughts or suggestions would be greatly appreciated.
    Cheers,
    Jamie

    The page turning animations in an exported swf are accomplished via ActionScript—they are not timeline based tween animations. You might be able to decompile the swf and get to the code, but I've never tried it. Google SWF decompiler.
    When you export to fla the animation ActionScript code is not included, so you lose the page turn animations. Each spread is saved as a MovieClip and the clips appear on sequential keyframes of the root timeline. With an fla it's up to you to write any animation code.

  • Loading a SWF inside another SWF question

    Hello friends,
    1. (IMPORTANT) As all we know when putting some Flash SWF
    inside an HTML page, normally it starts playing as soon as its
    first frame is loaded.
    Now in my case I have to load a SWF (let call it Flash A)
    inside another Flash, I used mx.controls.Loader control to do this.
    But this internal loaded SWF (Flash A) doesn't display untill it is
    completely loaded. Although what is interesting is that if it
    contains a sound track I can hear it while it is being loaded.
    I wana know is there any way that we can make this Flash
    display while being still loaded.
    2. Is there anyway to change a Flash playback FPS at runtime?
    Thank you so much for any note and help.
    - M

    damatrixhasu wrote:
    > i want to know how i can load a flash inside another
    flash container
    go to help - search for 'loadmovie'
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • What's best way to load mutilple swfs to the stage?

    I'm trying to load 4 swfs to the stage. Think of an mp3/fm
    tuner/video player.
    I'd like to have the playlist, status bard and menu stay
    seperate swf files.
    Thanks in advance for your help

    you can use the moviecliploader's loadClip() method or use
    the movieclip class'es loadMovie() method.

Maybe you are looking for

  • StackOverflow error while deploying application in to Wblogic 10.3

    Hi, When i deploying application in to weblogic 10.3 getting stackoverflow err, please any one could give sol. Error 500--Internal Server Error java.lang.StackOverflowError      at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390

  • How to uninstall Acrobat X on a Mac which now has Acrobat XI.

    I'm plagued by not being able to get rid of Acrobat 9 and X now that I have Acrobat XI through Adobe CC. My uninstall apps have disappeared or don't work. Is it possible to manually get rid of these unwanted files?

  • How do I copy a video from an sd card to a dvd

    How to I burn a DVD from an sd video card?

  • Problem with opening interactive forms

    Hi All, I configured the online/offline interactive forms web dynpro scenario on NW04s SP 09  and Adobe Reader 7.0.9. When I start my application in the portal, the following error message occurs in Adobe Reader: 'This document contained certain righ

  • Weird Enterprise T5220 issue

    I'm getting strange results when using the last Gigabit ethernet port (port #3) on my brand new Enterprise 5220. Here is the output from ifconfig -a: lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 ne