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.

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.

  • 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

    }

  • 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 ;))

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

    :

  • 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

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

  • problem of collage of video clips from one film to another file

    I use the Director of microsoft with Windows 8.1.  I have many movies at home that I edited various movie maker project files.  I would like to take some of my favorite clips of different projects and paste them into a new project.

    This has not worked for me.  That's how I tried to do.  I open the project file with clip I want to copy and paste.  I clip on the clip and select copy.  I then open the movie maker project where I want to paste this, and I click on the Clipboard to paste highlighted at the top left of the screen.  When I do that, I just get some sort of error noise ding, and then function to paste the Clipboard is grayed out.

    Anyway, how can I copy the project one film to another machine?

    Thanks much for any help.

    Sorry to post what I finally understood how to do this!  In case anyone else has had problems, here's what I discovered.

    To paste me a clip from one file to another, the destination file should have at least a clip already on it.  So what I did was import a video in the file as if to edit it, and then I managed to stick a clip of another movie project in this file, place the new file alongside the existing clip.  I guess you must have at least a clip holding a place for the paste function to work.

  • In Movie Maker 6.0 can a video clip (with mute) be spliced in another video clip so it seems to work with the original sound of the first video?

    Hi, I put a video together for my MOM to 70th and one of her friends has provided a video clip of her playing a classical piece on the piano for several minutes.  I would like to cover this clip with other video sequences (landscapes, etc.) whereas the way piano since the main video track in the background.
    I tried to let fall the piano video file directly in the audio editing panel and then cut a second 20 segment in the video editing and insert a 20 second video (mute) images of landscape. However, the piano audio from the first video stops as soon as the strike chronology inserted piece landscape and picks up again when it ends, even if the audio scenario shows the audio piano continuously?  Am I missing a step or is this not possible?   Thank you very much.

    It should work quite as much as you described in Windows Movie Maker 6.0 (WMM 6.0), then maybe there is a step that is missed.  Let me describe how I could do and see if there's something you overlooked.

    First of all, I assume that you have already imported the clip of piano and your other clips of landscape in your collection then you can drag the there where necessary.  First, drag the piano music to the track Audio / Music in the timeline panel.  Note that if you have your video extended timeline, it will show video, Transition & Audio, but you want to get off- below that, to the Audio / Music , to follow.  At this point if you play your 'film', you should not to see any picture but just to hear the sound of the piano.  You should also only see a waveform on the audio / music.

    Now you can put anything you want on the video track.  Let's start by putting another copy of the original video of piano, but this time on the video track.  If you have developed the video track (to see the Vidéo/Audio/Transition) you will see the video piano and its associated audio waveform.  However, in your case, since you already have the audio separated, you want to cut that his partner.  Right-click on the Audio (attached to the video) track and select Muteor use the menus (Clip > Audio > Mute).

    When you preview the project, you have synchronized video browsing with the original copy of the audio piano.  At the point in the video where you want to replace the video with another piano play, making a split (key M).  Make another split at the end of the section.  It is very import that select you the video track when you add new divisions and you have not also be divide the track Audio / Music .

    Important: You want to make sure this divide the part that has the exact duration as well as landscape images, you want to replace.  So if you have 20 seconds to add, you divide 20 seconds piano images.

    Right-click on the part of piano footage (video track) and choose Remove.  Then, insert the part of sequences of landscape (also on the video track) in its place.  Once again, you will have need put this added sequence muted landscape (Clip > Audio > Mute).

    You should now see and hear the piano play.  Without any change in the audio playback in the preview window should implement the landscape images, then returns to piano images.

    If you find that your project is not behaving correctly after these splits, but are you sure that you have followed these steps, it could be a problem with your video file types.  If in doubt, try to convert all your videos to .wmv format using something like Freemake Video Converter (freemake.com)

    In any case, I hope that you are able to achieve, because it is certainly possible.  Good luck and post back with further questions or information, you can have.

  • Why are the actual FLV Play Back wider than my video clip controls

    Hello

    I created a video clip renders as a wmv file.

    I then covered to FLV format with Flash Media Encoder CS5.

    When I import video into Flash CS5 using either / import of video files

    or by clicking on the icon of the source in the components panel read FLV

    the left and right sides of the component are wider than the video clip real about 20 pixels.

    Like the game, I would support controls to be of the same width as the video clip.

    Please see screenshot below-

    screenshot.jpg

    Hello

    Thanks for your suggestions!

    Looks like the problem was something to do with the settings I chose when you return

    my video clip in WMV.

    I exported the first Pro under Microsoft DV AVI video then converted

    It FLV in Adobe Media Encoder and playback component is now the same

    width as my video.

    Please see screenshot below-

  • buttons within a clip to control the same video clip?

    I'm trying to place inside a clip buttons to control the scenario of the clip even. This does not seam to work as buttons on the main timeline. When I play the movie the cursor does not turn in a helping hand and the rolloever affects only the kind of work. I read on command video with the buttons on the main timeline, but I need a button to change to half-way through the movieclip. I want to be able to jump to the inner planes, while in the outer section and vice versa. It would seem that this button would work in the same way within a clip as they do on the main timeline, but that doesn't seem to be the case. I use CS3. Scrip action 2.0 is selected, but I could change it to 3.0 if it would make a difference.

    Thanks in advance for the help.

    Save yourself some frustration and start with the basics in a simple example, rather than trying to involve the finished piece.  Create a movieclip and place a button on the inside.  Add a function to the time until the button is more behaves as you expect... that should signal where you hit a snag.

  • Access to video Clips of breast another Clip

    Hello!

    I have a few objects (video clips) on my stage on different layers, but all in the first frame of a layer. And now I want to access this video clips of breast another clip, which is also on the scene like the others.
    So my question is: How can I access this movieclips so that I can do, for example, < movieclip_outside > .gotoandplay ('in'); or something like that.

    Welcome, Tschouba

    If the intro is on the main timeline, you can reference it anywhere using:

    MovieClip (root).intro.gotoAndPlay ('in');

  • First pro does not control the properties of the video clip to match the sequence

    Hello

    I have a sequence in my calendar set at 1920 x 1080 and based on my understanding of the video clips, I place in the timeline should automatically be adjusted in cadence, resolution etc. I looked in my settings to see if an option to do this automatically has been disabled, but can not find it and the timeline is always insert Staples into their native format 1280 x 720. can you tell me what I am doing wrong? You can see in the screenshot that the video is narrowed down, thank you!

    22035973929_fc15bf3db3.jpg

    This dialog box appears only when you place a clip in an empty sequence. This is to help you create a sequence quickly that meets (or not) your footage.

    To do what you want, go to your Pro first preferences > general and select the check box for the default scale to the size of the image.

    Click OK.

    MtD

  • Place a video ON another video clip

    I have, I have two video clips in a window and want to know how to place the video clip has, in a small window, to the clip video b. I have two video clips in a window, but do not know how their bed by opposition ot have two show in small windows. Thank you

    reamonraynj

    What version of Premiere Elements you are using and on what computer operating system is running?

    So for now I will generalize.

    If you have the video on the video track 2 and video in the video on the Video 1 track just below, is that the video on the video 2 track you will see, unless there is a transparency in the video on video Track 2 file that will allow the video on the video 1 track to show through.

    So with regard

    I have two video clips in a window and want to know how to place the video clip has, in a small window, to the video clip

    a. Select the video to the video Track 2 and resize it down and reposition it.

    or

    b. use a PiP (Picture in Picture) that you drag in the video on video track 2.

    (These effects PiP is generally with the effects in the category of Presets).

    Please let me know if I have targeted your question. If this isn't the case, please itemize the information that I need to know to help you.

    Thank you.

    RTA

Maybe you are looking for