Release outside when the moving object

Hello

I have a number of tabs that can be moved around the screen... I have limited movement to a rectangle using startDrag (false, rectangleName) but when I ROLL_OUT or MOUSE_UP outside the rectangle to compel the tab does not, so set itself a new startX and startY times clcked on a second time...

Can someone help me please! Here is my code, thanks in advance:-

private void tabOver(event:MouseEvent):void {}
event.currentTarget.scaleX = 1.05;
event.currentTarget.scaleY = 1.05;
}
private void tabClick(event:MouseEvent):void {}
event.currentTarget.scaleX = 1.05;
event.currentTarget.scaleY = 1.05;
}
private void tabOut(event:MouseEvent):void {}
event.currentTarget.scaleX = 1;
event.currentTarget.scaleY = 1;
}
private void tabMouseDown(event:MouseEvent):void {}

var constrainRec:Rectangle = new Rectangle (-150, 0, 912.15, 692.2);

event.currentTarget.startDrag (false, constrainRec);
event.currentTarget.parent.addChild (event.currentTarget);

event.currentTarget.startX = event.currentTarget.x;
event.currentTarget.startY = event.currentTarget.y;

var myGlowFilter = new GlowFilter(0x000000,.5,8,8,3,3,false,false);
event.currentTarget.filters = [myGlowFilter];

}

private void tabMouseUp(event:MouseEvent):void {}

event.currentTarget.scaleX = 1;
event.currentTarget.scaleY = 1;
event.currentTarget.stopDrag ();
}

the scene has a mouseleave event, that you can use for this.

Tags: Adobe Animate

Similar Questions

  • Why none of the moving objects are detected?

    I use Adobe Premiere elements 4.1 to edit (drone) Phantom images smooth 1920 x 1080.  There is no foreground subject, but there are several background characteristics that are quite evident profiles.  When I try to apply the motion tracking, it keeps telling me: ' none of the detected objects in motion, please only use Select-object to mark the object to follow. "  This message is presented to me after I click Select object, adjust the limits and then click on object of the track.  I tried several different features of many different sizes and I still get this message.  The video is similar to this, from about 2 minutes: Upper North Fork River Kings (raw) - YouTube.

    What I am doing wrong and how do I get first to follow a feature in the background?

    I downloaded your image and created a video motion with her moving on the screen. I couldn't follow the boldest exclusively, but when I chose a larger area surrounding the most "BOLD" I have not had any problems at all. See the Image

    Apparently, you need to register more contrast in your selection to follow successfully. Center the boldest in the largest area of caterpillars as best you can.

    Best regards, Terry

  • Line up outside of the key object?

    without the help of the guides, how is it possible to align an object to the outside (left, top, right, bottom) of an object key?

    for example: the pictures below show an orange square and a blue circle.  I want to align the blue circle to the right outside the orange square (as shown in the second picture).  It seems that when I chose the orange square as the key object, I can only align the circle inside.

    How does this result?

    Screen shot 2011-02-02 at 1.46.22 AM.png

    Screen shot 2011-02-02 at 1.46.57 AM.png

    David,

    Align > distribute, using 0 or Auto spacing.

  • Notifier release outside of the loop of consumption

    Hi all

    I use a notifier to a stop button.  My stop button was not stop in one of the cases (1 error to wait on the notice in hand MTTF.vi).  I've highlighted the code and noticed that when I pressed stop, the notifier has been released prior to notifying the consumption loop.  When I published the notifier outside the loop of consumption, my error has disappeared.

    Looks like a simple fix which is awesome, but ine everything I've read or seen so far, that the release was out of the loop of producer.  Is there a drawback to doing it this way?

    A more common way to deal with this should treat a mistake to wait on notice as a stop condition, because the error indicates that the notifier has been released, and the only way that can happen is that the loop of the producer ended.

    The way you described, you could get in a situation where the producer loop stops but the consumer does not and since the Notifier is not released until the consumer left, the loop of the consumer will never stop because he always waits for a notification that will never come (but the declarant is still valid, if it continues to wait).

  • The objects will not retain any color defined when the surrounding objects have their color changed

    Just Illustrator CC 19.0.0 was downloaded to me. When I place a line and then set its color, close objects can also have their color changed. This includes the items in the file of until I added the line, not on the same map-art objects. It is not universal, nor is it compatible. Objects already in the file are perhaps there for months, but a change is close will change their.

    The Illustrator files can still be an earlier version, and there were a number of illustrations that had black lines and text to white turned a few months back. As these illustrations are for a book, being unable to guarantee that the colors will stay together long enough to complete the illustration and export it tends to make unusable Illustrator for tasks of editions. I hope that InDesign and Photoshop do not have the same questions!

    nwjh,

    You must update to 19.1 (or 19.1.1 for Windows) or 19.2 (lattethe has some problems, then you can start with the former).

    If 19.1 (or 19.2) does not appear, disconnect and then reconnect the creative cloud application. After that, the 19.1 update must be visible in the creative application of Cloud.

  • No filter when the smart object selected

    I want to convert photo into painting in oil. I followed the instructions online on Youtube and convert the photo to a smart object. The next step is to open the filters and the Gallery of selection filters, but when I do this the filter Gallery is not available. What's wrong?

    Suggest you to reset the Photoshop preferences and then try

    Refer to this article: helps Photoshop | Preferences

    and make sure the image is in RGB mode and 8bits/channel

  • Good way to put in shape a date when the display object in a datagrid control

    Hi all

    I have a datagrid that displays a collection of ArrayCollection of objects having a Date property.  I want to format the Date property to display in the form DD/MM/YYYY.

    I made it like that.  Is there a better way?  This seems a bit complicated and wordy.  I was hoping I could just apply an attribute to the property of the DataGridColumn, something like "displayFormat" he said how to parse the date into a string.

    In any case, here's what I did.  First of all, inside the < fx:Declarations > I've got block < mx:DateFormatter id = "dateTimeFormatter" formatString = "MM/DD/YYYY" / >

    Then, I defined the following function within a block < fx:Script >:

    public void labelFunction(item:Object,_column:DataGridColumn):String {}

    var result: String = "";

    {Switch (Column.DataField)}

    case "expiry":

    result = dateTimeFormatter.format (item.expiration);

    break;

    }

    return the result;

    }

    Then, I set my grid of data like this:

    < mx:DataGrid x = "10" y = "42" dataProvider = "{currentRoster}" >

    < mx:columns >

    < mx:DataGridColumn headerText = "Member ID" dataField = "constituentId" / >

    < mx:DataGridColumn headerText = "First name" dataField = "FirstName" / >

    < mx:DataGridColumn headerText = "Lastname" dataField = "lastname" / >

    < mx:DataGridColumn headerText = "Orders" dataField = "standing" / >

    < mx:DataGridColumn headerText = "Expiry" dataField = "expiry" labelFunction = "labelFunction".

    < / mx:columns >

    < / mx:DataGrid >

    And it works.  But even once, it seems to me a little too when all I want to do is change the way the column "Expire" shows the date?

    Hello

    You must place the code inside the tag that may be related.

    
    
  • How to move an "anchor" without the moving object?

    In the first part of the animation, I needed to have the anchor point on one end. (see attachment). But a few seconds after that I need the anchor in the middle of the center point (on the top of the letter "D") to power apply a different movement. But when I move the anchor point to the center of my text it moves the text layer. Y at - there a trick to this?

    anchor_point.jpg

    Divide the layer where you want the motion to change.  Then take a snapshot of the window of the model.  Change the anchor on the newly created Division.  Corresponds to keep tweaking its position until precisely the earlier, referring to the snapshot that you have taken.

  • permitted connection is true when the linked object is null

    For some reason any that always has the value true if duplicateUserObjectBoundToComponentsInThisView is null

    Enabled = "{duplicateUserObjectBoundToComponentsInThisView.UserManagementView}" "

    what Miss me?

    Hi Nikos,

    You can try this instead...

    enabled = "{(duplicateUserObjectBoundToComponentsInThisView == null)? false: duplicateUserObjectBoundToComponentsInThisView.UserManagementView}" "

    Thank you

    Jean Claude

  • How to run a function in the oracle plsql object when the object dies

    I have an object plsql function member as exec_last.
    I want this procedure that is called when the plsql object is cleaned or when the accommodation session this object dies.

    In C, we have a system call as atexit(). Is there such a feature in Oracle 10 g or no workaround using embedded java.

    This feature is required to empty the contents stored in the plsql in the object to the database, when the program terminates.

    Thank you
    Best regards,
    Navin Srivastava

    navsriva wrote:

    Is there a better way to cache in memory.

    What is the Oracle buffer cache? It is exactly that - a cache for data blocks. The two new blocks (created by inserting new rows) and existing blocks (used by selects, updates and deletions and reused (freespace) inserts).

    The Oracle buffer cache is a cache of very mature and sophisticated. Trying to do "+ best +" to the db, buffer cache in another layer of software (such as PL/SQL) is mostly a waste of time and resources... and invariable introduced another layer of s/w which simply increases the number of moving parts. This in turn usually means increased complexity and slow performance.

    Why use the treatment in bulk from PL/SQL? The basic answer is to reduce switching between the PL and engine SQL context.

    During the execution of a code to insert data in SQL, the data must be passed to the SQL engine, PL PL engine must perform a context to the SQL engine switch so that it can process these data and execute the SQL statement.

    If there is a 1000 lines of inserts, this means that a 1000 context switches.

    In bulk treatment makes the "+ pipe communication / data + ' between the two biggest ones. Instead of passing data from one line to the SQL engine via a context switch, a collection of in bulk / picture of a 100 lines is passed. There are now only 10 changes of context necessary to push this 1000 lines of the PL engine to the SQL engine.

    You can do the same on any other client SQL... (remember, that the PL itself is also a SQL client). You can, using C/C++ for example, do exactly the same thing. When the row data to the SQL engine to insert, pass a collection of 100 rows instead of the data for a single line.

    The exact result of the same benefits as in PL/SQL. A pipe communication more, allowing more data to be transferred to and from the SQL, with engine for result less context switching.

    Of course, a context switch ito C/C++ is much more expensive than in PL/SQL - as the engine PL is located in the same physical process as the SQL engine. Using C/C++, this will usually be a separate process, to communicate with the SQL engine on the network process.

    The same applies to other languages, such as Java, c#, Delphi, Visual Basic, and so on.

    It not be wise to introduce another layer of s/w, the motor of PL/SQL and the customer "+ insert +" stored in his memory structures... and then use the PL engine to '+ flower' + for the SQL engine via a process control in bulk.

    It will be faster and more scalable, have the language of the client with treatment directly and dealing with the SQL engine directly in bulk.

    Simple example. What is SQL * Loader program (written in C), use? It uses no PL as a proxy to move data from a CSV file into a SQL table. He calls SQL directly. It uses a treatment in bulk. It is very fast to load data.

    There is an exception to this rule. What PL is used as a layer of processing and validation of business. Instead of the client code, implementation of this logic, it is done using LP. The customer then will not is more manually add an invoice to the table of the INVOICES for example. He called the procedure of PL/SQL AddNewInvoice instead - and this procedure does everything. It checks the valid client code. Ensures that there are stocks of the products ordered on the invoice. Etc.

    But in this scenario, PL is not used a flea market "buffer cache. It is used for what it was designed for - a correct application inside the database layer.

  • InDesign encounter error when locking of objects on the master page

    I have CS5 and love it. But after the moving objects on my master page between the layers (don't ask me why, just thought it might be a good idea) I can't lock without blocking InDesign objects (Ctrl-L). He meets a mistake and locks upward. I use the Task Manager to shut down and start over. You are not allowed to move objects on the master page between the layers? Do I need my mouse slapped?

    What is the error?

    Why do you need to lock the object? It should be locked on normal pages? I was wondering.

  • Cannot delete alias if the referenced object does not exist

    My JavaScript does not alias in OSX when the referenced object no longer exists. The bug occurs on a network volume when the referenced object has been deleted or moved from another system. Do you have any idea how to remove/relpace this alias dead with JavaScript? Why it is not possible to remove an alias with a missing object? Thank you for helping me!

    myShortcut.remove ();

    Bildschirmfoto 2012-03-21 um 10.52.26.png

    Hmm. I have no problem removing broken aliases created in the Finder, but am not able to delete the symlinks broken on remote filesystems created with ln -s (or withile.createAlias ()f). Seems to be a bug for me, as the broken symbolic link can be deleted otherwise (in the Finder or with rm ). I guess you can use doScript() and an Applescript script:

    app.doScript('tell application "Finder" to delete POSIX file "' + myShortcut.fsName + '"', ScriptLanguage.APPLESCRIPT_LANGUAGE);
    

    Slow, however. You can use a 'do shell script' Applescript with rm but the multiple levels of bids and escape are a puzzle.

    Jeff

  • Race on the 3D object

    It was strange. I'm fiddling around with a clipping mask on an object that is extruded in relation to answering the question of inquestflash on a clipping mask that disappears.

    Picture 1.png

    On the left is the hidden object. Then I 'accidentally' hit Cmd + Option + shift + 7.

    And behold, the 3D object suddenly had a stroke on the edges of the veneer.

    Apparently, Cmd + Option + shift + 7 means add a new line.

    If I discovered a new shortcut or has it always been like this? In any case, it's a new me :-)

    Steve,

    Am 25.11.2011 um 15:25 steve fairbairn wrote:

    As I said, I can't get this thing to happen when the 3D object is hidden and only with a keyboard command, so I don't really know what it is I do or why it works.

    You can also do this work on the Group (cutting) - only.

    But only if in the appearance Panel, the 3D effect is applied on top of the stack, above the fill and 'content' and the time after that. The 3D effect applied normally, is at the bottom of the stack. You must have moved it somehow.

    You do not need to apply via the shortcut, it works without him as well.

  • Determine if there is a moved object.

    I would like to know on how to determine if there is a moved object. Is there a way to do this?

    I don't know if you start an another slides on the other object it will stop the moved object.

    Perhaps there is a public service that will interview on this subject?

    Randall

    From what I see in the help documentation, the startDrag method does not return a value when it is running, and the class Sprite is not an event that are associated with him from being dragged, so it is unlikely that a drag status is preserved automatically anywhere.  The second example I provided, which you say you use, should be enough for what you want.

  • HP Pavillion DV5020 that blanks out when the power cord is not plugged in.

    I have a HP Pavillion DV5020 that white outside when the power cord is not plugged in.  Then, when it is in it's very well and when he's not even starts not with the screen committed.  It is NOT the function sreensaver.  Can I plug an external monitor and see what happens, but the maternal lines white leaves display off whenever it is on battery power.

    Anyone seen this before?

    g

    I would recommend to go ahead and reset the computer of hard edge. This is one of the best steps for these types of troubleshooting questions. Here is a link that will guide you through the steps on how to perform a hard reset: http://goo.gl/6mk6K

    I would like to know how it works and post back with all new details.

    Thank you!
    Sean

Maybe you are looking for

  • bugs in the features

    hello I have learned that you are looking for bugs in your devices with whom i can contact to tell him the bugs

  • Pavilion m7-1015dx: 10 firefox windows script problem

    Whenever I go to another screen I get this: A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger or let the script.Script: http://www8.hp.com/us/en/scrip...amework/jquery/v

  • Cannot create wireless network

    I'm having a problem making the myRIO create its own wireless network. It has the ability to do so, as shown in the tutorial of myRIO OR video to http://www.ni.com/academic/students/learn-rio/applications/ in the dashboard of data and OR video myRIO

  • HP15-ac189nia: how I can scroll with my pad on hp15-ac189nia

    Please hepl that im not able to scroll with my mousepad on my laptop. Thank you

  • 1350 PSC all-in-one printer will not print

    I have a PSC 1350 which do not print.  The flashes check print cartridge and display Copies E line.  How can I fix my printer?