Import a swf made of UILoader to another fla's UILoader

Sorry... I am new to AS 3, and my English is poor.
I made two flash.
First one I use it to import 5 images by UILoader,
and I made another one to import this flash,
and create 2 buttoms (play & stop) to control the imported flash.
But...the control.fla didn't work...
It seems that the img.swf didn't be imported.
PS: I choose to insert xml, and the "img.swf" in the table below was converted as img.swf
img.fla
var imgNum:int;
var imgNum0:int;
var targetX:int = 5;
ldr.x = -560;
stage.addEventListener(Event.ENTER_FRAME, changeImg);
function changeImg(e:Event):void
     if (ldr.x < -557)
          do
               imgNum0 = (Math.floor(Math.random()*4) + 1);
          while (imgNum0 == imgNum);
          imgNum = imgNum0;
          ldr.source = String("image" + imgNum + ".jpg");
          targetX = 5;
     else if (ldr.x > 0)
          targetX = -560;
     moveImg();
     function moveImg():void
          ldr.x += (targetX - ldr.x) / 10;
control.fla
//ldr.load(new URLRequest("img.swf"));
ldr.source = "img.swf";
play_btn.addEventListener(MouseEvent.CLICK,doPlay);
stop_btn.addEventListener(MouseEvent.CLICK,doStop);
function doPlay(e:MouseEvent):void
     MovieClip(ldr.content).play();
function doStop(e:MouseEvent):void
     MovieClip(ldr.content).stop();

When I want to move a movieclip from one fla to another I just right click it in the library and select copy.  Then I go to the library of the other fla, right click the library (off any other symbols) and select paste.

Similar Messages

  • 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

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

  • How to make a movieclip and import it to another fla file ?

    Hi,
    I am having one of those 'self doubt sanity' moments.
    Entering melt down here !
    I want to make a movieclip from a graphic map background, and some existing movieClips that reside in another .fla
    In this other .fla file the movieclips are in the wrong layer so by starting over I wish to tidy things up.
    How do I create a movie clip from such ?
    Then I start thinking, how does one create a movie clip, then bring it into another file ?
    I even did a test that went:-
    1) create new AS3 file
    2) draw a box
    3) select box and hit F8 Convert to symbol, select movieclip and name it box_movieclip
    4) d/click box and made a classic tween and had box moving across stage.
    5) save as and named file MovieClip_Boxtest.fla
    6) open new file AS3 and import to library the BoxTween.fla  and got a message saying One or more files not imported as problems reading them.
    So having done the above stages 1 to 5 which made a movieclip, how do I get that into another fla file ?
    having done this before I am panicking that I have lost some brain cells !
    Envirographics.

    When I want to move a movieclip from one fla to another I just right click it in the library and select copy.  Then I go to the library of the other fla, right click the library (off any other symbols) and select paste.

  • Is this possible - Import Flash swf which then imports an external swf

    Hi,
    I was wondering if it's possible to (as the title says) to import an swf which itself imports an external swf?
    Explanation - I've got an scrollbar created in flash...and to keep it tidy i've created the scroll 'content' as another swf which is imported into  the scrollbar swf.
    Whenever i publish/render the project the scroll bar appears but the content does not.
    Is it possible to do this?
    Captivate > imports flash > which imports external swf
    Cheers
    Craig.

    Yes that shouldn't be a problem at all. You probably won't be able to see it working when you preview the project from within Captivate but if you publish it and manually copy/paste the external swf to the publish directory, it should work just fine.
    www.cpguru.com - Adobe Captivate Widgets, Tutorials, Tips and Tricks and much more..

  • Enquiries on whether fla can be linked to another fla, swf to flv or other video format and buttons to an animation

    I have 3 enquiries.
    1) How do I embed another fla within fla.
    For example, I am working on a fla, is it possible to create
    a link to another fla via a button?
    2) How do i convert a swf file into a flv file or any other
    video format like avi, mp4, etc?
    I am asking this because I realized when I try to import a
    swf into my fla file, I could only bundle it for mobile. Neither
    the progressive nor the streaming nor the embeding options could be
    checked.
    3) After adding tweening motion to an animation, is it
    possible to add buttons to play/pause? Do I have to write a script
    to enable the buttons to work?
    I tried adding buttons (Windows>components>video),
    however, the buttons were not functioning like the case when I
    imported a video. I think it's because adding tweening to an
    animation doesn't really dismiss it as a video file.
    I would greatly appreaciate if anyone could post a solution
    to my problems.
    Thanks.

    I am not so sure that this is a bug, and I have not been able to reproduce this behavior that you are describing. 
    But you can lock it from editing by right-clicking on the graph and go to Properties>>Appearance>>Enabled State --> Disabled
    Also, word of advice for the future: You will get more replies from the community with shorter posts and keeping it to one question per post. Summarize what the issue is, and put the detailed documentation and instructions to reproduce in the actual VI. 
    Huntington W
    National Instruments
    Applications Engineer
    ***Don't forget to give Kudos and Accepted as Solution where it is deserved***

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

  • 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

  • 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 put a video in my Ipad from my pc? (I made this video with another Ipad, but if  send it with Imessage, the quality is worse, if i try to put this video in Itunes it don't read it)

    How can I put a video in my Ipad from my pc? (I made this video with another Ipad, but if  send it with Imessage, the quality is worse, if i try to put this video in Itunes it don't read it, if I try to put the video in Ipad like it is a normal pendrive i can't)

    Okay, I figured out that Windows has "AutoPlay" settings which can automatically download photos and videos from a newly connected device, such as an iPad Mini.  I think I could open it in Windows Explorer too that way but the auto download solved my problem.

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

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

  • Can I import a dvd made in I movie back to I movie

    Can I import a dvd made in I movie back to I movie to edit.

    Use a product such as MPEG Streamclip to convert the VOB files on the DVDs to DV.
    (67106)

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

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

Maybe you are looking for