StartDrag, possible to move the two objects?

Hi, thanks for the response. Is it possible to connect the x coordinates y of the two objects so that if there are a bunch on one, when it is moved on the other moves with it?

Thank you very much

Frank
Advertisement

Frank,

> Hi David, thanks a lot! I use a.s. 2. Code would be very
> very appreciated!

Here's a way to do it.

clipA.onPress = function (): Void {}
this.startDrag ();
var offsetX:Number = clipB._x - this ._x;
var offsetY: Number = clipB._y - this ._y;
clipB.onMouseMove = function (): Void {}
This ._x = clipA._x + offsetX;
This ._y = clipA._y + offsetY;
updateAfterEvent();
};
};
clipA.onRelease = function (): Void {}
this.stopDrag ();
clipB.onMouseMove = null;
};

clipA delivery Manager is two things: a) starts a normal for brake
itself and (b) note the distance of its own location from clipB,
then, it sets an onMouseMove to clipB handler that updates to this clip
position with respect to offsets included just. The
updateAfterEvent() function is not necessary, but it makes the smoother movement
to display the lowest rate.

Do clipB reciprocate, to manage the same events for clipB, only
reverse the consequences:

clipB.onPress = function (): Void {}
this.startDrag ();
var offsetX:Number = clipA._x - this ._x;
var offsetY: Number = clipA._y - this ._y;
clipA.onMouseMove = function (): Void {}
This ._x = clipB._x + offsetX;
This ._y = clipB._y + offsetY;
updateAfterEvent();
};
};
clipB.onRelease = function (): Void {}
this.stopDrag ();
clipA.onMouseMove = null;
};

David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

Tags: Adobe Animate

Similar Questions

  • Is it possible to rotate the two iMovie 9 and 10 of the same MacBook Pro?

    Hi all

    Please be gentle with me; I have only just joined the community.

    I have an Apple MacBook Pro 2015 running OS X El Capitan; I used iMovie 10.1.1 and have already fallen on its limits.

    I would like to export to Quicktime so I can have more control over the settings (fps / sound, etc.) of my videos created with 10.1.1 before posting on You Tube, but can do with 10.1.1. I would like to download 9.0.9 and have both versions on my Mac (I understand that you can have both on the same machine) and you can / export to QuickTime with 9.0.9 share.

    I tried to download from the official website of Apple but encounter the following:

    "This update has no need to be installed. A new version of iMovie is already installed"

    It is no possible to navigate around this alert.

    Is it possible to have the two 9 and 10 on the same Mac, iMovie as 9 has never been installed on it, and if yes, how does one?

    Thanks in advance!

    J0hnst0n00

    What you propose, it's really not the way to accomplish what you want to do. iMovie 9.0.9 is not available on the App Store and can be purchased as part of the package iLife online from a third party like Amazon. Also, it is not completely compatible with El Capitan. Certainly not the right approach. I suggest you get MPEG Streamclip against 5 squared, which is downloadable for free. Share your iMovie project to file that will give you a MP4 file. Open in Streamclip and you can save as a Quicktime movie. It has a complete set of options, including the choice of codec, rate, etc. to image size.

  • Is it possible to move the menu button in the new interface?

    I find the idea of the right terrible menu. Is it possible to move the button previous position or at least to the left?

    Install Stylish for Firefox https://addons.mozilla.org/de/firefox/addon/stylish/ .

    Create a new style under modules-> User Styles and copy the following text in the largest of the three boxes:

    @namespace url ("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

    @-moz - document url ("chrome://browser/content/browser.xul") {}

     #PanelUI-button, #customization-panel-container,
    
     #customization-panelWrapper .panel-arrow,
    
     #ctr_panelui-button,
    
     #wrapper-ctr_panelui-button {
    
       -moz-box-ordinal-group: 0
    
     }
    
     #PanelUI-button {
    
       background-position: 100% 0, calc(100% - 1px) 0, calc(100% - 2px) 0;
    
     }
    

    }

    End of the text (do not copy this line). ############

    Save and restart. The button should now be on the left.

  • Is it possible to install the two 2014 of AutoCAD AutoCAD 2007 and on a Win 7 x 64 ultimate?

    Original title: the two AutoCAD 2007 and 2014 on a Win 7 machine

    Hi all

    Is it possible to install the two 2014 AutoCAD AutoCAD 2007 and on a Win 7 x 64 ultimate machine? If so, how to install? That should be installed first please?

    Thank you

    chk the 'HammerHead' response from the link:

    http://www.SevenForums.com/software/333785-both-AutoCAD-2007-AutoCAD-2014-win-7-x64-ultimate-machine.html

  • Is it possible to move the Windows 8 Camera Roll folder?

    Is it possible to move the film folder in Windows 8, or change the folder in which are recorded the photos and videos taken with the camera application? I wish I had the folder is synchronized to SkyDrive Desktop on my SkyDrive.

    I FOUND THE SOLUTION!

    I know how frustrating this may be so I hope this helps you guys!

    So I tried to upload a VIDEO to YouTube of my PC but I could not find the files under the my videos folder BECAUSE it was recorded on film! I couldn't find a way to get videos of the FILM at my local / PC video files to download the clip on YouTube. So that's what I did:

    Click on the windows downstairs tap left

    Find a CAMERA ROLL VIDEO and ENTER

    You should be directed to a page with all your videos on the LEFT

    Right CLICK on the video you want to down click COPY the FILE

    then navigate to the folder of you videos and paste there

    your video should be ready to be uploaded to YouTube, Facebook Etc.

    I hate this version of windows so COMPLICATED for WHAT please arrrgg

    Guilbert lovelies!

  • Is it possible to move the overall blog layout in a custom template file (*.tpl)?

    Hello

    I'm new to BC. You want to create several blogs different style from my BC account. The problem is - overall layout of the blog seems to be common to all possible blogs.

    Is it possible to move the contents of the layout of the overall blog in a custom template file (*.tpl)? (The idea is to create separate TPLS to different blogs)

    If so, what tag (which makes use of TPL file) can be used to display the overall content of blog?

    Thank you!

    It is a plan that is not called by a module, so no, you can't make that models like the one for the overal layout.

  • Is it possible to move the button publish online?

    < a bit cranky person who had no coffee yet >

    Is it possible to move the button to publish online? It is just about things there that I use often and when I'm in a hurry and my cursor exceeds their I have to wait for this massive box to publish online (Preview) to disappear. I don't want to publish online. I don't want to listen to extracts or learn more. I'll probably NEVER click on this button. I would not lose so much time waiting for this stupid expires box.

    < / a little grumpy person who had no coffee yet >


    Thanks in advance for your suggestions.



    Change your preferences. Under Technology Preview, turn the power off.

  • Is it possible to move the video of a prelude to another project?

    Is it possible to move the video of a prelude to another project?

    Hi Lekepistol,

    Thank you to try prelude workflows.

    Prelude working with one project at a time. He cannot communicate between different projects. You just need to close the current project, open the other and ingest the file to use.

    Customer feedback is important for us to improve the workflow and functionality. We are working hard to implement the features desired among our products.

    Please fill out the following form with accuracy. We will discuss the suggestions.

    Feature request/Bug Report Form

    Thank you

    Mayjain

  • When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Adobe first Pro 2015 CC only!

    When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Adobe first Pro 2015 CC only!

    Please make sure that the audio and video tracks are highlighted.

  • Is it possible to find the two sentences into one pdf file? For example, I know the words 'Here' and 'the answer' occur more than once in my document, but only once on the same page. I'm looking for this page.

    Is it possible to find the two sentences into one pdf file? For example, I know the words 'Here' and 'the answer' occur more than once in my document, but only once on the same page. I'm looking for this page.

    I tried to do this by using the search but it will find only them, if they occur as a long chain, that is to say "Here's the answer" rather than how they occur in the document it is to say "Here 's" a bunch of information that leads you to 'the answer'. The search feature so standard did not help.

    Then I tried to do this by using the tool to delete (obviously not the application of writing!) because it allows me to search for multiple words or phrases, however it is not highlight what page both are found. I tried to turn on the preference to enable deletions of comments and even if it meant that I could then go through all the comments, it's still not faster than my document is more than 1,000 pages, which meant there were too many total comments for me to be able to easily identify which page had both.

    Any ideas?

    There is no built-in way to search for two strings and limited to show only the results that appear on the same page.

    It can be done by using a custom script, however.

  • When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Thank you for your help in advance

    When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Thank you for your help in advance

    You must set the source patch:

  • Is it possible to move the sections within 11 IR?

    Hello, we have several complex BQY files containing several sections in them. We wanted to make an approach more "top - down" within the BQY for readability. Is it possible to move the different sections within the BQY? If so, how? I know that you can duplicate sections. It helps in some of our BQY. I have searched all over the Internet for it with no luck at all.

    Thank you

    Dashboard Studio utility to optimize

  • Is it possible to move the preloader in a slide show?

    I currently have a slideshow behind my logo (png), and when the slide show is loading the preloader is behind the logo and seems odd (I see only some parts, like its blocked by the logo).

    Is it possible to move the loading bar?

    Thank you.

    Hi Joseph,.

    I'm afraid that the feature you're asking for isn't here in the Muse at the present stage. I will recommend you this post in the ideas section and inform the team of devs on this feature requirement, ideas for features in Adobe Muse

    - Abhishek Maurya

  • Is it possible to move the BuildCache folder?

    I am running into a problem of path of file name length in the BuildCache directory, which is currently located at "C:\Documents and Settings\ & lt; user & gt; Settings\Application Data\Thinstall\BuildCache. "I want to move it to a shorter path, but have failed.  I tried setting the env variable THINAPP_CACHE_DIR., but it had no effect.  I am running the latest version of ThinApp.  Any help is appreciated.  Thank you.

    Currently, it is not possible to move the BuildCache folder, its location is always % AppData%\Thinstall\BuildCache Local.

    I'm a little surprised that you run into a problem of path length. That means either you have a user name very long or very long file name (original path does not matter, the name of the file itself must be large enough)?

  • Is it possible to move the tabs under the address bar? Or at least the bar bookmarks on top of address bar?

    I really have problems with using eye of the new presentation of Firefox. What I'd really like to do, is to move tabs so that they are under the address bar.

    If this is not possible, is there a way to move the bookmarks bar in the address bar? Please don't direct me to the toolbars of edition, I would like to change their location.

    Thank you!

    Right-click on a toolbar, and then click the entry "Tabs" at the top to deselect the it.

Maybe you are looking for

  • Panic of recovery after upgrade

    I have a MBP end 2011 running El Capitan and I just upgraded using 16 GB memory OWC and a 1 TB SSD.  Yes, I know that Apple only supports up to 8 MB, but OWC sells what it is tested by them at work, like several other providers. I transferred my syst

  • 4.0 important cookies, history, settings, passwords, etc.from 3.6?

    Version 4.0 installs like another browser or he settled on v3.6? Also if it settles as a separate browser will import 4.0 settings, cookies, history, etc.from 3.6? If this is not the case, what is the best way to get this stuff from 3.6 to 4.0?Thanks

  • Satellite L750 - close without cause

    Hello! I have a new Toshiba Satellite L750.Sometimes my laptop turns off automatically without cause and restart automatically (low cpu temperature: I know because sometimes it happens when the computer is turned on for a few minutes). Can do somethi

  • My computer crashes through a game that I downloaded on the internet, why?

    I downloaded a game to MyRealGames.com and after that I play for some time it crashes. What can I do to keep my computer freezes up while playing games?

  • Inspiron 15 3521 faulty HDD

    Hello My hard drive has developed a fault, registers the PSA failure. Error code: 2000-0142 The laptop is still under warranty, but I do not know who to contact to untangle a replacement (UK) Thank you very much Mike