Importing a SWF file into AS3 FLA

Hi,
I've imported some SWF files I've built, under base class
flash.display.MovieClip, into an AS3 code-only (Flash 9 on
Macintosh) file. The visuals work fine when I call
importedMovieClip.play(), but there's no sound.
My current method is pretty simple:
- Import the SWF into the library with classname
ImportedMovieClip and base class of Movie Clip.
- var importedMovieClip:ImportedMovieClip = new
ImportedMovieClip();
- theBackGroundSpite.addChildAt(importedMovieClip,
theNightSky.numChildren);
- importedMovieClip.play();
I've done a workaround by building and importing separate
soundtracks but since there's a fair bit of animated lip-synching I
am not keen on having to do this twice and would prefer my imported
SWF to bring its soundtrack with it.
Obviously I am missing something ... How do I access the
soundtrack within an imported SWF? Do I setup another SoundChannel
using the imported MovieClip, or is there a MovieClip property I
need to switch on, or is there some other method?
Cheers
Dougal

You do not want to import an swf file.  You should either load it in dynamically or copy and paste its timeline into a movieclip symbol in your other file.

Similar Messages

  • Importing another swf file into the flash-homepage (swf is a gallery)

    hi there!
    have a problem that i cant resolve myself ..
    i downloaded a free of use gallery from juliuswebdesign.com (this gallery) and i'm trying to load it in my flash site ..
    now, the gallery works if i open it directly (i open the swf file)
    BUT
    when i try to load the external swf file into my site
    loadMovie("image_gallery.swf", box);
    then the movie loads .. the gallery is displayed the message "loading xml file" displays and then when the xml is loaded the message "loading image 1/7" displays and only the first image loads.
    once the first image is loaded it will not be displayed (it remains outside of my swf file .. i can see it when i resize the window) and no other images will be loaded.
    if i open the gallery.sfw file again everything works fine .. the problem is only if i try to load the gallery.swf in another swf ..
    something must be wrong ..
    i tryed to opern the gallery.fla file and copt everything directly in my site and the problem remains the same .. only 1 image loaded and not displayed in the gallery ..
    i'ts like something in my site "blocks" the gallery beeing loaded..
    any suggestions?

    to the gallery's fla add the following and retest:
    this._lockroot = true;

  • How do I import a .swf file into Final Cut Pro 6?

    A client has given me a .swf file for use in their commercial. What is the best way to import this file to play full screen full motion?

    The Final Cut Pro manual is very misleading. It says:
    You can import any files that are recognized by QuickTime, including:
    * Video files: QuickTime Movie, AVI, and Macromedia Flash (video only—you won’t be able to play any audio portions).
    But Apple have since removed Flash support from QuickTime so these files can no longer be opened. The best thing to do is ask the client to deliver the file to you as a QuickTime movie.

  • How to convert a .swf file into an .fla file?

    I am very new to this and need some help. I have been given a couple .swf files and I need to make edits on them. Is it possible to open these or will I need to completely remake them? I have tried in Flash Professional: File> Import> Import to stage. There is no animation or timing. It's just flat.. I also tried from the actual .swf file: File> Create Projector but it was grey'd out and wouldn't let me choose it. Am I missing something?
    Thanks!!

    That's what I was afraid of! Thanks for the answer

  • Import .swf files into keynote slide

    Hi,
    I have a short flash file that I would like to embed into my keynote presentation. Is there any way to do this? Should I convert the .swf file first? And which program should I use? Or is there a simple way to import this .swf file into Keynote?
    I hope someone can help me!
    Regards,
    Ellen van der Zwan(The Netherlands)

    OIh by the way, the .swf is a scripted flash file. I have tried multiple converters, but no success yet...

  • Can't import swf file into QuarkXpress 8.12

    Hello everyone,
    I'm using QuarkXpress v 8.12 | Apple iMac Intel Core 2  Duo, 64 bit |  Flash Player 10.1.85.3.(?)
    When I tried to import a swf file into a picture box in Quark it freezes the program and then I have to force quit the application and restart. I've been onto Quark's forum already with this issue and the advice is to uninstall Flash 10.1 and go back to v10 that came with the Quark DVD.This is the advice given:
    This FLash player consists out of two files, flashplayer.xpt and  Flash Player.plugin. However it is much cleaner to uninstall by using  the Flash Uninstaller Adobe provides on their web page.
    However, it's not made clear where these xpt and plugin files reside. Are they inside the Library>Internet Plug-ins? Quark's forum then goes on to say that there is ANOTHER standalone Flash Player programe that previews Flash files out of QuarkXpress and I did manage to open up the swf flie without trouble and saw the interactiveness within it. (I didn't create the swf file and don't know its provenance, it came with a tutorial).
    Inside of Quark's Extensions, there's a folder called ForIneractive that contains a Flash Player, when I clicked on it to get info it says it's v10.0 r22. Is this the standalone programe that previews flash files out of QuarkXpress and has nothing to do with the problem of my swf files not importing? To add confusion, when I visited Adobe Flash's troubleshoot site, it detects the Flash Player I have on my system as 10.1.85.3. So I'm totally puzzled as to what's what (version wise)! I've tried spotlight and it leads back only to the QuarkXpress ForInterActive folder and the Library for the plugin.
    The main question is, if I uninstall with the Adobe Flash Uninstaller, how do I know that I'm uninstalling the right components? Any other advice to fix this?
    Thanks a million
    Jadeytai

    Photoshop elements has never had File>Import>Video Frames to Layers.
    At one time, until a few versions back, there was File>Import>Frame from Video, but that was just able to do one frame at a time and the function has since been removed from photoshop elements.
    Photoshop and photoshop elements are two different applications, photoshop elements being an application based on photoshop, but with less advanced features.

  • Unable to convert swf files into fla files

    Hi,
      I tried using Dreamweaver to convert a SWF file into a FLA file so I can edit it in CS 5.  But when I right clicked the placeholder for the file, it doesn't have an "Edit in Flash"  option. What am I doing wrong?
    Thanks very much,
    Rosemary    

    According to http://help.adobe.com/en_US/flash/cs/using/WSd60f23110762d6b883b18f10cb1fe1af6-7f12a.html# WSc78c5058ca073340dcda9110b1f693f21-7acf
    asset is reflected in Flash immediately. 
    Edit a SWF file from Dreamweaver in Flash
    If you have both Flash and Dreamweaver installed, you can select a SWF file in a Dreamweaver document and use Flash to edit it. Flash does not edit the SWF file directly; it edits the source document (FLA file) and re‑exports the SWF file.
    In Dreamweaver, open the Property inspector (Window > Properties).
    In the Dreamweaver document, do one of the following: 
      Click the SWF file placeholder to select it; then in the Property inspector click Edit.
      Right-click (Windows) or Control-click (Macintosh) the placeholder for the SWF file, and select Edit With Flash from the context menu. 
    Dreamweaver switches the focus to Flash, and Flash attempts to locate the Flash authoring file (FLA) for the selected SWF file. If Flash cannot locate the Flash authoring file, you are prompted to locate it."
    But I don't see "Edit with Flash" option.  Maybe because I have a trial version of Dreamweaver?

  • SWF file into 3dsmax as a texture map?

    Anybody knows how to import an SWF file into 3dsmax as a
    texture map? We need to import it directly into the material
    library without first export it into a PNG sequence file... We have
    already tried to import it through quicktime, but 3dsmax crashes
    Any ideas

    Hi, i realise you posted this a long time ago but did you find a resolution to ths? I want to use a swf sequence as a map.
    Thanks,
    Derrin

  • Insert an swf file into another Flash file

    Hi,
    I'm a newbie to flash trying to insert an SWF flash file (a game) into another Flash file. However, when I import the swf file into the library and drag it onto the frame (and insert the stop(); command onto the frame action to stop it playing the whole movie), the SWF file plays constantly, ignoring all the actionscript and button commands in the game SWF file.
    When I try inserting it using the Window component, the game SWF refuses to play at all - it just stops (clicking buttons in the game work, but it goes-to-and-stops instead of go-to-and-play like it's supposed to do). The only other component I could find was called "Loader". Using this doesn't work either, it won't play any of the animation, just like using the "Window" component
    When the game SWF is played by itself (by just double-clicking to open it from Windows Explorer or embedding it in a web page), it works fine.
    Any help how to do this would be appreciated.
    Thanks.

    Hi,
    I'm posting in this thread because my problem seems similar but may be not...
    In my first swf, I'm loading a second swf via loadClip().
    My second swf works well alone but when I try to integrate itself in my first swf I'm losing my events. My events only works on my first swf.
    I'v tried your trick with _lockroot but he doesn't work for me too.
    Is someone have an idea to help me ?
    Thx
    My code is really basic
    First swf:
            var mcloader:MovieClipLoader = new MovieClipLoader();
            var listener:Object = new Object();
            listener.onLoadInit = function (mc:MovieClip){
                main_obj.__preloader.die();
                obj[funct](target_mc, param);
            mcloader.addListener(listener);
            mcloader.loadClip(file_name, __loader);
    Second swf:
        var box:MovieClip = this.createEmptyMovieClip("box"+depth, this.getNextHighestDepth());
        //Draw box
        drawBox(...);
        // Event on Box, Change Alpha and show arrow or not
        box.onRollOver = function() {
            drawBox(...);

  • I am unable to import a SWF file in Premiere Pro

    Please indicate how to import an SWF file into Premiere Pro. I tried to import as an movie, but it would not work.

    Hello,
    As of Adobe Premiere Pro 7.1, you cannot import FLV files directly into Adobe Premiere Pro. While working with FLV footage, use Adobe Media Encoder to import the FLV files and transcode the FLV files into a supported file type. For example, use the H.264 format.
    After Effects and Adobe Media Encoder still support the import of FLV files.
    FLV file export is still available within Adobe Premiere Pro.
    Peter Garaway
    Adobe
    Premiere Pro

  • How to load an AS3 swf file into a AS2 swf file?

    Hi,
    i am trying to display a swf file using AS3 in a flash site which uses AS2. I know that loading the swf file in the normal way, into a dummy movieclip (loadMovie) or into a new level (loadMovieNum), doesn't work. The AS2 based flash site doesn't understand the new file. Is there another way to get around this problem?
    Many thanks
    92 North Ltd
    Leeds website, graphic and web banner design
    Phone 0113 815 1158
    http://www.92north.com

    Thanks kglad. Will give that a try
    92 North Ltd
    Leeds website, graphic and web banner design
    Phone 0113 815 1158
    http://www.92north.com

  • How can I import or convert a .swf file into iMovie 8

    I've been searching with no luck for a way to convert a flash animation (.swf) file into a format that I can import into iMovie 8. Ideally, this would involve freeware or very inexpensive software. It is important that I maintain the quality (and audio) of the original swf file.
    Can anyone suggest a route?
    Many thanks.

    The easiest method is to use screen capture software to "record" the .swf file as it plays.
    Since .swf files use vector graphics you can scale it up in dimension (to fit your iMovie Project needs) without any loss in quality.
    I'm a happy user of SnapzProX http://www.ambrosiasw.com/utilities/snapzprox/ as it records in QuickTime formats.

  • Can I import a swf file (created in FC) into Flash?

    Can I import a swf file (created in FC) into Flash?
    ...also, do you need Flash Player 10 to play these files?

    Just did some testing here, and Flash Professional definitely does not like Catalyst projects. Importing to the stage failed silently (gotta love that), while Import to Library appeared to work - I got a MovieClip in my library. However, the clip is empty. I'd guess it is as Chris said, having to do with the fundamental differences in the Flex framework from the way Flash Pro works.
    As this did spark my curiosity, I decided to give loading the Catalyst-created project into a Flash Pro project at runtime using ActionScript. I was able to at least get the Catalyst content to appear through this method, but the effects (in this case, a simply button with a Rotate3D effect applied) was a mess.
    So the simple answer is "no".

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • Joining several swf files into one swf file

    hello everybody
    i've been dealing this issue for too long and decided to ask for  help - how can I unite 15 swf files which placed in one folder to a one swf file???
    i tried all kindes of merging softwares like "Join (Merge, Combine) Multiple SWF Files Into One Software" and "WinMerge" without success and tried to convert swf to flv (cause i found other merging software for flv files) but again...
    I have CS5 so if i'll have to open Flash for this i will, though i'm trying to avoid that and even then i'm gonna need full instructions.
    All i need is this simple thing so i'll appreciate very much any help
    Thanks & Good Day
    Keren

    Hi Ned
    Again - thank you very much.
    I've got the source files and i'm on the run now.. kind of..
    I did as you recomצended and used a code from one of the AS3 UILoader tutorials , and it seems to work:
    import flash.net.URLRequest;
    import flash.events.ProgressEvent;
    import fl.containers.UILoader;
    var myLoad1 = "fastflipPage.swf";
    var request:URLRequest = new URLRequest(myLoad1);
    loader.scaleContent = false;
    loader.addEventListener(Event.COMPLETE, completeHandler);
    loader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    loader.load(request);
    loader.load(request);
    function progressHandler (event:ProgressEvent):void
    status_txt.text = "Percentage Loaded" +
    Math.round(event.target.percentLoaded);
    function completeHandler (event:Event):void
    status_txt.text = "Loaded Done";
    So... i'm tring to find some answers to my next step : in the code above im loading only one file and i need to load 30 files so they could play one after another. i noticed that i can create many uiloader instances and load several external SWFs in the same scene without writing a script to each one of them... is that right? and if so, how can i do that???
    I'm full of hope to figure this task, meantime will look for more answers
    Thanks in advance
    Keren

Maybe you are looking for

  • Extra characters at the end of each servlet response

    I am attempting to develop a servlet that sits between a server and a browser, and simply martials arguments to send to the server, and then forwards responses to the web browser. When working with Weblogic 5.1 sp 11, things worked fine, except that

  • Linksys and Mac

    Can linksys software work on a Mac? If so how do I get stated setting up the wireless? Hardware is wireless - N WRT150N. thanks for any help.

  • Restrict alerts - ABAP application error

    Hi,    I need to restrict alerts getting generated for ABAP application error faults. Is there a way to specify exclude these errors in the alert rules or how can i acheive this.    We are having a fault message form ECC, due to application error in

  • Refurbished AIrport Extreme Card problems

    So i ordered a refurbished airport extreme card for my 12 inch powerbook g4. i installed the card in the right place and heard the click it is supposed to make, i fold up the little door, put the battery back in and reset my computer, after having in

  • Allow Data in Wires to be Forced During Development

    Currently, you can place a probe on a wire while developing, which is an indicator of the data on a wire. I want the ability to CONTROL the data on the wire, with a data forcing mechanism. The implementation would be very simple... right click on a w