Nesting of one video clip in another with actionscript

I use attachMovie() put a clip on the stage and I would like to nest in another clip, I already have on the scene. How would I go to do this? The clip I want to nest in it is called "background" and I tried background.attachMovie but that doesn't seem to work. What is the right syntax?

:

Tags: Adobe Animate

Similar Questions

  • How do I share one video clip to another?

    im doing a drop and a drop of game and I would like to share one video clip to another...

    the first clip is draggable mc, when it hits the drop zone, that I plan to put an animated version of this...

    from now on, this is the code I use...

    If (eval (this._droptarget) == pitsel_mc) {}
    This ._x = this ._x;
    This ._y = this ._y;
    } else {}
    This ._x = start1x;
    This ._y = start1y;

    }

    as you can see, after leaving the mc in the drop zone, the mc just stayed on his position...

    Is there a script to exchange it for an animated version of the current mc?

    I hope you guys could help...

    use:

    sugar_mc.onRelease = function() {}
    this.stopDrag ();
    If (eval (this._droptarget) == pitsel_mc) {}
    var mc:MovieClip=attachMovie("sugarpour","sugarpour",getNextHighestDepth());

    MC._x = this ._x;

    MC._y = this ._y;

    this.swapDepths (getNextHighestDepth ());

    this.removeMovieClip ();

    } else {}
    back to start pos
    This ._x = start1x;
    This ._y = start1y;
    }
    };

    p.s. Please mark this thread as answered, if you can.

  • Need help buttons toggle, nested set of video clips!

    Problem # 1

    I have a clip I want to trigger it with a toggle button, inside this clip I have various video clips in different layers that should play at the same time.

    The problem here is that when I press on enter and watch the clip on the stage, each layer plays but when I do the film do not play a few layers. How can I make all play?

    Problem # 2

    I did a toggle button on a clip, now I need to be able to do things more:

    1. the inactive button after which is clicked

    2 - Added feature to it so that it plays a nested video, how do I code? I have to add an event listener or a mouse event?

    3-make it stay flipped until another button is clicked:

    When a button is activated, it will remain pressed until another button is clicked then it releases automatically. (is it even possible?)

    Thank you!!!

    Problem #1

    If you have some movieclips in layers, order them to play

    Problem #2

    1. remove the event listener

    2. you must add code to say what a nested video should play

    3 keep the identity of the toggled button and have a function that resets using this variable

  • Collision detection / video clip after another

    I'm working on a shooting game space horizontal scrolling, and I hit a snag: the clip of rocket has two nested layers, for the ship itself and the other for a cycle of animation of the flames out by behind.  The ship loses health when it collides with an enemy ship, but given that the two bodies of the ship and the flames are part of the same clip, the ship, of course, also loses health when the flames hit an enemy ship.  What I'm trying to do, is change it so the fire will destroy the enemy ships, but the player loses all health.  My first inclination was to separate the flames in their own clip and simply attach the ship - that is to say, the clip of flames is basically apparent aboard the ship, on a layer below, but is controlled by a separate script as the ship itself.  The flames would be aligned with the ship, and when the ship is moving, the flames are moving.  Pretty simple.  So far, I have found no effective way to do this.  I tried alternatives (masking, etc, etc) nothing works.  I work in Flash 8, AS2.  Each video clip has its own class.  I can view the code if necessary.  Any advice, or simply a point in the right direction would be greatly appreciated.  Thank you!

    use:

    }
    If (this.hitTest (_root.ship.shipBody))
    {
    If (_root. Ship.Shield._visible is false)
    {
    _root. Ship.updateHealth (-20);
    }
    explode();
    }

    If (this.) HitTest (_root. Ship.shipFlames) {/ / assuming shipFlames is correct}

    explode();  Assuming you want the enemy to the discovery of the touch of flame

    }

  • IPhoto to my Macbook Pro doesn't let me play video clips (usually taken with iPhone). I get a message: "Error OSStatus-54."  Anyone know how to fix this? Thank you!

    IPhoto to my Macbook Pro (old version) won't let me play the video clips more (it was). They are mostly of clips to iPhone. When I try to open them I get a dark white page with an error message:

    "Error OSStatus-54".

    Someone has seen this and someone has suggestions on how to fix it?

    It's so frustrating because with most of these clips, that is the only place where I stored them - some clips I get from family members as well... (In iPhoto, I see a picture of the first frame of the clip, but the clip does not play). Even when the new version of iPhoto appeared on my computer, my old version slept and I continued to use the old because I liked it is better (more familiar).  The videos were still on the old version when I got the new version, but they stopped play several months ago. Help! Please? Thank you!

    What version of iPhoto? The operating system?

  • Problems with video clip inside another MC button

    Hi all
    So I solved a problem earlier thanks to this site, but she has created a different problem. I could find a way to get an external text to load into a text inside a music box. However, the problem is I want to have a series of buttons also inside the MC which will change, delivery, the text in the (loading area in the text to another file). I'm running problems, however, because I can't figure out how to get the movie clip buttons to work.

    A short brief on the installer. I have a master.swf that loads in splash.swf (menu animation and splash) and about.swf (a paragraph loaded when you click on 'about' in the navi bar). When about.swf opens, I got a piece of film clip and text and the submenu appear after 20 images.

    This is the code that I placed on frame 1 of the about.swf:

    [PHP] boxmovie.btn_about2.onPress = function () {}
    trace ("button has been pressed");
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    } [PHP]

    You can download the files
    goldinroute.com/MacGregor/Help.zip

    Any help would be appreciated!

    I guess what to expect, I hang on the file... OK, did you give the button the instance name 'more'? ("btn_about2") is not there in the file I have. Then, copy the following code must be IN the MC boxmovie, guess where... of 23 frame, because you cannot assign code to an object that doesn't exist or has not been instantiated, the chronology. so it should read:

    btn_about2.onPress - function() {}
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    }

    (btw - if you reverse the way in which you name the inclinometer, Flash will give you a list of the methods of the class, when you type a '.' later, as in "about2_btn" to instead, just a thought for you, even with as "boxmoive_mc" for example ;))

  • Video clip of another control

    I have a deeply nested clip, acting as a button, and I've had problems using actionscript to control another clip movie nested within another part of the document.

    I tried some ways such as:
    root. MySite.IndexText.gotoAndStop (20);
    MovieClip (parent.parent). IndexText.gotoAndStop (20);

    .. .but also throw errors at me and won't let me change the framework of the IndexText MC.

    The movie clip is:

    Root

    -MySite

    -Navigation

    -My button (requires script)

    Root

    -MySite

    -IndexText (needs controlled)

    I'm relatively new to Flash if my methods may not be perfect. I'm doing something wrong here?

    There is therefore no indexMC when your code runs.

  • Duplicate video Clip on another level?

    I'm trying to take a clip on level 8 of my film and place a copy in a purchase order that loads on level 10 and I can't make it work. Here's my code? I tried the bitmapdata too and I can't make it work either.


    duplicateMovieClip ("_level8.designStage", "imageHolder2", 99);

    I am creating an application design and using masks and the bitmapData will work for printing. I would just create a jpeg with the bitmapData class and save and then reload it into the order form.

    Bottom line is that I need this clip to appear in exactly the same higher so I can order it and then put the image in the basket as well.

    It was not a slam to your abilities, it seems to me that every time I bring it up, which is the choice that people go to. Anyway, Yes, you can move the 'window' of the draw using a matrix. You can move, scale, and or turn it in fact.

    The code below should point you in the right direction. But you will always have the problem that if _level10 does not exist, you will be able to simply attach a bitmap image. You will need to load the content in there first to create. There is no constructor for _levels!

  • How can I take video clips or another project for my project

    Hi guys

    I have need of a few buttons I did in my last project in my game, but I don't know how

    Thank you

    Suppose that just copy > paste it draws

  • How can I list the instances of video clips if the clip that I am referencing is nested?

    Hello world

    It's me again and I am running into a problem. So I have this clip which is nested in several video clips. I mean Flash to perform an action when this clip from movie hits another video clip in the main timeline. It's just a collision for a game detection using the hitTestObject code. I was thinking of using MovieClip (root), but that won't work because it is so nested. Can someone help me? I would like to know if I need to explain more. Thank you!

    -DJ

    I didn't ' think I can help you without having to upload your file to see what you're doing and I don't download and fix the files unless I'm hired.

    Maybe someone else you download your fla and you help.

  • How to disable some video clips

    I have several short video clips I shot with my camera GoPro assembled on a timeline. I would like to cut some video clips but not them all. How can I cut just some video clips?

    Thanks for the help

    Rchjr

    the alt (option on mac) key is a shortcut to temporarily circumvent the binder. so that you can select just the audio, not the video portion of the clip. you need not CTRL for this. You can also simply switch off binding using the menu button to do this, and then re-enable it later.

    to move to another audio track, you can select only the audio (using alt or toggle menu option) and make them drag to an unused track, as track 3 or something. then click on the 'm' to cut this track. There are tutorials without end and howto on youtube for the creation or one of adobe software. so feel free to look through advice as well.

  • problems creating video clips

    Here is my code:

    for (var i: Number = 1; i < = nTotalPaintings; i ++) {}
    mcPaintings.createEmptyMovieClip ("mcPainting" + i, mcPainting.getNextHighestDepth ());
    trace ("for loop #" + i);
    mcPaintings.attachMovie ("idLoader", "mcLoader" + i, mcPainting.getNextHighestDepth ());
    mcPaintings ["mcPainting" + i] ._y = 0;
    mcPaintings ["mcPainting" + i] ._x = (i - 1) * 700;
    mcPaintings ["mcLoader" + i] ._y = 0;
    mcPaintings ["mcLoader" + i] ._x = (i - 1) * 700;
    trace ("mcLoader" + i + "has a _x to" + mcPaintings ["mcLoader" + i] ._x);
    }

    Going through line by line in debug mode, the createEmptyMovieClip() and attachMovie() methods do their job... but as each movie clip is replaced by the following. In the end, instead of having the 26 footage, I only have 1. I replaced one video clip with another 25 times!

    what I am doing wrong?

    Thank you!

    is mcPainting (without a final're) typo in mcPainting.getNextHighestDepth ()? What should we not mcPaintings.getNextHighestDepth ()? and it's better have a wide enough scene and very little nTotalPaintings, or you won't see much of the movieclips on stage.

  • How can I mix two video clips where they join together in a movie?

    Hello wonderful movie spirits, decision-making

    I'm working with Adobe first 6 on a Windows 7 computer.

    How can I mix two video clips where they join together in a movie?

    I know how to place two or more video clips together in the same movie, but how can I give them a bit of a mixture of just where they join?

    I have a PDF manual and the instructions of the built-in web browser.  In the instruction manual to the "Chapter 7: layering and Compositing", he talks about the transparency of a video sequence and I understand that... but I don't want to do one or the other video clip transparent anywhere except where the two video clips are joining with maybe a bit of overlap.

    I would like to make a little blur right where the two videos are joining the middle... is it possible?

    Thank you

    Digi

    AHA that kind of mixture.

    6.5 have not used in a time loooooooong.

    It's so memory, hope I get this right.

    Together the two each other clip

    Make a hidden in Photoshop and overlay it on the two clips.

    Go to the transparency settings and the value of the top 2 video clip touches Alpha.

    Screendump to mast:

    The right side is black just for the forum, but should be transparent.

  • All my video clips display a generic logo in thumbnail view when they used to show an image of the film.

    HI - all my video clips (avi) show with a generic logo on the view thumbnails - when they used to show a frame of the video image.  Do you know how can I restore this view?

    original title: thumbnails

    Well I don't know how it works - but I just moved my videos folder in the "My videos" folder and all the icons appear as images!  I don't think that these files have different properties do?  Weird - but there you go.  They work very well in my photos, but not in my documents...

  • Why the video screen is split with two identical images?

    After a clean reinstall of Windows XP and Internet Explorer 8, Flash Player 11.6.602.180 has been downloaded.  Video clips now play with the screen split horizontally by a green line and the identical images above and below, compressed vertically in function.

    Lotus14

    Most likely, you are using an outdated graphics driver; See http://forums.adobe.com/thread/945765

Maybe you are looking for

  • OS update 10.11 El Capitan, causing the crash MacPro

    MacPro (mid-2010) 2.8 GHz Quad-Core with 32 GB of RAM ECC DDR3 and an OWC SSD 480 GB Accelsior, AMD Radeon HD 7950 graphics card. I tried to upgrade 10.10.5 to 10.11 three times with the same result - startup gets about 80% of fact and accidents with

  • 2 directional variable

    Hello Can I set a variable directional 2 (indicator and control)? I am trying to insert data into a digital waveform and extarct this wavefrom and transfer data It's assistant Daq (defined for digital output). Is there another way to achieve this? Th

  • Control of the ring and structure cases

    In my control ring 3 or more elements are there and is connected to a case structure each article with each image. If I select the second element then the case structure must also run well 1 & 2 frames. And if I select the third point, then the busin

  • HP Pavilion 15-e021nr: need drivers

    So, my old hard drive broke and I got a new. I decided to install windows 7 instead of the OEM 8 win (thought it was a good time to finally do that I hate to win 8). I can't find the drivers for this model on the support page, any help? Where can I g

  • not full program registration

    my media center does not record the whole program that I ask him to record using the guide.  I have worked in the past, but now it does not work, do not know when it has stopped working.  I even said to record up to an hour after the guide stop time.