Removing movie clip in a frame

Hello,
I have a timeline with 12 frames, in frame 7 I added a movie clip to the  stage:
var pContainer:MovieClip = new MovieClip;
addChild(pContainer);
var myLoader1:Loader = new Loader();
pContainer.addChild(myLoader1);
var myRequest1:URLRequest = new URLRequest("flash/products.swf");
myLoader1.load(myRequest1);
pContainer.x = stage.stageWidth/2 - 380;
pContainer.y = stage.stageHeight/2 - 180;
now, when I hit a button and I go back to frame 2 or any other frame in my movie, this movie clip is on  top of everything,
I tried in frame 2:
removeChild(pContainer);
but it doesn't remove the movie clip any ideas?

Managing things you create dynamically can be tricky business... I don't yet know why.
One way of doing this is to manually plant pContainer as an empty movieclip symbol in frame 7 rather than creating it dynamically.
Another thing to try would be to use the removeChild command before you move away from frame 7.  So you might need to have a conditional in your button that tests the currentFrame value and then executes the removeChild command before moving to the destination frame.

Similar Messages

  • Help! Remove Movie Clips

    OK...here's my problem... I am making a portfolio site and I
    have my thumbnails being created dynamically through XML...very
    similar to the galleries example in the Sample and Tutorials. Only
    problem is that I have multiple keyframes with different thumbnails
    that need to be displyed through a different XML file. I got it to
    work but the thumbnails from the first frame are still showing on
    the second frame...How do I remove the dynamically created movie
    clips?

    OK...here's the code...At thebottom of the document, I need
    to remove the clips created on the next button. This is the same
    code from the gallery sample file; I just added my own XML file.
    stop();
    import mx.transitions.*;
    _global.thisX = 30;
    _global.thisY = 70;
    _global.stageWidth = 600;
    _global.stageHeight = 400;
    var gallery_xml:XML = new XML();
    gallery_xml.ignoreWhite = true;
    gallery_xml.onLoad = function(success:Boolean) {
    try {
    if (success) {
    var images:Array = this.firstChild.childNodes;
    var gallery_array:Array = new Array();
    for (var i = 0; i<images.length; i++) {
    gallery_array.push({src:images
    .firstChild.nodeValue});
    displayGallery(gallery_array);
    } else {
    throw new Error("Unable to parse XML");
    } catch (e_err:Error) {
    trace(e_err.message);
    } finally {
    delete this;
    gallery_xml.load("gallery_practices2.xml");
    function displayGallery(gallery_array:Array) {
    var galleryLength:Number = gallery_array.length;
    for (var i = 0; i<galleryLength; i++) {
    var thisMC:MovieClip =
    this.createEmptyMovieClip("image"+i+"_mc", i);
    mcLoader_mcl.loadClip(gallery_array.src, thisMC);
    preloaderMC = this.attachMovie("preloader_mc",
    "preloader"+i+"_mc", 5000+i);
    preloaderMC.bar_mc._xscale = 0;
    preloaderMC.progress_txt.text = "0%";
    thisMC._x = _global.thisX;
    thisMC._y = _global.thisY;
    preloaderMC._x = _global.thisX;
    preloaderMC._y = _global.thisY+20;
    if ((i+1)%5 == 0) {
    _global.thisX = 20;
    _global.thisY += 80;
    } else {
    _global.thisX += 80+20;
    var mcLoader_mcl:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    mclListener.onLoadStart = function() {
    mclListener.onLoadProgress = function(target_mc, loadedBytes,
    totalBytes) {
    var pctLoaded:Number =
    Math.round(loadedBytes/totalBytes*100);
    var preloaderMC =
    target_mc._parent["preloader"+target_mc.getDepth()+"_mc"];
    preloaderMC.bar_mc._xscale = pctLoaded;
    preloaderMC.progress_txt.text = pctLoaded+"%";
    mclListener.onLoadInit = function(evt:MovieClip) {
    evt._parent["preloader"+evt.getDepth()+"_mc"].removeMovieClip();
    var thisWidth:Number = evt._width;
    var thisHeight:Number = evt._height;
    var borderWidth:Number = 2;
    var marginWidth:Number = 8;
    evt.scale = 8;
    evt.lineStyle(borderWidth, 0x000000, 100);
    evt.beginFill(0xFFFFFF, 100);
    evt.moveTo(-borderWidth-marginWidth,
    -borderWidth-marginWidth);
    evt.lineTo(thisWidth+borderWidth+marginWidth,
    -borderWidth-marginWidth);
    evt.lineTo(thisWidth+borderWidth+marginWidth,
    thisHeight+borderWidth+marginWidth);
    evt.lineTo(-borderWidth-marginWidth,
    thisHeight+borderWidth+marginWidth);
    evt.lineTo(-borderWidth-marginWidth,
    -borderWidth-marginWidth);
    evt.endFill();
    evt._xscale = evt.scale;
    evt._yscale = evt.scale;
    evt._rotation = Math.round(Math.random()*-10)+5;
    evt.onPress = function() {
    this.startDrag();
    this._xscale = 30;
    this._yscale = 30;
    this.origX = this._x;
    this.origY = this._y;
    this.origDepth = this.getDepth();
    this.swapDepths(this._parent.getNextHighestDepth());
    this._x = (_global.stageWidth-evt._width+30)/2;
    this._y = (_global.stageHeight-evt._height+30)/2;
    mx.transitions.TransitionManager.start(this,
    {type:mx.transitions.Photo, direction:0, duration:1,
    easing:mx.transitions.easing.Strong.easeOut, param1:empty,
    param2:empty});
    evt.onRelease = function() {
    this.stopDrag();
    this._xscale = this.scale;
    this._yscale = this.scale;
    this._x = this.origX;
    this._y = this.origY;
    evt.onReleaseOutside = evt.onRelease;
    mcLoader_mcl.addListener(mclListener);
    next_btn.onRelease= function() {
    gotoAndStop(2);
    back_btn.onRelease= function() {
    gotoAndStop(1);
    }

  • Removing movie clips with added children

    If I have a movie clip added as a child to another movie clip
    on the stage, and I remove it's parent, and null all references to
    the parent, will both the parent and child movie clip be deleted by
    the garbage collector? If so, will it be done on it's regular pass
    or by mark and sweep?

    OK, so if I add a movie clip like this:
    function addMovie()
    var toAdd:MovieClip = new Example(); // example extends
    movieclip
    this.addChild(toAdd);
    I'm assuming that toAdd will be nulled when the function is
    complete, because it's a local variable. Then if I put code inside
    the movie clip at a certain frame or in a function in the class
    Example to get rid of it:
    this.parent.removeChild(this);
    I'm assuming that's all i need to do to get rid of it. I
    can't null the instance of the class Example using this = null from
    inside it, and the only reference to it is the child reference from
    the parent.
    Am I right or is there more I need to do to make the instance
    of example eligible for GC?

  • Is this a bug?: copied movie clip has wrong frame rate and ruins the main movie's sync

    Hello,
    I am trying to copy a movieclip with a frame rate of 30 frames per second to a movie that has a frame rate of 30 frames per second. Both movies are actionscript 3 movies. When I do this, my copied movie clip's frame rate reverts to 12 frames per second and all my audio synched animation is trashed. Then when I change it back manually to 30 frames per second it makes my main movie's stage animation go crazy at full possible speed and the audio is all out of sync. I have not set export for sharing or action script on this movie clip. I've tried other movie clips that are 30 frames per second and it is all crazy!
    Is this a bug? What can I do? I've got 100s of movie clips I need to make. I can't keep remaking them just because flash has a screw loose. I'll go crazy!
    -theGibler

    Oh sorry I goofed! My main time line is 12 fps! I can't belive I didn't see this before.

  • Play a Movie Clip on a frame In Main SWF from a button, within 2 MovieClips

    I’m using AS2, Flash 8
    I have a frame on my main Timeline Called “Gallery” within this frame I have 2 movie clips, which I need to work together:
    One is called:
    Gall_Lge_1
    Which contains 37 frames.
    Each frame has a different movie – basically 37 different photos which pop up on each frame.
    (MC’s named Lge_1, Lge_2, Lge_3 etc)
    The second Movie Clip I have on here is called:
    gall_strip_mc
    Which contains a movie clip called strip1 , (which is set to scroll its contents controlled by buttons on ”Gallery”- which works) inside that is a movie clip called strip_all , and contains one frame with 37 buttons/photo thumbnails, (Buttons named btn1, btn2, btn3 etc which I require to link each individual button to the corresponding photo/frame in Gall_Lge_1  …
    So,
    btn1 will go to and play Lge_1(Frame 1 of Gall_Lge_1)
    btn2 will go to and play Lge_2(Frame 2 of Gall_Lge_1)
    I’m stuck and can’t get it to work..
    Here is the site – under ‘Gallery’ so you can see what I’m trying to achieve
    http://www.blueshelldesign.com.au/draft/
    (I’ve placed in Back and Next buttons next to ‘Gall_Lge_1’ so you can see how its suppose to look when the thumbnails from ‘gall_strip_mc’ are clicked)

    First, you do not use quotes when you are specifying a frame number, so try changing that first.  The only time you use quotes for that argument is for frame label strings.
    If it still won't play, are you sure that the button is coded properly and executes the function when clicked?  You should put a trace in the function to make sure.  Also, you could try using _root instead of _level0... I forget the difference, if any, but _root will definitely get you to the main timeline.
    btn2.onRelease = function() {
         trace("btn2 clicked");
        _root.Gall_Lge_1.gotoAndPlay(2);

  • Movie Clips with one Frame

    If I have SWF's that I am using for UI elements in a game, and in these SWF's there are layers with Movie Clips and these clips have only one frame in them - do I need to explicitly put a stop() in there for optimal performance?
    I'm curious if these movie clips sit there and loop with only one frame and in the end hurt the game's overal FPS
    Any insight would be appreciated

    please don't cross-post.

  • Removing movie clips in arrays

    Hi there
    I have this code in my Flash file:
    for(bubble in bubbleArray){
         bubbleArray[bubble]._y -= 3;
         if(bubbleArray[bubble]._y < 370){
              bubbleArray[bubble].removeMovieClip();
    I'm wondering, when I remove the movie clips should I also be popping them from the array?
    I have an onEnterFrame function that attaches the movie clips and pushes them into the array, so I'm worried that if I don't pop them the array will continue to increase in size and slow down the movie. Is this the case, or will they be automatically removed from the array by the removeMovieClip() method above?

    Looks like I spoke too soon. I imagined that removing them from the array would be easy, but I'm struggling.
    The movie clip that is removed from its parent clip and should be removed from the array will not always be the first element in the array, and I'll need to remove multiple clips at a time. I've put in a trace action to trace the length of my array, and after about ten seconds it contains about 2500 elements, most of which have already been removed using the removeMovieClip() method. I'm worried this will slow down the movie.
    So to clarify: How can I remove these elements from my array when I remove them from the stage?
    I tried to include something like:
    while(bubbleArray[0] == undefined){
         bubbleArray.shift();
    but it caused Flash Player to freeze up. Also, if I trace bubbleArray[0] it is only "undefined" before something is pushed into the array. Once the clip has been removed from the stage, the trace just returns a blank line, not "undefined".
    I'd appreciate any help.
    Here is all my code:
    stop();
    splash.stop();
    var i:Number;
    var j:Number = 0;
    var minBubbles:Number = 10;
    var maxBubbles:Number = 20;
    var bottomBubbleLimit:Number = 0;
    var topBubbleLimit:Number = 1;
    var bubbleNumber:Number;
    var bubbleX:Number;
    var bubbleY:Number;
    var bubbleScale:Number;
    var bubbleMinScale:Number = 30;
    var bubbleMaxScale:Number = 100;
    var fewerBubbles:Number;
    var ring:String;
    var ringArray:Array = [ringAnimation.ring1, ringAnimation.ring2];
    var bubbleArray:Array = [];
    ringAnimation.onEnterFrame = function(){
        for(ring in ringArray){
            if(ringArray[ring]._y > 370){
                bubbleNumber = (minBubbles + (Math.random() * (maxBubbles - minBubbles)));
                for(i = 0; i < bubbleNumber; i++){
                    bubbleX = ((ringArray[ring]._x - (ringArray[ring]._width / 2)) + (Math.random() * ringArray[ring]._width));
                    bubbleY = ((ringArray[ring]._y - (ringArray[ring]._height / 2)) + (Math.random() * ringArray[ring]._height));
                    bubbleScale = bubbleMinScale + (Math.random() * (bubbleMaxScale - bubbleMinScale));
                    ringAnimation.attachMovie("bubble", "bubble" + String(j), this.getNextHighestDepth(), {_x:bubbleX, _y:bubbleY, _xscale:bubbleScale, _yscale:bubbleScale});
                    bubbleArray.push(ringAnimation["bubble" + String(j)]);
                    j++;
        for(bubble in bubbleArray){
            bubbleArray[bubble]._y -= 3;
            if(bubbleArray[bubble]._y < 370){
                bubbleArray[bubble].removeMovieClip();
        trace(bubbleArray.length);
        if(ringAnimation._currentFrame == 6){
            splash.gotoAndPlay(1);
        }else if(ringAnimation._currentFrame == 12){
            splash.gotoAndPlay(1);
    fewerBubbles = setInterval(reduceBubbles, 600);
    function reduceBubbles(){
        if(minBubbles > bottomBubbleLimit){
            minBubbles--;
        if(maxBubbles > topBubbleLimit){
            maxBubbles--;
        if(minBubbles == bottomBubbleLimit && maxBubbles == topBubbleLimit){
            clearInterval(fewerBubbles);

  • Remove Movie Clip

    I would like to have the user click on a button or movie clip
    that takes them to a new scene with multiple questions on it, and
    depending on what answer they choose, come back to the main scene
    and the button be gone, and replaced with a graphic (that won't
    have any function). I thought I could change the alpha of the
    graphic (sallylock_mc) from 0 to 100, but its only staying on 0.
    And, I can't figure out how to make sally_mc disappear. So far,
    here's what I have:
    Main scene:
    stop();
    sallylock_mc._alpha=0
    sally_mc.onRelease=function(){
    _root.gotoAndPlay("sally");
    "sally" scene:
    stop();
    sallyright_btn.onRelease=function(){
    _root.gotoAndPlay("main");
    sallylock_mc._alpha=100

    OK :)
    sally_mc (I changed it to a button, so now it will be
    refrenced as sally_btn) exists in the very first frame of the first
    scene ("main")of the movie. You have to click it to go to the scene
    called "sally" Within the scene called "sally", there is a question
    and answers. When the user clicks the right answer, I want them to
    go back to the "main" scene, and I want sally_btn to be gone, and
    replaced with what looks like a padlock, which I have called
    sallylock_mc (it is a movie clip, don't know if it has to be or if
    it should be something else.) Also, I want the padlock to only
    exist/be visible on the "main" scene. I've found that when I go to
    the other scenes, the padlock is there, ontop of everything else.
    I've attached the code in "main", and in "sally":

  • HELP WITH AS3 Removing Movie Clip

    every code i try in the action script to remove a movie clip off of the stage does not work. HELPPPP.

    well this is my code to bring it onto the stage
    import flash.events.MouseEvent;
    pills.addEventListener(MouseEvent.CLICK, arrest)
    function arrest(pEvent:MouseEvent):void{
              if(pEvent.target==pills){
                        var carimage: policecar= new policecar();
                        carimage.x=0;
                        carimage.y=0;
                        this.addChild(carimage);
    and the remove is under a different clip
    stop();
    bars1.addEventListener(MouseEvent.ROLL_OVER, barsout)
    function barsout(pEvent:MouseEvent):void{
              if(pEvent.target==bars1){
                        this.removeChild(carimage);
    even when i add the latter code into the origininal code above it tells me access of undefined property (carimage)

  • Trying to remove movie clip with collision?

    I am creating empty movie clips and populating them with
    movie clips that have "drag and drop" functionality. I can create
    the empty movie clip and populate it with an external .swf. I've
    even got the drag-n-drop handled. But, I'd like to have them delete
    or disappear when they are dropped onto a trash can movie clip. I
    just can't seem to figure out the code for this. I would greatly
    appreciate any help you could give me.
    Thanks.

    you need to perform a hitTest to determine if the item is
    within the bounds of your trashcan, you can also use _droptarget,
    but I prefer hitTest with a shapeflag parameter. depending on your
    code, when you call stopdrag onRelease, run your test there.
    the_mc.onRelease = function() {
    stopdrag();
    if(_level0.trashcan.hitTest(_xmouse, _ymouse, true)) {
    this.removeMovieClip();
    }

  • Unable to Remove Movie Clip

    Hello... I am an ActionScript newbie. I followed a tutorial
    from computer arts magazine, to create a portfolio using
    actionscript and xml. I linked the portfolio to several scenes in
    flash, such as contents and contact details. My problem is that
    when I placed a button "back" on the main stage of the portfolio,
    to redirect to the contents page, the list of artworks thats
    populated from xml remains on the next scene, or any other scene i
    link it to. I tried using unload movie clip, but nothing is
    working. Please Help. This is my actionscript:
    I don't if this helps, but I get this message in the output
    panel: Target not found: Target="_root.btn_projectsundefined"
    Base="_level0"

    check the flash help files. there's no better way to debug
    your flash applications than the liberal use of the trace()
    function.
    for example:

  • Removing movie clips

    I have this bit of code all by itself in a frame on the main
    timeline
    square.removeChild(squarechild);
    it works great if squarechild exists. but if squarechild
    doesn't exist the main timeline just stops. In AS3 how do you say
    "if squarechild exists, remove it, if it doesn't, just keep going"?
    Thanks for your help

    If you look just a little ways down the forum page, you'll
    find some info that may help. Here's the link in case it's not
    obvious:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=665&threadid =1428651&enterthread=y

  • Cant remove movie clip in preloader

    For some reason the mc is not removed from the stage when my preloader is finished loading ...
    function Preloader(event:ProgressEvent):void {
         var mc:preloader = new preloader();
         var percent:Number=Math.round(event.bytesLoaded/event.bytesTotal*100);
         addChild(mc);
         if (percent==100) {
              removeChild(mc);
    xml_loader.removeEventListener(ProgressEvent.PROGRESS, Preloader);
    Am I missing something here?

    yes.
    each time Preloader() is called you're creating a new preloader instance (all with the same reference, mc).  so, if you call Preloader() 25 times, you're adding 25 instances of mc and, on the final call to Preloader(), you remove one mc instance and stop the calls to Preloader().
    to remedy, use:
    var mc:preloader=new preloader();
    addChild(mc);
    function Preloader(event:ProgressEvent):void {
         var  percent:Number=Math.round(event.bytesLoaded/event.bytesTotal*100);
    // do something with mc to reflect percent
         if (percent==100) {
              removeChild(mc);
    xml_loader.removeEventListener(ProgressEvent.PROGRESS,  Preloader);

  • Making a button rollover change a movie clip's frame

    Hi again everyone,
    I knew how to do this in AS2 but now I am having problems
    with making a button on the stage goto a frame in a movie clip on
    the stage.
    I've attached a sample of my code below, hopefully you'll see
    the error and be able to point it out to me?
    I have a movie clip on the stage that has different
    information in different frames. I want to make it so that when
    someone rolls over the button, the movie clip fades in and goes to
    the correct frame to display the information.
    With this setup the way it is below, I keep getting "Warning:
    3590: void used where a Boolean value was expected. The expression
    will be type coerced to Boolean.
    I know where the problem is happening, "function
    XXX(event:MouseEvent):void {navigateToURL(XXXweb)}"
    How can I write this differently and eliminate this problem?
    Thanks,
    Jeremiah

    I'll give that a shot, thanks!
    A follow up question to that one, is there a way to make it
    so that I can have one rolled over function applied to several
    buttons / frames in the movie clip? This movie clip has 50+ frames
    in it and if I could reduce my coding, it would make life a lot
    easier.
    Thanks,
    Jeremiah

  • Difficulties with movie clips and frames

    This is really irking me.
    I am extremely new to Flash so please bear with me. I am assuming that this is a simple, easy to fix problem that I am having. I have Adobe Flash Professional CS5.5.
    What I am trying to do is display a sequence of images after other movie clips stop playing.
    The image sequence itself does what it is supposed to and works properly, and the other movie clips also are successful. However, whenever I try to put the movie clips for the images in frames or keyframes, the beginning movie clips only play part of the way before the images show up. This happens even though the images' movie clips are on frames/keyframes (I've tried both) after the other movie clips.
    The movie clips that are supposed to play first are each on a separate layer and there are two of them.
    The first layer is called "tree" and the second is called "text"
    The tree layer has a 45-frame gif animation that I have turned into a movie clip. I have created a motion tween and changed its alpha so that the gif has a fading in and out effect. I also have it so that it stops replaying once it reaches the last frame. I am using stop(); for this.
    The text layer has a 40-frame gif animation that I have also turned into a gif. This gif is also a movie clip and also has motion tween. Its alpha has also been changed.
    Both tree and text play together successfully and how I want them to.
    The sequence of images is three separate images, each a different layer, that fade into eachother. These images are pngs, therefore they aren't gifs nor do they have their own frames.
    The bottom layer is called floor1 and has frames 1 through 50 of motion tween and alpha adjustments fading the png image. The image is a movie clip.
    The layer on top is called floor2 and has frames 51-100 of a different png image fading.
    The very top layer is called floor3 and has frames 101-150 of yet another png fading.
    The images are successful in doing what they are supposed to.
    Layers tree and text are one fla file, and layers floor1, floor2, and floor3 are a separate fla file.
    When I copy the frames from layers floor1, floor2, and floor3 into a keyframe after layers text and tree, they transfer properly, but when I test the animation, the image sequence shows up a lot sooner than it is supposed to, interrupting the movie clips on the layers text and tree. I have tried moving the floor# layers' keyframes farther down the timeline, but then the other movie clips just stop.
    In the fla file with layers text and tree, I've imported the gifs into the library and then put them onto the stage.
    In the fla file with the floor# layers, I've imported the pngs into the stage.
    Here's what the text and tree layers look like:
    Here's what the floor# layers look like:
    The rest of the frames for the floor#s...
    So, I thought that the problem was that I needed to delay the image squence. I looked around and found no code or anything for that..
    Afterwards, I thought that it was because I had imported the tree and text gifs to the library before putting them on the stage.
    I opened a new fla and imported the "tree" gif straight to the stage.
    I figured that this should work because then it would show each of the individual frames in the movie clips, which it doesn't do in the above pictures. By importing the gif like this, it does show the individual frames. I've tested this with the image sequence and it works fine. But I have a problem with this method too..
    I select all of the frames for the gif to convert into a symbol, so I can add a motion tween and mess with the alpha. However, only the last frame is converted into a movie clip. Well actually no... Only the circled frames below are turned into the movie clip. Even when all of the frames are selected.  This isn't very helpful because then I can't change the alpha for the entire gif nor can I create a motion tween without getting a message saying that the motion tween could not be applied to all of the frames.
    Here's what this version of "tree" looks like.
    And the frames continue like so until 135.
    The frames that are turned into the movie clip are circled below.
    If I can solve the issue that I'm having with the tree shown in the two pictures above this sentence, then I can display the movie clips and image sequence without a problem. It wouldn't be quite how I had intended it to be, but it would be successful and would still work.
    If I can fix the problem with the image sequence showing up to early, and of the tree and text movie clips being cut off, then this project would also be successful and it would be how I had wanted it to be.
    If you need clarification, let me know and I'll explain something better.
    I am not willing to provide a download link in this forum for my fla files, but I can email them to you if you would like a look. I just don't want someone to be able to find them and take them by doing a google search.
    I have uploaded two swfs though.
    The first is of the tree and text layers/movie clips working as they are supposed to. The second is of the image sequence (floor1, floor2, floor3) doing what it is supposed to.
    Text and tree: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg1.swf
    Floor1, floor2, floor3: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg2.swf
    Notice how at the end of the text and tree swf, when the text stops the thing in the background keeps flashing. If that can keep flashing WHILE the images appear, then that would be great.
    TL;DR: I want the floor# flash to show up after the text and tree flash but I keep having problems and nothing I try is working properly.

    Very concise question, appreciate the screenshots. One thing that motion tweens don't always show very well is keyframes. Let me clear a few things up and see if it helps.
    Go back to what you wanted to do originally, which is copying the frames from one document to another. This is perfectly fine and to clear it up, it will also copy any library elements (images, clips, etc) that are required to copy those frames for you, so you do not need to import them yourself.
    To successfully copy frames (not symbols), select the first frame of the frames you want to copy, hold shift and select the last frame (alternatively double clicking anywhere in the blue motion tween should select it all as well). Now right-click and "Copy Frames". Now go into your new document, select a frame, right-click and select Paste Frames. You will see the same frames copied over, the blue representing the tween and keyframes came with it and you finally will notice all your images/etc were copied into your library.
    Now is a good time to manage the library clutter that was just copied in, if you're a clean freak like me.
    This process is the same, as you tried, for the other documents you want to copy in. If any resources match in name then Flash will ask you if you want to "overwrite" that library item. If you do that,  you will break one of your previous animations. Make sure that's not the case.
    The common gotcha here is not knowing how to slide frames over properly. If overwriting isn't the issue, this is what I suspect your problem is and as you expand/contract the timeline the keyframes aren't going with you.
    For example if I import 2 clips with fade in/out and move keyframes as you did I'll get something like this:
    Now moving them over I would be very careful to select all of the frames I want to move via the methods above. Click the first frame, hold shift and select the last frame, or double-click anywhere in the middle of the blue. The selection of frames:
    Now I simply drag my selected frames to the right, notice the keyframes stay as they should (the black dots):
    The animation plays as expected.
    Lastly I'm not sure if you've ever used the panel but you should really get used to the Motion Editor. This gives you control over easing as well as shows you an in-depth view of the keyframes that exist in a selected motion tween.
    At first this panel may look complex but it simply represents the basic properties you can animate. Any more properties you animate can be added in here. I moved the X, Y and Alpha properties of my object. So you can see over the frames 30-60 what I did. You can also adjust basic easing here.
    If your animations don't look correct you can select a motion tween, open the motion editor and verify the keyframes look correct. Scrub the timeline and look at the values you're interested in. Alpha for example, for you.
    If you don't see any keyframes when you scrub the timeline, you moved your frames over incorrectly and the keyframes probably exist in a different place and therefore it appears incorrect.

Maybe you are looking for

  • ITunes was unable to load data class

    I just bought my first iPhone today and when I get home and connect it to my computer iTunes opens up but it takes forever to load (thought it froze) then after 5mins it finally loads and says "iTunes was unable to load data class information from Sy

  • Value Field in COPA doesn't updated in Pricing Procedure

    Dear SAP Experts, I have a problem about Value Field in COPA. Why the Value Field in COPA that have been assigned to Transfer of Billing Document for Statistical Condition Type doesn't updated in Pricing Procedure (SD) when Billing Posting? Any sugge

  • Lost photos (palm tree of death?)

    Using iPhoto 9.4.2 Was just moving and organizing photos when iPhoto crashed...when it reopened my recent imports were all gone.  In their place is a annoying grey palm tree image.  What can I do to find the photos? Thank you!

  • Screensaver  files aren't recognized

    I just loaded all my files from my laptop (PB G4) via firewire to my new imac (G5). I now have a glitch in the screensaver on the imac (not on my laptop). In system preferences for the savers with slides (Paper Shadow.slideSaver) it says it is lookin

  • T42 DVD/CDRW Combo drive not reading CDs. System Folder Icon changes. XP Pro SP2.

    Device manager shows correctly 'Ma**bleep**a UJDA755zDVD/CDRW'. System Folder icon shows 'DVD/CD-RW Drive (D' If I insert a CD, the System Folder icon changes to 'CD-ROM' and displays 'Please insert a disk into drive D:' If I insert a DVD, the System