Hmm is this posible?

Ive got 2 units (unit, unit1) and ive got mobile scripts separated for each of them, but soon I intend to create several units in the scene as 10 are 20 then is possible to use a script like this but linked to one table are something, then you can move 10 are 20 units separately just with this little script.

Import mx.transitions.Tween;

Import mx.transitions.easing. *;

unit.onRelease = function() {}

unit.onMouseUp = function() {}

var t1:Tween = new Tween (unit, "_x", None.easeNone, unit._x, _xmouse, 5, true);

var t2:Tween = new Tween (unit, "FLF", None.easeNone, unit._y, _ymouse, 5, true ");

DY = _root._ymouse - this ._y;

DX = _root._xmouse - this ._x; radianrotation = Math.atan2 (dy, dx);

radianrotation = radianrotation * 180/Math.PI;

This ._rotation = radianrotation;

delete unit.onMouseUp;

}

}

help please

I'm not clear on the intent to the extent where you wait for things to move, but you might want to try to change the two lines of code to...

var t1:Tween = new Tween (this, "_x", None.easeNone, unit._x, _xmouse, 5, true);

var t2:Tween = new Tween (this, ' FLF", None.easeNone, unit._y, _ymouse, 5, true");

TO

var t1:Tween = new Tween (this, "_x", None.easeNone, this._x, _xmouse, 5, true);

var t2:Tween = new Tween (this, ' FLF", None.easeNone, this._y, _ymouse, 5, true");

and I see f that does what you had before.

Tags: Adobe Animate

Similar Questions

  • Just improved numbers in the version of las and lost all my data... Is - is this posible? Can I get it back?

    Been using the numbers for several years, and has never had a problem... Updated several times and still worked ok.

    Earlier I did upgrade to the latest version and it erased all my worksheets...

    can I recover this data?

    Help, please

    If you work on documents in iCloud, they are probably still there. On a Mac, open a session with your Apple here ID: https://www.icloud.com and click the numbers.

    If you work on documents locally stored numbers, then they would need to be restored from an iTunes backup created before the upgrade.

  • I want to configure my Windows mail with my Yahoo mail. Is this posible

    I want windows mail to be used instead of Yahoo.  e-mail of wondows is my yahoo account

    Unless you use a paid Yahoo account, this is not possible without a scraper to screen like the one found at ypopsemail.com Brian Tillman [MVP-Outlook]
    --------------------------------
    https://MVP.support.Microsoft.com/profile/Brian.Tillman
    If a response may help, please vote it as useful. If a response to the problem, please mark it as an answer.

  • Caps rule change. Is - is this posible?

    I am trying to eliminate some unnecessary elements in a document where a previous designer had filed a bunch of boxes with corners rounded behind the text.

    Rather than have a hundred or so individual boxes, I thought I would use nets of paragraph rather... but I can't change the tips...

    I also tried an anchored object, but can not make him sit behind the text.

    All suggestions/solutions which will not curse me former designer (which isn't a designer at all, just a very nice person an office door of mine who had to throw together something)?

    Thank you!

    Hey, this should help

    http://www.theindesigner.com/blog/episode-49-paragraph-rules-rule

  • execution of multiple DAC running plan, is this posible?

    Hi guru BI

    is it possible to run several implementation plan in the same container?

    or if we have several containers for kids free HR and finance, in this case the execution plan will be executed in each separate containers?
    What are the impacts on the DAC Server?

    Kind regards
    Kamlesh

    We can create multiple execution plans in a single container.
    But it can be scheduled one after the other don't.

  • I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    Is attached a screenshot of my screen with the context menu to show/hide tabs. I want to delete some of them and let others. Please help me to know how. Thank you!

    Hmm, maybe this "one-time" imported into the new preference? Try this:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste the cust and make a pause so that the list is filtered

    (3) double-click the preference of browser.uiCustomization.state and the content must be highlighted in a small dialog box.

    (4) copy the whole line and paste it into Notepad and save it as a backup.

    (5) in Firefox, click on the button '3-bar' menu > developer > Notepad. Remove the comment that appears and paste data preferably, that must appear on a long line. Click on the "Pretty Print" button to make it more readable.

    So I hope that you can spot the extra toolbars and change them out, taking care to preserve the commas between the elements.

    I don't have the extra toolbars in mine, but I copied and pasted back this spaced format and Firefox was able to handle it well. I went into customize and moved a button, and when I left, Firefox has rewritten the preference set as a single line. Assuming that yours works fine, then you can get rid of the backup from step (4).

  • Is posible to replacement for acer keyboard move 12? If Yes, where?

    Hello!

    I need around a new keyboard, available to the United States, for my Acer switch 12. Is - is this posible?

    One who made with the Tablet is in Hungary and I need to changet.

    Is - is this posible?

    Where can I by one?

    Thenks!

    Hello

    If you have a SW5-271, the part number is:

    NK. I1213.031 - KEYBOARD.67KS.US.BLK.WIN8

  • Remote control for Apple TV

    Is - is this posible?

    Yes. Apple Watch has the Remote app, you can use to control your Apple Tv.

    Use your Apple Watch as a remote control for your Apple TV or iTunes - Apple Support

  • Passwords for Addons

    Hello

    I have a lot of addons installed in my Firefox. The question I have is that if I connect on my sync account on another computer of someone else has access to the addons in my account and can uninstall or disable without my permission. This means that my original account is affected as well as the synchronization starts on this subject.

    My question is, can I put a password on the addons, so that only people who know my master password (which will be me), can install, disable, or remove the my Firefox addons? Essentially for and remove addon I want to put the (or a) password.

    Is there and I can download addon that will do it?

    Any help would be appreciated.

    Thank you
    Niels

    Hmm, maybe this could be of any help: https://addons.mozilla.org/sv-se/firefox/addon/public-fox/

    Tom

  • NB200 - do not restart

    I have a NB200 (not sure how old, but out of warranty) but now, if I stopped it, it will not restart until several hours later.

    The light comes on when the switch is depressed, but nothing happens and the screen remains black. Does anyone else have this problem, or I'm the only one, and what, if anything, can I do about it. Thank you very much.

    Hmm theoretically this problem can be related for windows OS or one of the pieces of equipment installed.
    Usually as the first, you should check if this question is displayed using the new OS installed.
    In this case, you must reinstall the operating system using the disk recovery or possibly HARD drive recovery option

    If this is not enough, then the parts like the HARD drive and memory must be verified
    But how? Well, the best would be the use of new and tested parts
    Toshiba ASP technician or a technician in downtown could check this soon

    If the parties would be OK, then the motherboard must be verified, but it requires special tools and software

  • NB 100 cancelled xp install to halfway now stuck

    My daughters netbook nb100 has ubuntu or anything on this subject, she has probs so I said that I don't know anything about ubuntu it I put xp on.

    Got my old xp drive (had a lot of licenses it a former construction company) and slipstreamed SP3 on thinking who would then save its loading, put it on a USB stick, and followed by a guide on how to do it but...

    He arrived at the point where I have to put in the license key, it would not accept so I did some research and found some people have problems with their soap operas when "slipstreaming". So I used same method usb this time with just my original cd to the usb port. Only as I canceled the installation first time around, when I load upward (I want to format and restart installation) it starts to load files of the blue screen, but shortly after is located directly in "loading windows" where I get a blue error screen.

    How can I get the xp installation to reinstall all of his files so I can reformat and try to install it again when it bypasses the part where it goes to the screen of blue format.

    I'm really stuck, I can reformat another way to delete all the files that I installed at the beginning so I can reinstall again fees?

    Help!

    Hello

    Hmm. This strange s
    XP CD contains Win SP2?

    Also, make sure that the driver SATA (part of the Intel Storage Manager) was included in the CD of Win XP.
    Intel Storage Manager can be found on the European driver Toshiba page

    Otherwise, you should try to boot from the CD/DVD USB drive and should check if it would help to reinstall Win XP

    Welcome them

  • Satellite L500 - black screen after a reboot manual or automatic

    Hello world

    This has me frustrated for three weeks, but I only just realized it is associated with manual restart or software required.

    My old 6 week L500 laptop refuses display different lights for indiactors on AV - no light on the keyboard, no screen, the fan runs but no disk activity I can hear.
    I managed to drill three times by forcing tap down using the switch hold down, removing battery wait and then start up.

    Earlier today, she decided to put on according to this method, and I was able to quickly jump in and empty my libraries and outlook.pst to a cause external hard drive my business she runs.

    Anyone know a solution to this problem?
    It's the first Toshiba that I have ever owned, and it's really frustrating to have to launch this 4 year old Acer to find a solution to my problem.

    Maybe the problem is Windows 7 but cannot find my way through this place to a response.

    Anyone, please?

    Hello

    You mean the L500 is not unbootable?
    Solution remove the battery and ac adapter doesn't help more?

    Hmm generally this should not happen sometimes the laptop could hang somewhere in the standby or hibernation and the mentioned workaround solution might be an option to wake up the unit

    It is difficult to say what's going wrong here possibly it s hardware related issue
    So perhaps it would be best contacting the local ASP the guarantee must be valid and I think that everything should be done for free

  • Satellite U300-14 b: can I use the graphics driver for the Intel page?

    My Satellite U300-14 b (VIsta 32 bit Home Premium, 2 GB) has a 'Mobile GM945 Express Chipset Intel'. Download from Toshiba site, says I've got the latest driver, namely 7.14.10.1263 dated 04/25/07.

    The Intel site lists their latest driver such as in date 7.14.10.1364 dated 11/12/07.

    I want to try the latest version of the driver to help solve a problem of occasional crash / restart when Vista wakes from sleep. I am told that the graphics drivers are often to blame and should therefore be updated.

    Can I safely updated with version 11/12/07, or I risk of problems? Not sure if Toshiba are just slow to release the updated driver, or if there is a better reason that they did not?

    Well, usually you can use the graphic driver directly from Intel page but I found several threads here in the forum that said that the chart non-Toshiba drivers can be installed and used only at your own risk

    > want to try the latest version of the driver to help solve a problem of occasional crash / restart when Vista wakes from sleep
    Hmm perhaps this problem could be related to the graphics driver, but I recommend you to update to Vista and install all THE patches for Vista.

    Best regards

  • No driver audio for Satellite Pro L300 - Vista in function

    Hello world

    I just bought a Toshiba Satellite Pro L300, I have a system dual boot Vista - Ubuntu.
    I have problems with ubuntu - after about 6 hours to get etc wireless keyboard shortcuts to work.

    So I deleted the Ubuntu partition.
    I log back on Vista (no dual boot now), everything is fine with Vista except that it says there is no audio driver.
    So I get my drive recovery off load a fresh Vista on the same problems.

    Does anyone think they can help?
    Blake was soon.

    Hello

    You mean you used the recovery disc Vista Toshiba and redefine the laptop to factory settings, but the sound is still not available?

    Hmm. This strange boyfriend
    Check Device Manager and remove the sound card in the list of devices.
    Restart the computer, and then reinstall the audio driver that is on the page of the Toshiba driver.

    Check it out and please inform us of the results

  • Qosmio F50-125 starts with black screen after a BIOS update

    Hello

    After instalation if new bios (v 2.0), computer sometimes starts with black screen.
    Even the first page that show press F2 to enter the bios is not displayed.

    You have someone older version of bios?
    So, I might try if it's the fault of it.

    Hello

    I think that the old BIOS will not help you because the laptop would have known that you try to update the BIOS to the older version, and it would break to the top of the procedure.
    In addition, the older BIOS is not available on the European driver Toshiba page.
    I think just only a Toshiba ASP had an older version of BIOS.

    Anyway, you said that sometimes happens.
    This means that this issue doesn't still persist
    Hmm. in this case, I recommend the default BIOS settings and update the driver display.

    Check it out!

Maybe you are looking for