bringing a video clip at the top of the order of the layers on mouse.

I have 3 video clips on the stage in separate keyframes: mag1, mag2 & mag3

trying to bring each mc on mouse up.

mag1.addEventListener (MouseEvent.MOUSE_OVER, up, false, 0, true);

function up(evt:MouseEvent):void
{
setChildIndex (MovieClip (evt.target), numChildren-1)
}

GETTING THIS ERROR.

ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/setChildIndex()
at skate_fla::MainTimeline/up()

Thanks in advance for the help!

It is possible, you should use "evt.currentTarget' instead of"evt.target"I think that if you use instead of MOUSE_OVER ROLL_OVER it wouldn't matter that you used.

In addition, you can simply use addChild() to bring an object to the top...

function up(evt:MouseEvent):void
{
addChild (MovieClip (evt.currentTarget));
}

Tags: Adobe Animate

Similar Questions

  • Clicking on a video clip selects the entire clip, rather than the range.  I did the update and it still happens.  Help!

    Problem * by clicking on a video clip selects the entire clip, instead of cuisiniere.* *.

    I restarted my computer like new.  Lost the iMovie app.  Re downloaded in the App Store.  Now I have a crappy iMovie on the App Store application.  Then I made, I got the updated version and I did.  Always update does not resolve the problem.  I'm sucking in a hole because I need to make new videos for work and I can't.  In addition, I'm too broke to buy Final Cut.  In addition, all apple stores have a waiting list of 5 days before they see you!  Thank you Apple with a 6 bites taken out of it!

    I had a similar problem and it was driving me crazy. I think you press and hold the 'R' key now to select a range, otherwise, it will select the whole clip. I think it's a goal a feature and not a bug? Hope that helps!

  • My computer crashes whenever I try to play a video clip from the internet. I have to disconnect the plug to escape. What can I do? Thank you

    My computer crashes whenever I try to play a video clip from the internet. I have to disconnect the plug to escape. What can I do? Thank you

    There is a lot of noise from speakers as well.

    Disable the hardware accelerator or install flash player 10.

  • How can I put my own description of my video clips in the 'Cashier' section, which limits me to include my meassage under the video clip?  By choosing "General" desription, ther 'Party.  This isn't a freedom of choice.

    How can I put my own description of my video clips in the section 'create '.  In the "Général" section, it is only 'part '.  My topic is completely different.  I want to choose my own description, not the one that is given to me.  There is a blockage of the freedom of expression.

    It is not clear what you're asking.

    Where is the section 'Create', you are referring?

  • I can't import video clips in the timeline. Import clips from video al chronology of first CC,

    I have a problem. I can't import video clips to the timeline, it is important only audio. I have hand appears locked. How should I do? Thank you!

    I have a problema. No puedo import clips from video al chronology of first CC, solo importa el audio. Me appears the mano locked. How solucionarlo? Gracias! @

    Hi Albert,

    Please visit this link:

    FAQ: Why no audio or video will not at the track where I let down?

    Thank you

    Ilyes Singh

  • Cannot change a video Clip with the pen tool

    Hello

    I imported video and audio clips to the first, but I can't edit video clips with the pen tool. No line appears on the clip in the timeline panel. However, the audio clips are great and I can use the tool pen on those. Why no line does not appear on the video clips? How to make it stand?

    Hey Lee,

    do not understand what you mean. On video clips in the past the line seems just when I put the video files in the timeline. I don't see them now, how can I get this line back so that I can manually disappear with the pen tool?

    With the extended track, go into the settings menu to display timeline (the key) and select "See the video keyframe."

    I hope this helps.

    Thank you

    Kevin

  • How to slow down the sound from a video clip to the exact time (keyframes) and values?

    How to slow down the sound from a video clip to the exact time (keyframes) and values?

    I used the timewarp, but the sound is not affected.

    It is to be expected. Only the native time remapping affects sound, but given that EI is not an audio processing application, the quality is terrible. You must use the hearing or a similar program.

    Mylenium

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

  • limit for video clips following the mouse

    Here's my ACE...

    myInterval = setInterval(KBMOglobal,15);

    function KBMOglobal () {}
    KBMOglobal1._x = (KBMOglobal1._x - _xmouse) / 10;
    KBMOglobal1._y = (KBMOglobal1._y - _ymouse) / 10-2;
    }

    OK, so my video clip follows the mouse around, with a slight delay and the y axis is slightly lowered. the scene of my film is 380 x 640. someone has suggestions on how to create a border, equal to the size of my stage, which leaves no film clips that follow the mouse to extend to the beyond? Does still make sense? Basically, I'd like to as video clips to follow the mouse, the stay of entire film visible on the scene clip. due to the positioning of elements on the stage which initiates this function, I must only consider the width of each clip, which fortunately is a constant = 200. Does this make any sense? Let me try this one more time...

    How to set the above function for the clip, KBMOglobal1 (which has a width of 200) remain in the horizontal limits of the scene (which is 380)?

    Thank you for your time and all members of this forum who was very helpful with all my questions in this project so far, yall rock!

    Quote:
    Posted by: NickTheNameless
    It's almost works perfectly, however I need to adjust the limit of axis x. for some reason, the video stops after the mouse when it comes to halfway on scene, horizontally.

    could you please be so kind as to explain what your script is doing? because I'm not a fool, I realize that I could probably replace 380 to 760 (double the width of the scene) and it works as expected. However, if you could spare the time to explain what the following two lines do, step by step... I'll give you my first born...

    KBMOglobalGeneralCancelDispatch._x<0?KBMOglobalGeneralCancelDispatch._x=0:KBMOglobalGenera>
    KBMOglobalGeneralCancelDispatch._x > 380 - KBMOglobalGeneralCancelDispatch._width? KBMOglobalG eneralCancelDispatch._x = 380 - KBMOglobalGeneralCancelDispatch._width:KBMOglobalGeneralCancel Dispatch._x;

    Thanks again for your time!

    do you know? : operator? It's as if... else... statements,

    When we say:

    somethingIsTrue? do1(): do2();

    This is exactly the same direction as:

    If {(somethingIsTrue)
    do1();
    } else {}
    DO2();
    }

    Now, we look at this line:

    KBMOglobalGeneralCancelDispatch._x<0? kbmoglobalgeneralcanceldispatch._x="0:">

    It is same as

    If (KBMOglobalGeneralCancelDispatch._x<0)>
    KBMOglobalGeneralCancelDispatch._x = 0
    } else {}
    KBMOglobalGeneralCancelDispatch._x
    }

  • First Elements 11 - I have a problem with pinning of the video clips in the timeline.

    Hello

    I have a new Prime Minister 11 elements.  I'm working on a video with a narration track project.  Because I have to build animations in photoshop that go with the narration, I'm not editing in a way liner.  When I insert clips earlier on the timeline animations, it tends to move the clips of animation to the top or to the bottom of the timeline and sometimes he's trying to cut my narration.  Is it possible to pin the animations to a specific timecode on the timeline, which then will allow me to insert the live action clips inbetween with out having to sycn are ' animation to the narrative.  In older versions of the first I used years ago (and FCP), it's the titles of easy locking.  I know that you cannot lock a track in PE11, but is it possible to pin the video to the narrative?

    I too if I have to 'resync' animations to the narrative is there a way to select the entire animation (which is located on several tracks) to return it to its place compared to the narrative?

    Thank you.

    Unfortunately, pre has never added the ability to lock a track (something that PrPro and something that I and many others, have asked), so a change in workflow could be the best.

    For what you describe, I would just edit video 1 and Audio 1 (or according to the following you use), and then add your animations on 2 video tracks (or any video track above your edited Clips). All that is on a video track higher, it will be seen, regardless of which is lower than that, except if we adjust the opacity (to see through the Clip on the video track above), or they "drill holes" in this upper Clip, say with Track Matte Keying, or via a channel Alpha, or the Garbage Matte.

    Your animation will be seen and your Clips edited, weaker will not be made, other than that they are not visible.

    Another method would be to make an Insert Edit where your animation replaces a corresponding number of images in the Clip to which you drag, on the same video track. Just hold down the CTRL (Cmd on Mac key) and drag your animation to the place you want to so he can be at the Top of the clip here. Their mounts will be replaced by your animation.

    A third, if you want full "lock" video and Audio, would be to export/Share/publication chronology of the project, and then import the output file (it will no longer Clips, but will be a long Clip), then add animations, or whatever, by using one of the two methods above.

    Good luck

    Hunt

  • Unable to access video clips of the external hard drive

    I've been using PE9 for six to nine months.  My normal workflow was to create a separate project on a 500g external hard drive. This file contains all the video clips (.mov files) and the Project.PREL file.

    This great worked until recently.  I can bring is no longer the .mov clips in the project schedule or sceenline from the hard disk.  By using the command 'Get Meda' a 'unfinished' file is downloaded, and when I try to drag the clip to the timeline, the program asks me where the file. Something has changed - and I don't know what or how to fix it.

    PRE_Project.png

    The image above comes from a project where I'm having this problem.  The clips that have images in them are downloaded from my portable hard drive.  Others come from my external hard drive - and those are the ones that the program cannot "locate."  That's what I'm trying to figure out how to fix it.  Yet once, this suddenly started happening - so somehow I changed something, I think.

    The same clips can be imported when they are stored on my hard drive.  When I try to import them when stored on a video card, the video importer PRE opens and I can bring them to the program in this way.  However, these are not viable alternatives for me.

    So what has changed, I can't determine.  Is there a setting, codec or something that I can study that this would cause? As I said, this just started happening?

    In addition, some previous projects to open correctly and some may not find the files - even if they are all stored on the same HD 500 g.

    Help, please.

    This ARTICLE will give you some general tips on editing of external HARD drives.

    My first guess would be just like John T - outside drive letter has changed in the operating system.

    Good luck

    Hunt

  • Dynamically place video clip on the corner and the overall position with a mouse click (button) that is always running.

    Anyone know the code to find the global positioning of the coordinates X and Y of a click of a button which turns constantly,
    then the code when you click the button, it displays a clip on the top-(position de x et y lorsque vous cliquez dessus) to the angle that you clicked (so the buttons are always rotating so others can click on them where they are)

    to explain the context, I am designing a model to the top of an interactive round table
    When someone approaches her and click on one of the buttons that move, it reads where the person has clicked on it and open a new box (video clip) where they have clicked on it (on the corner) so is not backwards if you're upstairs.

    I have included my .fla file that shows the four navigation buttons and a small diagram
    explain what I'm trying to do.

    you don't have a class named MethodAnimalMC.

  • Why then, t I find video clips on the web page? Why do I not download them?

    All because I downloaded Firefox, I can't watch the video clips on a Web page, they must be uploaded to downloads of Firefox and then played on Real player. It's very embarrassing. How to get back to the way it was before you download Firefox?

    Please check if all your plugins are up to date. To do this, go to the Mozilla Plugin Check site.

    Once you are there, the site will check if all your plugins have the latest versions.
    If you see in the list of plugins that have a yellow button to update or a red button update now , please put to update these immediately.

    To do this, click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps in the installation process.

  • Format for playback of video clips from the SD card

    I'm putting a few video clips and a coupl youtube movies on my SD card, to show to friends this weekend.

    And can get the map SD in the video folder but guessing must be some form of play.

    Does anyone know what format would be, and if there is a bike converter? otherwise I have a lot of computer\

    Thanks for any help, I haven't tried it on the website, no luck

    Harold

    PS... have updated to the latest software I think

    MP4 and m4v are the most common formats that people use. Regarding the converters - bike has a few tools, but I've found that more 3rd party tools that people have are faster and more efficient.

  • Impossible to play a video clip of the flash player

    I had 2 video clips recorded on my USB key, (I was asked if it had to be either windows or mac) I said windows but when I click on the video it says it can not play, but the solution Center has not detected a problem. Any suggestions?

    It is a wmv file. I downloaded what you recommended, but he won't play again although he repeats to me windows media player cannot play the file.

    =====================================
    Apparently the. WMV file is damaged in some way.

    Could you ask the sender to send another copy?

    If it's very important... the info on creating
    a new version of the. WMV file is maybe worth a visit:

    In many cases, I found that convert a. WMV file
    to the. WMV format could produce a new version of the
    compatible file. Sounds redundant, I know, but it
    can work.

    Microsoft Expression Encoder 4 can perform the conversion.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601

    +++

    If you want to try Expression Encoder 4 following
    info can be useful:

    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    Left click (highlight) the. Left and WMV file, click the Open button.

    You will see the file in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

Maybe you are looking for

  • Icon for Windows 8.1 that allows me to see all of the programs and the previous documents, computer etc.

    On my Windows 7, there is an icon in the lower left corner which is round and has 4 flags inside.  Red, green, blue and yellow.  When I click on this icon, I see my computer, all programs, music, Control Panel documents and I can then click on one of

  • Blue drop-down lists, function constants?

    Hello. I'm new to labview and I'm getting a hang of things, but I still don't understand these blue drop-down lists that I see everywhere. They seem to be the case, but I thought I saw somewhere that they are constants any. What are they and how are

  • How to paste graphics side each other in an e-mail

    When I paste two graphics in an e-mail (Windows Live Mail) the second takes its place UNDER the first. HOW can I get the second to sit next to the first?

  • Search AppWorld

    Hello I have a question about search in application of the AppWorld Playbook. So a company where I work has released an app. He calls games for children: puzzle shape. If I use "puzzle" as a search word that the app is not displayed in the search res

  • BlackBerry Smartphones strange icon?

    Can someone tell me what the hell this is supposed to mean on my Curve 8520? No picture? Here is another download: http://twitpic.com/b0yjp3