Events and problem of nested clips

Hello

I'm having the following problem with this navigation that I build. I am building a 3 tear to the bottom of the navigation, where each submenu button is placed inside the button. My buttons are actually just movieclips, so I nested movieclips structured something like this:

Button_1

-> Button_1_1

-> Button_1_2

-> Button_1_2_1

-> Button_1_2_2

-> Button_1_3

Button_2

Button_3

Each of the buttons has their own class with its listenerens inside events. What is happening now is that when I click for example on Button_1_2_1, I get it's event, but the event for Button_1_2 and Button_1. Initially, I fixed that by attaching a hitArea inside this movieclip events, but now I'm running on other issues and I was wondering that if there was a way to disable this option, so if you click on movieclip to Button_1_2_1, I only get the event for this one, is not parents?

Many thanks for any help!

You are welcome.

p.s. in the future, please mark helpful/correct responses.

Tags: Adobe Animate

Similar Questions

  • Event.Target and nested clips

    Hey all,.


    Here's my dilemma; I have a bunch of video clips in my main timeline with at least 2 nested clips inside them, MyMc.nested1.nested2 etc.
    I gave the top most video clips that rely on the main timeline instance names.
    In a document class that I created a private variable typed as an array and placed all these MC names in this table.
    I then loop through the length of the array and assigned 2 event for each instance listeners.
    Example:

    for (var i: uint = 0; i < _activities.length; i ++)
    {
    _activities [i] .buttonMode = true;
    _activities [i] .addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    _activities [i] .addEventListener (MouseEvent.MOUSE_UP, dropIt);
    }

    in the event pickup() is were my problem seems to be coming.
    In the microphone function, I have the following:

    event.target.startDrag)

    It seems to work, but only on the lowest nested movie clip... nested2
    I can use event.target.parent.parent.startDrag () and that seems to work... Except when I place an another movieclip in the second layer of the of the MyMC, if it is accidentally clicked, it will now slide on the stage.
    I tried to use event.target.mouseChildren = false, but that doesn't seem to work on the lowest nested object... nested2 as this seems to be one I'm clicking
    Is there something that miss me to say, click only the mc at a higher level, and then ignore all nested mc?

    Thank you

    Try to use: "event.currentTarget" and you can also set 'mouseChildren = false' on the clip you want to move (but what to put in a function init, not the mouse Manager).

  • Events of mouse and nested clips

    I have a movieclip that contains other clips, but the nested clips do not appear to detect mouse events.

    Through research, I found that only the parent can detect these events, but is there a way to move the parent video clip mouse click to children?

    I want to have a little clip. When you the reversal, it is moving towards the top, and then you should be able to click on other various things about it. When you deploy, he is moving back down.

    If this is not practical, what is the best way to keep a movieclip "attached" to a different scale, and without childing the?

    There should be no problem seen movieclips nested with coding mice which they are responsible, unless the movieclip containing also has mouse coding assigned.

  • Problem with the events and Movieclips

    Hi all.

    I got myself in a situation where everything was perfect with zoom events, keyboard events and drag-, click of the mouse.

    The project is:

    A movieclip with image sequence: original background.

    And other clips: also images sequence (png)

    They were all separate specific mouse events and all the zoom and key events.

    Now wen I click on the button with the movieclip to function, only the png image sequence is turning and the main mc is not.

    What should I do to rotate active both regardless of the mcs and main mc also png with these.

    Help, please.

    Thank you in advance.

    use:

    var mcA:Array = [garage_horizon_mc, garage_moss_mc, garage_ocean_mc, gutter_ocean_mc, gutter_horizon_mc, Audrey r_moss_mc, main_mc];

    for (var i: int = 0; i<>

    mcA [i] .addEventListener (MouseEvent.CLICK, garageF);

    }

    function garageF(e:MouseEvent):void {}

    for (var i: int = 0; i<>

    mcA [i] .visible = false;

    }

    var mc:MovieClip = MovieClip (e.currentTarget);

    mc.gotoAndStop (rotationframe);

    MC. Visible = true;

    whateverF (mc);

    }

    function whateverF(rotater_gah:MovieClip):void {}

    rotater_gah.offsetFrame_gah = rotater_gah.currentFrame;

    rotater_gah.offsetX_gah = 0;

    rotater_gah.percent_gah = 0;

    rotater_gah.addEventListener (MouseEvent.MOUSE_DOWN, startDragging_gah);

    rotater_gah.addEventListener (MouseEvent.MOUSE_UP, stopDragging_gah);

    }

    function startDragging_gah(e:MouseEvent):void {}

    e.currentTarget.addEventListener (MouseEvent.MOUSE_MOVE, drag_gah);

    e.currentTarget.offsetX_gah = e.target.mouseX;

    }

    function stopDragging_gah(e:MouseEvent):void {}

    e.currentTarget.removeEventListener (MouseEvent.MOUSE_MOVE, drag_gah);

    e.currentTarget.offsetFrame_gah = rotater_gah.currentFrame;

    }

    function drag_gah(e:MouseEvent):void {}

    e.currentTarget.percent_gah = (e.target.mouseX - e.currentTarget.offsetX_gah)/e.currentTarget.width;)

    var frame_gah:int = Math.round(e.currentTarget.percent_gah*e.currentTarget.totalFrames) + e.currentTarget.offsetFrame_gah + 1;

    While {(frame_gah>e.currentTarget.totalFrames)}

    frame_gah = e.currentTarget.totalFrames;

    }

    While (frame_gah<=0)>

    frame_gah += e.currentTarget.totalFrames;

    }

    e.currentTarget.gotoAndStop (frame_gah);

    }

  • Sequences of Hotlinks PP to the SG with footage not nested clips

    Anyone know how to work with PP sequences that have been sent to the SG and that include nested sequences?

    The problem I have is that I often use sequences nested for my b-roll but when I send the main sequence to the PP SG with Dynamic link, I can't develop these nested sequences. This means I can't rank of each element of the nested sequence, the layers of classification applies to all the clips. It is a problem that the clips are often very different. Around that, the only way is to turn trigger my project between the PP and SG several times. Once for the main sequence and once again for each nested sequence. It is a real pain as everytime you need to close your PP project, and then open it again when you come back to SG.

    Found!

  • Cannot add event listener to instantiated Movie Clip

    Hi guys,.

    I have a clip that I'm loading dynamically in my scene when a key is pressed.  Then, I would like to add a mouse event listener to the Movie Clip object so it can trigger a function when clicked.  I get an error when you try to do this and cannot find a solution anywhere.

    Here is my code:

    newLayerBT.addEventListener (MouseEvent.CLICK, newLayerBT_CLICK);

    function newLayerBT_CLICK (MouseEvent): void {}

    layerCount = layerCount + 1;

    Make a new object in my class BlankLayerMC

    var newLayer:BlankLayerMC = new BlankLayerMC;

    addChild (newLayer);

    Position the new object

    newLayer.y = prevY + newLayer.height;

    Change the text inside the object in order to take account layerCount courses

    newLayer.layerName.text = 'Layer' + layerCount;

    newLayer.layerNum = layerCount;

    prevY = newLayer.y;

    My problem occurs with this line...

    newLayer.addEventListener (MouseEvent.CLICK, moveSelection);

    layerArray.push (newLayer);

    }

    function moveSelection(e:MouseEvent):void {}

    var t = e.target;

    layerSelectedGraphic.x = t.x;

    t.y = layerSelectedGraphic.y;

    }

    Any help would be greatly appreciated

    change:

    function newLayerBT_CLICK (MouseEvent): void {}

    TO:

    function newLayerBT_CLICK(e:MouseEvent):void {}

  • stop() Action ignored in nested clip

    Hello!

    Maybe it's a bug in CS4, but I could not find any help for this problem:

    I have a movie frame by frame. In the framework of one, I put a clip on the stage via ActionScript:

    var clip_mc = new Clip();

    addChild (clip_mc);

    In this film clip found a second nested clip that contains 30 images, through which runs a classic motion tween in the timeline panel. The last frame of the Clip has a stop() command so that it will not loop.

    However, the stop command is ignored. So when I run the movie, the motion tween plays over and over again.

    If I place the clip directly on the stage (and not dynamically), it behaves normally and the stop() command works. Once again, if the internal clip with the motion tween is located directly in the clip_mc (i.e. only nested once, not in the second clip), everything is ok.

    Someone met by this combination of placing dynamically a clip with a double nested inside which seems to "break" the order of action timeline?

    Thank you for reading this, I hope that I've not too bad explained!

    deflectordish

    Wait wait... it's still does not? Did you put ALL the library of video clips involved to "export for actionscript"? And don't forget to add in the stop(). Also, make sure that the code is on a keyframe at the end where you want the stop from happening. And another thing I did was to make sure that covered all tweening frames. The way you had it in your test which was, he did not understand the last image. It should work... tested and retested on my end. I'll you email my copy of work later. Let me know but if everything is put in place as I've described here.

    Jesse

  • LV FPGA workflow nested CLIP w / NI SMU-6591R

    Hello

    I develop an application on a NI-SMU-6591R Board. My installation also includes a SMU-1085 w chassis / controller 8135.

    Goal: set up a VHDL project prior to the Commission of 6591R. Given that the application requires access to 2 ports Mini SAS HD and the VHDCI connector on the front of the 6591R (physical front) a CLIP nested is the only option here, isn't it?

    I am quite new to the LV FPGA framework. In order to understand the flow of the whole project, I would like to launch a trivial VHDL design on the 6591R: a D-FlipFlop edge triggered w / Syncronous reset. I have attached the the D - FF and the wrapper of CLIP VHDL code.

    I would like that (1) a little (LV::boolean/VHDL::std_logic) to pass the port D of the D - FF VI (name FDF/D) and (2) drive the LEDs of the Board of Directors according to the signals of outputs (FDF/Q and FDF/QB). Also, I want to read (3) the same outputs (FDF/Q and FDF/QB) back to the VI flying two Boolean flags.

    Following the white paper OR, I have:

    1. Managed to create a XML interface of the import VIDEO Wizard, import the 2 files VHDL (D - FF and its packaging).
    2. Selected the ELEMENT created in the IP-level component properties window. The LV_DATA_IN (host2fpga) and LV_DATA_OUT (fpga2host) I/O appear in the project tree, under the CLIP icon.
    3. Created a new VI under the FPGA device with an infinite while loop. Inside the loop, I dropped the LV_DATA_IN and the LV_DATA_OUT e/s and connected with a control (to LV_DATA_IN) and two indicators (of LV_DATA_OUT).

    First of all, why in a simulated execution mode, the behavior of the indicators is totally random? They are not connected to one of the connectors 6591R...

    Linking the FPGA VI, he reacts to any change in the control LV_DATA_IN button... Why?

    The design works as expected in Vivado both in behavioral simulations and post-synthese.

    Before asking here, I tried to understand it on my own. I have read all the documentation that I found on campus (I got access to LV Core1, Core2, Core3 and FPGA course material) and on the internet.

    What is still missing me?

    TY for your kind help!


  • Global events and global event listeners does not work!

    I don't know who to ask if I have questions about knowledge base articles so I'll post here.

    I want to push the alert as how dialog box integrated calendar alerts to users. I understand that I need to use the globalevents and listeners, so I studied it in the knowledge base article below:

    http://supportforums.BlackBerry.com/T5/Java-development/global-events-and-global-event-listeners/TA-...

    However, when I run the code, it does nothing. The way it is set up, it should display messages ("received event, sending accused of receipt and acknowledgement received"), but nothing happens on my Simulator, once I have 'fire' of the global event. Help, please!

    No problem. We were all there at one point.

    Each of these files has a main method that is your entry point to the application. Since everyone has one, they all have two need to have their own projects.

    For example, to create a new project for each of these files in Eclipse (or JDE; Eclipse preferred) and drop the code in., and then run the two projects on the Simulator.

    Once both applications on the sim card, you can then view the interaction between the two applications.

  • PersistentObject and problem SendListener

    I recorded a SendListener in order to intercept outgoing e-mail. When my manager is called I want to access my application stored in PersistentObject settings to determine what I should do in my manager of sendMessage.

    The problem is that I can't access any information contained in my application. I suspect that it is because my manager sendMessage runs in the context of the mail application.

    Should which design I follow to access my store persistent since a manager like this?

    Thank you

    John.

    I must admit, I have not really tested recently myself, but as far as I know, you should be able to access your persistent objects - assuming that you are running by using your own code and persistent objects classes, the framework should not matter.

    Can you describe the problem when you try to access the information?  If your objects seem to be "null" then I guess you use static references.  static variables are specific to a context, then your listener will see different static variables for your application.

    The reason why I've not tested this recently is that the normal practice for Auditors is change in context of your Application, and the usual approach is via a GlobalEvent

    http://supportforums.BlackBerry.com/T5/Java-development/global-events-and-global-event-listeners/TA-...

  • Apply distortion stabilizing and time of a clip

    Hello

    What is the best workflow to apply stabilizer and distortion of time of a clip in first pro cc or cc sequelae?

    I'm on Mac 10.8 and I'll speed variable and stabilize on a clip!

    (100%-500% - 100% clipspeed)

    Greetings

    Ralf

    Time stretch, nest, stabilize v.v.

  • Problems with nested VM, EPT, 4.1 5.1 nested

    Good evening

    I'm having a problem getting material passthrough to work. I'm under 5.1 ESXi (free license) and trying to nest 4.1 (free license) on the inside. In the settings of 4.1, I tried setting EFA / IVR affecting hardware/EQUIPMENT, but also automatic. Both occur in the following message:

    Warning message about ESXi 4.1: virtualized Intel
    VT-x/EPT is disabled for this ESX virtual machine.
    You will only be able to run 32 bit nested virtual
    machines.
    I heard all kinds of things to get this working. This is going to manually edit the VMX (tried), to memory (tested), to set the automatic EPT parameter instead of solving manually (tried) locking file. The same result message. EPT is enabled in the BIOS and EFA is certainly feasible on this processor (E5-2650). Any ideas to get this to work? If you need logs, you can tell me where to get them? (I see some threads require vmware.log but discharge only I get from the vSphere Client is huge and made up of a gzip file and individuals in a folder)
    ESXi 4.1 VM under network adapters said that DirectPath IO is not taken in charge and one of the reasons for which it lists is that the host is not configured for this. I know that it is experimental, but I hope that something can be found for this.

    Thanks for the help!
    Sincerely,

    Cody Weaver

    By using the web client, check the box 'virtualize virtualization to support', or edit the vmx file to add:

    VHV. Enable = TRUE

    Note that the virtual hardware version must be at 9.

  • Batch apply and markers on video Clips

    I have a series of about 100 clips to quickly throw in Premiere Pro and export as file combined on a regular basis. However, I would like to apply a short (0.5 second) cross dissolve (audio and video) between all clips, including a fade in and out on the clips of the first and the last.

    The problem with creating a sequence of all clips and trying to apply the cross audio and video dissolves at all (using the sequence-> apply default Transitions) is that I don't have and markers on clips, so transitions do not work.

    Is there a method of batch brand-ins application and breaks mark on each clip of my project to 15 images in and 15 frames before the end of EACH clip?

    For starters, I entered in preferences and video and audio transitions by default value 15 frames/0.5 second.  I have also tried to cut a clip to the desired length, copy the clip, paste the attributes on another clip, but that did not apply for the brand of component snap and brand.

    Any help would be greatly appreciated. Thank you!

    Take a look to automate to sequence.

  • Major audio problem with merged Clips

    Try this once again, having a major problem since update works with merged clips.  I merge all my video and audio clips into a project of prior work flow in first pro.  I'll be shooting my images, tagged and synchronized in the project.

    Because the first does not have more than 1 project open at the same time, I copied the files, closed before workflow project and opened my feature film project that I worked for.  Copied clips merged bin, I click on a clip, video plays well, but there is no audio playback.

    I try to import the project files of prior workflows by using the import project feature, keep that real merged clips (like the rest of my project is this way) still no sound.  I cleaned my cache of media, reset preferences, even uninstalled first and redownloaded.  Problem persists.

    Can you help me understand what the question is whether I can go back to making progress on this feature of finishing project?

    Here's my workflow and no problems so far.  I do it this way because I found after all files in the project was originally crash constantly when I was working.  I have a new I7' processor IMac with 24 GB of RAM.  And since the first does not allow to open multiple projects at the same time (wish it would change.  Avid and FCP both allowed several projects) that I have to do things this way.

    Before workflow project file

    Label all the video and Audio files to match the scene #' / takes

    The value in points on all the video and audio in order to reflect the slate

    Merge Clips

    Functional project file

    Import only Clips merged into Project.  Import or copy/paste

    Now, I did this workflow from the beginning about.  Removing all the source video and all the audio clips of my work project remain while my bins containing my merged clips.  Had no problem and edit has been smooth.  Did a day pickup last week, followed the same steps as I did in the past, imported clips merged into my work project and clips have audio, set to none by default.  Now, once I'm in the sequence I can manually set and this is, but I can't read the audio data in the source monitor, which is how to change, there is no reason, I should have to go back in the manner of the crappy editing with FCP copy and paste from a sequence.

    Able to repro.  Bug was noted.

  • Stop all nested clips

    Hello

    I did a series of nested clips, and to stop all the movements that I wrote this code:

    on {(press)
    MCinMCinMC.stop ();
    MCinMCinMC.MCinMC.stop ();
    MCinMCinMC.MCinMC.MC.stop ();

    MCinMCinMC.MCinMC1.stop ();
    MCinMCinMC.MCinMC1.MC.stop ();

    MCinMCinMC.MCinMC2.stop ();
    MCinMCinMC.MCinMC2.MC.stop ();

    MCinMCinMC1.stop ();
    MCinMCinMC1.MCinMC.stop ();
    MCinMCinMC1.MCinMC.MC.stop ();

    MCinMCinMC1.MCinMC1.stop ();
    MCinMCinMC1.MCinMC1.MC.stop ();

    MCinMCinMC1.MCinMC2.stop ();
    MCinMCinMC1.MCinMC2.MC.stop ();

    MCinMCinMC2.stop ();
    MCinMCinMC2.MCinMC.stop ();
    MCinMCinMC2.MCinMC.MC.stop ();

    MCinMCinMC2.MCinMC1.stop ();
    MCinMCinMC2.MCinMC1.MC.stop ();

    MCinMCinMC2.MCinMC2.stop ();
    MCinMCinMC2.MCinMC2.MC.stop ();

    This code works fine, but if someone can explain how to write this in a way more compact?

    attached to a framework:

    {yourbtn.onPress = function ()}

    stopAll (MCinMCinMC);

    stopAll (MCinMCinMC1);

    stopAll (MCinMCinMC2);

    }

    function stopAll(mc:MovieClip) {}

    MC. Stop();

    for (var s:String MC) {}

    {if (typeof (MC [s]) == "MovieClip")}

    stopAll (MK [s]);

    }

    }

    }

Maybe you are looking for

  • Weird problem of satellite 3000

    I have 2 laptops Toshiba Satellite, both for professional use,the 3000, however, my pride and joy. I work in a very exposed position and people actually stop and ask myself... What is the brand of this laptop? Recently, I've updatedfor XP Pro the 384

  • HP 15-r202na: fact DVD writer SuperMulti in the 15-r202na records of reading Blu - ray laptop TouchSmart HP?

    Product information HP 15-r202na says he has a "SuperMulti DVD burner".   This "SuperMulti DVD burner" plays Blu - ray discs?   I am considering buying one of the three portable Touchsmart with an optical drive.  They all say that they have the "Supe

  • How can I change the sequence of pictures, that I imported into Vision Assistant?

    Hello I have several issues of images I shot a framegrabber. Each has between 300-500 images .bmp are named 0, 1, 2, 3,..., 365.  The problem is that when I use Vision Assistant to open the pictures, it opens in out of use.  Ex: 1, 10, 100, 101, 102,

  • Hotmail receive no no Fanfiction includes Emails

    My Hotmail does not receive emails from my group of Fanfiction. They sent the instructions that I followed. I still haven't received not an email from my group. They sent me their mail/meta IP address. What can I do? Thank you

  • Exit button

    Hello, you create an Exit button in my app with this code, but I closed QML will go bad? or there is another code that may with a navigation button close my app.   ActionItem { title: "Exit" imageSource: "asset:///images/icons/exit.png" ActionBar.pla