Flash; Import a SWF to replace a Square!

Hey,
I have 2 Flash files; 1 is the main body of the website, and the other file has hundreds of layers that each contain some sort of code that imports XML and JPG images to create a slideshow. Now, I have created a grey square and then on playing of it I want the square to be replaced by this Slideshow, but still be able to apply some motion tweens like Fading etc in the main body.
How can this be done? and the code?
Thanks!

It depends on whether you're using ActionScript 2 or 3...
AS3 examples:
http://www.republicofcode.com/tutorials/flash/as3loader/
http://active.tutsplus.com/tutorials/actionscript/create-an-image-rotator-in-flash-using-x ml-and-actionscript-3-0/
http://www.kirupa.com/developer/flashcs3/loading_image_as3_pg1.htm
AS2 examples:
http://flashexplained.com/actionscript/loading-external-jpgs-into-your-main-swf-movie/
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00000 410.html#111794
Justin Putney
Partner, Ajar Productions
http://ajarproductions.com

Similar Messages

  • Help importing a .swf file from Flash CS5.5 to After Effects CS5.5

    I am working on animating a person in flash.  I have a main timeline and then a timeline inside of a symbol so I can move
    the characters facial features (eyebrows and mouth etc) apart from moving his entire body.
    I want to have multiple scenes so I am importing all of the .swfs into After Effects and putting them together. 
    However, when I import the .swf into After Effects, it only plays what occurs in the main timeline
    and not the timeline inside of the symbol, so it is just the character moving without the facial movements.
    Is there a way to fix this or a better program to import the .swfs into and make the video?
    Thanks in advance.

    Here's the note from After Effects Help aboutt he limitations to SWF import:
    SWF (continuously rasterized) Note:  SWF files are imported with an alpha channel. Audio is not retained. Interactive content and scripted animation are not retained. Animation defined by keyframes in the main, top-level movie is retained.
    The limitation that you noticed---that only animation in the top-level timeline is retained---is not one that can be worked around without changing how your animation is set up in Flash.

  • How can I import a .swf file in Adobe Flash CS4?

    Hi,
    How can I import a .swf file in Adobe Flash CS4?
    Thanks.

    you can use file/import but that would be a mistake.
    you should "load" your swf, not import it.
    if you want to load it and need help, are you using as2 or as3?

  • Captivate 2.0 Very Buggy After Import of SWF File (Flash 8)??

    Where should I begin...
    Issue 1
    I just updated to Cap 2 and started using it. I have come
    across a few very weird issues. Everyting works fine until I import
    a swf file to the stage. After I import a swf file to the stage I
    realize I made a mistake in the swf file. So I updated the swf in
    Flash 8 and publish it. I then went into Cap 2 and tried to update
    the file (which I noticed that the update button has been removed.)
    When I go to import and import the updated file, it does not update
    it. I had to close the program and reboot before it would recognize
    the new file??? Sounds like a caching issue of some sorts, but very
    buggy in my eyes.
    Issue 2
    So now I have the new file in... great! But when I try to use
    one of the drop down menus from the top tool bar, the menu
    disappears immeditly after I have clicked on it??? The only way to
    get my menu's back is to close the program and reopen it.
    Issue 3
    I just recently found another problem... I was trying to work
    with Cap 2 in its crazy state, and I pulled one of the bars on the
    timeline torwards the end of the screen and the timeline
    disappeard??? So I went to view and clicked timeline... no change.
    Now I do not have a timeline??? I have tried running a reapir and I
    even tried several different new projects with different swf files
    to see if it was just that file and I have the same results.
    Sorry so lengthly on my issues but this just sucks and I need
    help!! Anybody got any ideas!??
    Thank you!!

    Hi SaSQuaCh69247,
    Issue 1 :- Select the SWF file in library, right click, and
    select update.
    Issue 2 :- Actually it could be valid for Issue 1 also. It
    seems like SWF file you are trying to import, does some action
    like, importing another swf or connecting to server on the first
    frame itself. Captivate will try to play the first frame of SWF
    when you import them. Try creating a keyframe with the stop action
    as the first frame in your SWF, and see if you still have the
    issue.
    Issue 3 :- The approach I am mentioning over here is
    generally the last approach which I will take in such scenerios,
    but since you have already experimented a little, so try this.
    Go to C:\Documents and Settings\<user name>\Application
    Data\Adobe\Adobe Captivate
    Rename captivate_v20.dat as captivate_v20_org.dat.
    Restart Captivate Application.
    thanks

  • How do I import a swf slideshow into my macromedia Flash MX homepage?

    I have a macromedia flash mx homepage that I have been
    working on. I made a custom slideshow through this company anvsoft
    that they say that you can put the slideshow into the macromedia
    flash. I can not get anyone to help me do this there though.....
    Is there anyone here that can help me import a swf file
    "Movie" slideshow into an existing flash page/scene?
    PLEASE :) :) :) I would REALLY appreciate all the help I can
    get on this one!!
    I have tried to upload it through the "loadmovie" but it
    doesn't seem to work.......
    Melissa

    no no no the fla file is the macromedia flash homepage that I
    am working on.
    I am trying to put a swf file (slideshow) from the company
    that I stated below that I had built externally. I want this
    slideshow to show up on the flash page.....
    I also need to know once I get it to show up how do I adjust
    the size to fit it where I want it to go on the flash page that I
    am building.
    Thanks so much !! I really apprieciate any help :) :)
    Melissa

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

  • Import complete Flash site into swf in mini format

    Hi,
    I am trying to get a smaller size of a complete web site to
    run in a swf file on my web site.
    You can see what I am thinking at gggraphic.com/new under
    product and web design. I want the inserted web sites to be live.
    The script below works fine if the imported site lives in one
    single swf. But most of
    my sites run from a master swf that imports other swf's. The
    master will import in the specified size. But all following swf
    files will import in their full size. Is there some universal code
    that will make all files that are imported into the
    container movie clip adjust to the new size?
    Hope to hear from you soon.
    Thanks on before hand.
    Sincerely
    ggaarde
    08.19.07
    Attach Code
    stop();
    var mcl:MovieClipLoader = new MovieClipLoader();
    mcl.loadClip("
    http://www.soundoil.com/CombFlash/CombFlash3.swf",
    container);
    trace("Loading started!");
    trace("File width is: " + container._width);
    var mclListener:Object = new Object();
    mclListener.onLoadInit = function(mc:MovieClip) {
    trace("Loading complete!");
    trace("File width is: " + mc._width);
    mcl.addListener(mclListener);
    container._xscale = 56;
    container._yscale = 56;
    container._x = 305
    container._y = 82

    sorry about that. from what I know it shoots in mpeg-2, but when you go onto the camera disk image the files are named .mod
    they can be imported into imovie 08, as .mov (but when I click "get info" it still says that they are mpeg-2 and that they are compressed -- which *****)
    its also 16:9, standard definition. That's all I really know. What I ended up doing what I converted all the clips to DV with mpeg stream clip so I wouldn't have to render the video in fce. I did have to render the audio for some reason though.
    another quick question. If I have a lot of clips in the bin for final cut will it slow it down? I have about 70 and it seems to be the cause for "dropped frames" or whatever that dialogue box says.
    thanks again.

  • Is it possible to import a SWF with a transparent background into Catalyst?

    Hi,
    Here's what I'm hoping to happen. I've created presentation in Catalyst and I was hoping to import an animation I created in Flash into the title screen of the presentation in Catalyst. Problem is, I don't want the background from the SWF to cover the background of the presentation in Catalyst. I know that you can make a SWF appear transparent in an HTML file using the "window mode" when publishing a SWF from Flash. Is this at all possible?
    Thanks!

    I figured it out. And yeah, it is possible. The way I did it was to publish the SWF with the HTML file  while making sure that the window mode is set to transparent. I then was able to import the SWF to my library in Catalyst without the background and then use multiple instances of it. Works great.

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

  • Import a .swf 3D animation in Java

    Dear all,
    I would like to import an .swf 3D animation, which was built in Adobe Flash.
    Is it possible? Is any way to tranform this in Java like type? I have read about the JavaSWF2, I have downloaded some samples, but I cannot transform a .swf 3D animation into e.g. into Java Frames.
    Otherwise, do I have to build this 3D animation as a Java 3D object, writing code from scratch?
    I would like also to ask if anyone has constructed a 3D animation using JavaFX. I read very few things, but I did not find something related to 3D.
    I really appreciate any help.
    Regards.
    kalgik

    Change the frame rate of the animation after you remove the unwanted section.

  • Cannot import any swf

    Hi,
    i cannot import any swf file into after effects. Even the most simple one. A shape created in flash pro cc without any scripts.
    what i do:
    in after effects i use "import file", choose the swf. after effects tries to import it, but it does not work. i see just the loading bar which does not move at all. the cancel button also does not work. in the end i can only force quit the program.
    material:
    - after effects cc
    - macbook pro 2,2 ghz Intel Core i7
    - osx 10.8.4
    i apreacheate any help! thanks in advance,
    Uli

    What is the exact version number of After Effects? Choose After Effects > About After Effects and show a screenshot of the window that appears with the version number.

  • Successfully imported external swf, can not put it into movie clip

    Hello all,
    I have started learning AS3 and gradually getting used to, trying to put external swf into movie clip.
    Successfully imported target swf and put into stage, when I publish this I see target swf is playing.
    import flash.display.MovieClip;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    addChild(BGLoader);
    As next step I want to put this swf into movie clip and get more control, but when I publish bellow only I see is empty background, without any errors.
    import flash.display.MovieClip;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    //addChild(BGLoader);
    var animMC = MovieClip(BGLoader.content).getChildAt(0) as MovieClip;
    addChild(animMC);
    Is anything missing?
    Any help would be appreciated, thanks.

    You can only access Loader.content after Load completed successfully.
    Try this,
    import flash.events.Event;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    //addChild(BGLoader);
    var animMC:MovieClip;
    function completeHandler(event:Event)
         animMC = event.currentTarget.content;
         addChild(animMC);

  • Imported interactive SWF jumping ahead

    Hello,
    I imported a SWF into Captivate. The SWF is a mini-instructional module with it's own Next and Back buttons and its own menu of topics. The Captivate is a course I'm building. I had a developer create this SWF to prevent my having to produce every new concept on it's own slide (the project was getting waaaaayy too slide heavy).
    The problem is that the SWF works fine on it's own -- the SWF 'screens' don't advance until the user clicks the appropriate button on the SWF --- BUT when imported to Cp and previewed, the SWF's first screen jumps to the next screen without the user's input. Understand this is the SWF jumping ahead, not the Cp slide that it resides in. (when I imported the SWF, the thumbnail in the selection/dialogue box even jumped ahead)
    What gives? Can anyone tell us how to fix this?
    Thanks!

    Misnomer17 here...Ed, a Flash developer on staff, solved the problem! Here it is for all to reference:
    Problem:
    My flash swf that I imported into Captivate does not function properly. On the first frame of the timeline, I have a stop function that pauses the swf. I also have a button that allows the swf to continue playing when clicked until the next stop function occurs. However, when captivate plays this swf, the swf automatically skips and goes straight to the next stop function. How do I avoid this error?
    Solution:
    Captivate does not like the stop function on the main timeline of the Flash/swf.  In Flash, clear out the main timeline by placing all your items from the main timeline into another movie clip (including the action script).  Drag your new movie clip onto the main timeline. Export to swf. Test out your new swf in Captivate.

  • Import file swf to java

    Hi all,...
    I want to ask : how we can import file swf to java...
    I want to make that *.swf to become my first page in my program.
    that swf will be displayed in my program...
    by the way, please tell me step by step (i'm still newbie)..
    Thanxs for u' answer..

    IOW "Give me teh codez".
    Google (or any other internet search engine of your choice) can deliver you every thing you'll need with just a few seconds of effort on your part. Probably less effort than it took you to find this forum and post your question.

  • Cannot import a swf file

    Hello - I'm hoping someone can help me. I'm using Powerpoint
    2007 and adobe presenter. I've created SWF files in both captivate
    and camtasia. So when I try to import the swf into powerpoint using
    presenter, nothing happens. I click import swf, choose the file, if
    I click the preview button I can see it, but when I click "open" it
    does not attach to the slide. I can't see if it I preview the
    presentation and there is nothing in the manage swf option either.
    I am at a total loss so any advice would be helpful.

    should anyone else have this problem ... it turns out I needed to upgrade PanoPlayer

Maybe you are looking for

  • Ipod error message when updating songs

    I am reoccurantly having the same problem when trying to update my ipod mini. It displays the message : ERROR THIS FILE CANNOT BE READ FROM OR TO. I would be very grateful if anyone can help me sort out this problem Thanks toshiba   Windows XP  

  • Help with navigation on a site with an embedded blog?

    I have an embedded blogger blog on my website. When I go to the blog page on the website, I can't navigate away from it using the menu. Can anyone give me some help on how to fix this? The site is: www.consigningwomensc.com Thanks!

  • Airport express and the ethernet port

    Since January, I've had my older g/b model of airport express set to "join the network," which is an 802.11n airport extreme connected to my cable modem. Until last week, the ethernet port of the airport express could be used to connect in my DVD pla

  • Status of elements not appearing in Management Cockpit

    The Problem is as follows:                                                 when you look into the management cockpit and ask to display data from, for example, December 2004, the cockpit shows all the four walls with elements without status, when, in

  • How to join 2 tables on PK and FK relationship if some columns doesnt exist in one table

    Hi, I have a table which has locationNum has PK lets call it TableA and i have 2nd table Table B which has LocationNUm as Fk referecing to Table A PK. Now, Table B has more LocationNum's than Table A and if am trying to insert its failing as some of