MovieClip, capturing the click of the mouse on the whole scene

I made a button in 2 States in a project (completely at designtime) using a movieclip. I have change the State (and search) of the button by switch between frame 1 and 2. The problem is...

Even if the video I created (and registered in the library) is small, the onMouseUp event is captured by the movieclip anywhere, I click on the stage. Any thoughts?

Here's the code...

It is in box 1

_root. Status_Append ("code running on chassis 1"); display of status information (debug)
This.base_off. OnMouseUp = function() {}
_root. Status_Append ("base_off. OnMouseUp"); display of status information (debug)
gotoAndStop (2);
}
Stop();

It is in the frame 2

_root. Status_Append ("running on frame 2 code"); display of status information (debug)
This.base_on. OnMouseUp = function() {}
_root. Status_Append ("base_on. OnMouseUp"); display of status information (debug)
gotoAndStop (1);
}

RustyT wrote:
> I did a button in 2 States in a project (completely at designtime) using a
> movieclip. I have change the State (and search) of the button by switching
> frame 1 and 2. The problem is...
>
> Even if the video I created (and registered in the library) is low, the
> onMouseUp event is captured by the movieclip anywhere, I click on the
> stage. Any thoughts?

onMouseDown and UP have to go with hitTest action. Otherwise it will be global property.
HitTest, allow to define the specific target of the mouse UP/down of the events.

--
Best regards

Urami

--


If you want to send me a message - DO NOT LAUGH at MY ADDRESS

Tags: Adobe Animate

Similar Questions

  • How do to capture the mouse click or drag the engine near the PF_Param_POINT

    Hi guys.

    I tried to re-captured the event click or drag near the PF_Param_POINT but I could not.

    PF_Param_POINT seems to catch my event drag near the object point.

    Using the debugger, I watched if PF_Event_DO_CLICK occurs or no such action of drag,

    no event of PF_Event_DO_CLICK were issued.

    Once my user interface of the custom controls located near the control point UI (less than 5px?),

    the user can move them forever.

    Instead of draggin my UIs custom, control point user interface are trained.

    At present, the only solution is to CANCEL the move of my custom user interface operation.

    Does anyone know how to avoid such a situation?

    Hi daichi.

    the problem is that the interface of AE has a priority higher on interface of plug-in.

    He intercepted events drag both drew on the interface of the plug-in on the paper.

    the only solution I know is:

    def.ui_flags = PF_PUI_DISABLED;

    Suites. ParamUtilsSuite1()-> PF_UpdateParamUI (in_data-> effect_ref, paramIndex, &def);)

    This will cause the point param be unselectable, and therefore will not intercept click and drag orders.
    You can set this flag selectively when the cursor is close to your custom control, or when the cursor is inside the window of the model.
    (it's what I do in my plug-ins)
    :-)
  • When I right click of my mouse on an icon on the desktop, Adobe wants to install

    When I right click of my mouse on an icon on the desktop, Adobe wants to install.  How can I keep it from happening?

    Hi DarrylPranger,

    1. did you of recent changes on the computer?

    2 when was the last time it was working fine?

    3. only happens with the desktop icons?

    4. He's trying to install Adobe flash player or Adobe reader?

    Method 1

    I suggest you uninstall flashplayer from adobe completely from the computer and then reinstall the latest version and check if this solves the problem.

    Note: If his tent to install adobe reader may uninstall and reinstall.

    Uninstall Flash Player

    http://kb2.Adobe.com/CPS/141/tn_14157.html

    Download the latest version of adobe flash player

    http://get.Adobe.com/flashplayer/

    Methode2

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • When I right click of my mouse I do not get the properties option. I need to increase the resolution to fit a bigger screen.

    When I right click of my mouse I do not get the properties option. I need to increase the resolution to fit a bigger screen.

    It's not real estate in Vista customize. Then look at the last option.

  • Capture the click event of the button 'back' on DateTimePicker

    How to capture the click event of the button "return" on the DateTimePicker control.

    Show us in the form DateTimePicker.doModal)

    I know that this response is late, but if someone else is asking about this.

    doModal() returns a Boolean value and returns false if the user clicks Cancel.

    I hope this helps.

  • Warning Dialogues - cannot capture the button clicks

    Now that I can finally connect to the Simulator with the debugger, I can come back and work on my app!

    I'm trying to be on the QNX Dialogue class... specifially the AlertDialogue, that I will use for the warning of use of data like most of you...

    I looked at the example code, but for some reason, I can't click on the events of the Dialogue...

    Here is my code:

    package com.content.modal{  import flash.display.Sprite;  import flash.events.Event;    import flash.events.MouseEvent;
    
     import qnx.dialog.AlertDialog;    import qnx.dialog.DialogSize; import qnx.display.IowWindow; import qnx.events.DialogEvent;
    
      public class AirtimeUsageModal extends Sprite {
    
           private var alert:AlertDialog;
    
          public function AirtimeUsageModal()       {         init();       }
    
           private function init():void      {         alert=new AlertDialog();          alert.title="MY TITLE";           alert.message="MY BLURB HERE.";           alert.addButton("Quit");          alert.addButton("Acknowledge");           alert.dialogSize=DialogSize.SIZE_SMALL;           alert.addEventListener(DialogEvent.DIALOG_BUTTON_CLICKED, alertButtonClicked);            alert.show(IowWindow.getAirWindow().group);
    
          }
    
           private function alertButtonClicked(e:DialogEvent):void       {         trace("Button Clicked Index: " + e.target.selectedIndex);         trace("Button properties Object"+e.target.getItemAt(e.target.selectedIndex));         trace("e.responseBtn" + e.responseBtn);
    
             if (e.responseBtn == "Quit")          {             quitApp();            }         else if (e.responseBtn == "Acknowledge")          {             this.dispatchEvent(new Event("startApp"));            }     }
    
           private function quitApp():void       {         stage.nativeWindow.close();       }
    
       }}
    

    My problem is that I can't capture the click event... my tracks in alertButtonClicked never fire... When I click on a modal button disappears... And I get this in the output:

    Response of dialogue show null null
    Receipt of RESPONSE from the server: @control 1
    BaseDialogService.receiveResponse

    Any ideas what's happening here?

    This is a known bug. Please use EVENT. SELECT a workaround until this has been resolved.

  • Windows 7 - in list mode, the files are moving on a click of my mouse?

    Windows 7 - mode list, when the double click to open a file, the first click causes the list of files to align with the left side of the screen. However the slider then pointing to a different file by the time I click on my mouse. This does not happen in the icon display?

    It won't happen if you use the single-click to open an item and Point to select,

    The file will increase but only after you have clicked on to open it.

    Just a normal bug in the list.

  • Control a movieclip with the position of the mouse

    Hello everyone,

    I worked on a small project at work, I'm trying to controll a movieclip which consists of 60 still images of an aircraft (total 120 frames) that when played will show a view of 360 degrees of said aircraft. I can make it work with buttons, but ultimately I want to control the movieclip by moving the mouse. If anyone can help, that would be wonderful. Thanks in advance.

    Here is the code:

    import flash.events.MouseEvent;

    AC. Stop();

    stage.addEventListener (MouseEvent.MOUSE_MOVE, mouseMove);

    function mouseMove(event:MouseEvent):void
    {
    If (mouseX > 800 & & (mouseX < 1600))
    {
    ac.gotoAndStop (ac.currentFrame + 1);

    if(AC.currentFrame == 120)
    {
    ac.gotoAndStop (1);
    }
    }
    on the other
    {
    ac.gotoAndStop (ac.currentFrame - 1);

    if(AC.currentFrame == 1)
    {
    ac.gotoAndStop (120);
    }
    }
    }

    Using this code, the SWF file acts ok without error. I can do the movieclip play in any direction, however, when you move the mouse in the opposite direction that the movieclip continues to play forward or backward.

    Thank you

    Tommy

    There are at least two ways you can address this problem and they both require to control the position of the mouse more closely.  Now you have a general... If it's 800 > ahead and if his < 800="" step="" back,="" but="" when="" you="" step="" back="" from="" 1200="" to="" 1199="" you="" are="" still=""> 800, if you take one more step.  You need to either follow the change in mouse position or the position of the mouse to determine the framework of movieclip.  The second one is probably easier to design and will also be more accurate if the intention is to have a rotation for a displacement of the full scale of the mouse... otherwise you could just step back of a pixel at a time and in 120 pixels of movement... that might be what you want-the purpose is not explained in what you provided.

    (1) following the change of the position of the mouse - you must keep track of where the mouse was against where the mouse is when you check it... if(previousMouseX > currentMouseX)... you need to make the animation go back, etc...

    (2) with the position of the mouse to determine the frame movieclip - divide 120/1600... This is the number of images per pixel.  Take the current value of mouseX and multiply by that and make it an integer - go to this issue of image in the animation... simplifies this entire function similar to...

    function mouseMove(event:MouseEvent):void {}

    ac.gotoAndStop (int(mouseX*120/1600));

    }

    but refine to remember that there is no image 0

  • Capture click event of mouse outside of a canvas/component

    Hello guys

    I have a basic component of canvas and I want to capture a click of mouse outside this component event.

    How is that possible?

    Thank you very much

    Your best bet is to put an event listener for a mouse click on the stage of the application.  Let me know if you need more information.

  • Load the object MovieClip in the library in the container

    Hello

    I have a MovieClip in the library with the CloseButtonbinding name. Now, I want to load this MovieClip in a createjs container object:

    var popupObj = new createjs. Container();

    var closeBtn is new lib. CloseButton();

    closeBtn.x = 20;

    closeBtn.y = 20;

    popupObj.addChild (closeBtn);

    It does not work. When I add it to the stage instead, it works fine:

    var that = this;

    var closeBtn is new lib. CloseButton();

    closeBtn.x = 20;

    closeBtn.y = 20;

    that.addChild (closeBtn);

    Any ideas?

    It was only a snippet, I add the container to the scene. I use a container, because it has more elements such as shapes and text in:

    var that = this;

    that.createPopup = function() {}

    var popupObj = new createjs. Container();

    popupObj.name = "popup".

    var popupWidth = 260;

    var popupHeight = 140;

    var popupMargin = 14;

    var popupShape = new createjs. Form (new createjs. Graphics ().beginFill("#FFFFFF").drawRoundRect (0,0, popupWidth, popupHeight, 8) .endF ill());

    popupShape.alpha =. 96;

    {popupShape.on ("click", function ()}

    Do nothing, to prevent clicking on parent elements

    });

    var pt1 is new createjs. Text ("Title", "16px Arial", "#333333");

    Pt1.name = "pt1";

    Pt1.x = popupMargin;

    Pt1.y = popupMargin;

    var Pt2 is new createjs. Text ('Content', "" BOLD "14px Arial", "#333333");

    Pt2. Name = "pt2"

    Pt2.x = popupMargin;

    Pt2.y = Math.floor (popupMargin + 30);

    var closeBtn is new lib. CloseButton();

    closeBtn.x = 20;

    closeBtn.y = 20;

    popupObj.addChild (popupShape);

    popupObj.addChild (pt1);

    popupObj.addChild (pt2);

    popupObj.addChild (popupButton);

    popupObj.addChild (closeBtn);

    popupObj.x = 40;

    popupObj.y = 20;

    that.addChild (popupObj);

    }

    But I found the error. I had to call the function addChild (closeBtn) after that I added the popupShape.

  • Frame using to capture the video puts the file in the stack, can't get it then appears.

    Help! I always use this feature to capture some video footage of my ghost DJI. It saves me time having to take a lot of pictures. When I used to use the menu of the video PlayBar drop-down "image capture" in the library function, the framework that I would capture appears just beside the video in the row of photos at the bottom of the window. Now, it appears as a stack, and even though I tried all the options under the stack when I right click on the selected image, I don't get a change in the way that is the battery icon. Now, I don't see the captured anywhere file. This was just recently a problem so I'm assuming an update changed something in my settings, or it is a bug. On a scale of 1 to 10 on my knowledge of this program, I'm between a 2-3. So, if I'm missing something simple, please keep this in mind. Thank you!

    Maybe you have a set of filter that prevents the capture frame appear in the film downstairs.  Make sure the library > activate filters is not checked , and then try to capture the image again.

    Then, it may be that the batteries are reduced by default.  Make Photo > stacking > expand all stacks.  Now when you capture an image, it should appear in a pile at the bottom, but with already developed cell.

    Finally, if you view a collection or the smart collection that contains video, i.e. If the collection is selected as a source in the Collections Panel in the left column of the library, then when you capture an image, it will not be displayed at all, because LR is not automatically add photo frame to the collection.

  • Capture the problem!

    Hi there, try to capture images of Digibeta of J3 player through an in Premier Pro Blackmagic intensity shuttle. Capture the window looks fine, but reading that the 16: 9 image is crushed 4 x 3. Ideas please, thank you very much.

    Click with the right button on the media, click Edit > interpret footage...

    Set the IRON to widescreen.

  • Capture the output of a workflow in a different workflow

    I'm calling a WF1 workflow from another workflow WF2. I am able to do and WF1 is running perfectly in the background and the desired output via a return number. Newspapers of WF1 to verify that.

    But I want to capture the output (table/integer) to WF1 by WF2. I can't pass the exit (snapshots) WF2.

    I enclose the code and the journal of WF2. I enclose the code and WF1 journal as well.

    Well, well, you seem to met a strange problem... It was me frustrating because your code resembles a re-work of my code here:

    How to retrieve the details of Workflow

    ... If I run MY library workflow that checks the chips of workflow, the output, but all the variations, I tried to get out of the current token element has ended in the same result as what you had: null.

    So, as executions of audit workflow worked rather than the active token, wait until the workflow has completed, and then loop through the workflow runs until you find the one with the matching id of the token you just ran... once that you find, parse the output.

    Given two workflows you set in the last post, replace your task Scriptable text in the 'test' WF follows him with and run it (feel free to delete the code useless, I left all my code test in place in there something of another case may be useful):

    var inputParameters = new Properties();
    inputParameters.put("name", name);
    System.log("name '" +name);
    System.log("hostResource '" +hostResource);
    var curToken = wf.execute(inputParameters); //,"root","vmware");
    while (curToken.state == "running"){
        System.log(".. still running ..");
        System.sleep(1000);
    }
    var tokens = wf.executions;
    // Each execution is a "workflowToken" object
    for each (token in tokens){
        if (token.id == curToken.id && token.isStillValid){
            System.log("");
            System.log("=============== Checking token ===============");
            System.log("Token ID: "+token.id);
            System.log("Start Date: "+token.startDate);
            if(token.endDate != null){
                System.log("End Date: "+token.endDate);
            }
            System.log("Business State: "+token.businessState); // Indicates the business state as defined by the workflow dev in each of the elements of the workflow (not always specified)
            System.log("State: "+token.state); // Indicates the system state of this workflow
            /* State values are likely to be one of the following:
            waiting <- waiting for user input
            failed <- an exception was thrown to cause the workflow to fail
            completed <- workflow competed running successfully
            canceled <- user right-clicked and canceled the workflow
            running <- workflow is still processing
            */
            System.log("");
            System.log("==== Token Inputs ====");
            var inputParams = token.getInputParameters();
            if (inputParams != null){
                for each (key in inputParams.keys){
                    var value = inputParams.get(key);
                    System.log(key + ": " + value + " ("+System.getObjectType(value)+")");
                }
            }
            System.log("");
            System.log("==== Token Attributes ====");
            var attributes = token.getAttributes();
            if(attributes != null){
                for each (key in attributes.keys){
                    var value = attributes.get(key);
                    System.log(key + ": " + value + " ("+System.getObjectType(value)+")");
                }
            }
    
            System.log("");
            System.log("==== Token Outputs ====");
            var outputParams = token.getOutputParameters();
            if (outputParams != null){
                for each (key in outputParams.keys){
                    var value = outputParams.get(key);
                    System.log(key + ": " + value + " ("+System.getObjectType(value)+")");
                }
            }
    
            System.log("");
            System.log("==== Token Log Events ====");
            var logEvents = new Array();
            logEvents = token.logEvents;
            var eventCount = logEvents.length;
            System.log("Event Count: "+eventCount);
            for (i=eventCount-1; i>-1; i--){
                var logEvent = logEvents[i];
                System.log("");
                System.log(" == EVENT ENTRY "+(eventCount - i)+" == ");
                System.log("logTimeStamp: "+logEvent.logTimeStamp);
                System.log("longDescription: "+logEvent.longDescription);
                System.log("originatorId: "+logEvent.originatorId);
                System.log("originatorUri: "+logEvent.originarorUri);
                System.log("originatorUserName: "+logEvent.originatorUserName);
                System.log("severity: "+logEvent.severity);
                System.log("shortDescription: "+logEvent.shortDescription);
            }
        }
    }
    

    And to get an idea of the output, my tab newspapers looked like this:

    [2014-08-01 16:29:25.632] [I] name 'demo
    [2014-08-01 16:29:25.632] [I] hostResource 'null
    [2014-08-01 16:29:26.351] [I] .. still running ..
    [2014-08-01 16:29:27.365] [I]
    [2014-08-01 16:29:27.365] [I] =============== Checking token ===============
    [2014-08-01 16:29:27.365] [I] Token ID: ff80808146af57140147934349c10567
    [2014-08-01 16:29:27.365] [I] Start Date: 2014-08-01 16:29:26
    [2014-08-01 16:29:27.365] [I] End Date: 2014-08-01 16:29:26
    [2014-08-01 16:29:27.365] [I] Business State: null
    [2014-08-01 16:29:27.367] [I] State: completed
    [2014-08-01 16:29:27.367] [I]
    [2014-08-01 16:29:27.367] [I] ==== Token Inputs ====
    [2014-08-01 16:29:27.371] [I] name: demo (string)
    [2014-08-01 16:29:27.371] [I]
    [2014-08-01 16:29:27.371] [I] ==== Token Attributes ====
    [2014-08-01 16:29:27.374] [I] restOperation: null (null)
    [2014-08-01 16:29:27.374] [I] statusCodeAttribute: null (null)
    [2014-08-01 16:29:27.374] [I] snapshotids: null (null)
    [2014-08-01 16:29:27.374] [I] RESTHost: null (null)
    [2014-08-01 16:29:27.375] [I] hostResource: null (null)
    [2014-08-01 16:29:27.375] [I] errorCode:  (string)
    [2014-08-01 16:29:27.375] [I]
    [2014-08-01 16:29:27.375] [I] ==== Token Outputs ====
    [2014-08-01 16:29:27.378] [I] snapshots: 1966,2262,2555,2927,3272,3586,3895,3903,3909,3987,4041,4430,4734,5048 (Array)
    [2014-08-01 16:29:27.378] [I]
    [2014-08-01 16:29:27.378] [I] ==== Token Log Events ====
    [2014-08-01 16:29:27.423] [I] Event Count: 2
    [2014-08-01 16:29:27.423] [I]
    [2014-08-01 16:29:27.423] [I]  == EVENT ENTRY 1 ==
    [2014-08-01 16:29:27.423] [I] logTimeStamp: 2014-08-01 16:29:26.364
    [2014-08-01 16:29:27.423] [I] longDescription: Workflow has started
    [2014-08-01 16:29:27.423] [I] originatorId: a4e950d3-c575-4ddd-8b7f-dd838cdf7b2e
    [2014-08-01 16:29:27.423] [I] originatorUri: undefined
    [2014-08-01 16:29:27.423] [I] originatorUserName: bazbill
    [2014-08-01 16:29:27.424] [I] severity: 0
    [2014-08-01 16:29:27.424] [I] shortDescription: Workflow has started
    [2014-08-01 16:29:27.424] [I]
    [2014-08-01 16:29:27.424] [I]  == EVENT ENTRY 2 ==
    [2014-08-01 16:29:27.424] [I] logTimeStamp: 2014-08-01 16:29:26.401
    [2014-08-01 16:29:27.424] [I] longDescription: Workflow is completed
    [2014-08-01 16:29:27.424] [I] originatorId: a4e950d3-c575-4ddd-8b7f-dd838cdf7b2e
    [2014-08-01 16:29:27.424] [I] originatorUri: undefined
    [2014-08-01 16:29:27.425] [I] originatorUserName: bazbill
    [2014-08-01 16:29:27.425] [I] severity: 0
    [2014-08-01 16:29:27.425] [I] shortDescription: Workflow is completed
    
  • Sometimes they have a hard time capture the image on a physical machine

    Hello

    Last night I had a hard time getting the image on a physical computer.  The machine is a windows 200 advanced server with Service Pack 4.  Last week, I was able to do it without any problem with the same thing.  I was finally able to capture the image after that I went into control manual (Add/Remove Programs) and remove the agent then rebooted. Has started the process more.

    The log file is attached. I'm just curious as to why the problem occurred.  I used the Converter 3.0.3.

    TNT

    It could be a problem with the version of the converter that you use. Of the 3.0.3 release notes, in the section "problems":

    New that task fails for source machine remote Windows when navigating backwards in the Conversion Wizard

    When the following circumstances are present, the physical source computer does not restart:

    • You are remote hot cloning a source of Windows 2000 or Windows NT4 machine

    • The agent is installed on the source machine, but the system has not yet been restarted

    • You change the selection in the source and change to the original source before clicking on finish in the Conversion Wizard

    In this scenario, the task will fail with an instant failure error message. The reboot is required to start the snapshot on the source remote machine service if this converter can take the snapshot of the machine.

    You can try to use the 4.0 version converter and see if you can reproduce the error.

    If you found this helpful, please consider naming pointsIt

  • Help to copy the timeline of the movieclip on the stage of chronology for exporting .mov

    Hello

    I'm under Flash CS5 on a Macbook Pro, version 10.6.8.

    I'm trying to convert .swf to a .mov to an animation I created. I already tried the 'export' in Flash Basic options, but it exports only the "scene 1" first frame and not the real movieclip (648 images) I created which is placed in the scene 1.» Of after online videos / websites, I've gathered that I need to copy the movieclip on the stage 1 layers and then export that normally. While I can do (select the layer of the timeline of the movieclip, make a right click Copy frames and then paste this layer in scene 1), glued on the stage of the layers are out of the original (movieclip). Is there a quick way to move all layers in the timeline (frames) the scene 1 without losing their location on the stage? It is a fair way to export the movieclip in. MOV directly without messing with the parent stage 1?

    Thanks in advance!

    If you stretched it scenario main enough to show all the images in 645 and there not animate, implying that there are more nesting inside that you need to take into account. You'll need transform these MC incorporated into graphics so and stretch out them to full length.

Maybe you are looking for