Moving in wrong direction????

ok ive made this script what pushes this function into an array called unitArray.
this goes on the first frame of unit.
_root.unitArray.push(this)
import mx.transitions.Tween;
import mx.transitions.easing.*;
this.onRelease = function(){
this.onMouseUp = function(){
var t1:Tween = new Tween(this, "_x", None.easeNone, this._x, _xmouse, 10, true);
var t2:Tween = new Tween(this, "_y", None.easeNone, this._y, _ymouse, 10, 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 this.onMouseUp;
this goes on the main timeline.
unitArray = new Array();
it all works but my problam is that when i click on the stage the unit should move where i clicked. but instead it moves in a random direction and i cant figure out why?????

In your Tweens try using _root._xmouse and _root.ymouse

Similar Messages

  • Mission control animates in the wrong direction when you start in full screen mode

    When I am in fullscreen mode, open mission control, and swipe left to right the animation moves in the wrong direction. The correct space appears, but it animates as if I swiped right to left. All subsequent swipes work correctly until I close mission control and follow the same steps again.
    Whats going on?

    Go into system prefs trackpad then uncheck scroll direction.

  • Skip button symbol pointing the wrong direction. iTunes 11.1.3.8

    The symbol of the skip button that appear when you keep the mouse over the itunes icon while it's running on windows seven is pointing the wrong direction. It's just with me?
    iTunes version: 11.1.3.8

    i have the same problem no radio stations at all bit shabby hate technolgy now adays

  • Verizon Navigator: Watch out for wrong directions!

    If you downloaded Verizon Navigator, watch out!  Make sure the directions are accurate before you start your trip!
    I tried to use Verizon Navigator on a trip last week, to return to Raleigh Durham airport from Wilmington, NC.  My starting address was in Wilmington, on a standard residential street.  (Not a dirt road or unusual location.)  My destination was RDU -- the Raleigh Durham Airport -- also a well-known address on I40.
    Navigator worked fine during the week for trips around Wilmington, so I thought there would not be a problem with the return to RDU.  Wrong!  Navigator sent me on a wild goose chase up Route 421.  When I reached the junction with Route 17 (with a sign "To I40"), Navigator told me, "Make a legal U-turn then drive 52 miles..."  At that point, I knew Navigator was lost.  So I took Route 17 to I-40 -- and switched to Google Maps. 
    This round-about trip up 421 and back to I40 ran through central Wilmington, which wasted 45+ minutes.  I almost missed my flight at RDU.
    If you decide to use Verizon Navigator, be sure to check the directions and route before you start!
    I hope this is helpful,
    Mark

    Look, not only can you get incorrect information from a Verizon rep, odds are that if you call three different reps with the same question, you will get three different answers - and all three could be wrong.
    I called once because activating a new phone had knocked a promo off my account (after I had been assured it wouldn't when I signed up and extended my contract). The first rep told me I couldn't have the promo back, that it was physically impossible to put the code back on my account as the system wouldn't allow it. I hung up and called right back, and rep number 2 said, "No problem," and had it back on in two minutes.
    This same rep then told me that the promo was only valid for 12 months, then I'd go back to regular price. When I had signed up and extended my contract, I was assured that the promo would continue the entire two years ( I asked repeatedly). Hung up again, got another rep who told me it would last the entire contract. Asked for a supervisor, who put me on hold for 5 minutes, then came back  to tell me it would stay in effect until I changed plans (beyond 2 years if I stay with the same plan)
    Three reps, three answers. And don't bother asking them to send you their answer in writing - they will NOT under any circumstances put their words down in writing. They will offer to notate it in your account, but who knows if they actually do. And, how can you prove it's there if the issue arises?

  • Wrong directions and poor serching ability of new Iphone Map

    Please, could we have the option to download the same app we were using before from google maps? Apple really seems not to care about the customers by doing this change. I was an active user of google maps daily and I have tried to use the new iPHone map multiple times but mistakes are huge including wrong locations and directions. I cannot stand this anymore. Apple should be embarrassed to put out such an inferior mapping application.
    If Apple really cares about the service they provide, get us Google Maps back!

    Google didnt let apple devices have turn by turn navigation. Because of the reason that apple care about their customers, they thought to bring up their own map which offers turn by turn navigation. But they are just beginning, so it would take some time to make it fully working. So until then if you wanna use google map, you can visit www.maps.google.com and tap the arrow button on bottom and add it to home screen.

  • Moved Thread Re-Directs

    I'm not familiar with the nitty-gritty of FluxBB but when I moderated a vBulletin forum when we were moving threads one of the options was to leave a re-direct in the original sub-forum so that users wouldn't be confused as to what happened to their thread.  vBulletin offered two kinds of re-directs.  A permanent one which would always show in the forum and gradually move its way down as new posts were made, and an expiring one which would disappear after a set amount of days.  If it is possible to leave re-directs with FluxBB what would you guys think about doing so?  When threads get TGN'd or binned for deletion it may not be obvious to a new user to check those two sub-forums when their thread vanishes in a puff of thin air.
    Last edited by headkase (2012-10-04 19:22:53)

    karol wrote:Why aren't they subscribed to their threads?
    They can always find the threads they started from their profile (at the bottom of 'Essentials' tab, it's called 'Show all topics').
    I can't speak for anyone else but that is not obvious to myself.  I just looked in the upper-right and seen "Topics" with a "Posted" link which brings me to threads I have posted in.  Not obvious.  Also, if I was just reading a thread and going back to read it later - without having posted in it - then the possibility for confusion is also there.
    I'm not saying that the functionality you described doesn't already provide the feature, just saying that it may not be obvious to a new user - or in my case an older user.

  • Bookmarks Links Goes to Wrong Direction (Page)

    Hi,
    I just added bookmarks to pages title. by following right click on title of page Interactive-New Bookmark.
    I had totaly 9 pages first and I done about 7 bookmarks for pages. first all of them was fine. but after I have added 4 extra pages after last page, my some of the bookmarks is begining to go last page!
    I did delete them and insert aganin, allways goto last page.
    Where can I edit that?
    thanks.

    Which version of InDesign are you using? (On Windows: Help > About InDesign, on Mac OS: InDesign > About InDesign).
    I tried to see if I could replicate the issue you are seeing, but the Bookmarks panel definitely points to the correct page numbers, even when I move pages around – this is in InDesign CC 2014.2 Release  /  Build 102..0.69
    I'm not entirely sure what's happening but the following might be of help:
    When you select an object and right-click Interactive > Bookmark, the bookmark you create references a page, NOT the object you had select as far as I'm aware. In my version of InDesign, if I move the pages around, after creating the bookmark, the bookmark page number reference automatically updates to reflect the new page. You can check that by selecting the bookmark in the Bookmarks panel and waiting for the tool tip to appear (or just hover the cursor over the bookmark you want to check)
    If you move the content you had selected when you added the bookmark to another page. For example by selecting a text frame and moving it to another page, the bookmark will still point to the previous page.
    Try this as a workaround:
    Instead of creating Page bookmarks, create the bookmarks more content aware: Highlight the page title text with the Type Tool and choose New Bookmark from the Bookmarks panel (Window > Interactive > Bookmarks).
    If you're still having troubles, see if you can provide us some screenshots of what is going on, hopefully they'll help clarify the issue.
    Cari

  • Wrong direction of Packet loss

    Recently,I capture some RTP packets when user meeting the dialogue jitter and latency.
    User A using the 3951 ip phone (IP address is x.x.125.206, and x.x.200.165 is the voice gateway's ip address ) , and user B using a mobile phone.
    User A responds to me that she can't hear user B clearly.
    This reflect to packets capture result should be packet lost at the in direction.
    But the capture result show that packets loss happen at the out direction.
    Could any body explain it for me?
    Thanks a lot!

    Probably you have captured RTP traffic near the voice gateway. Right?
    I suppose that you have bidirectional packet loss.
    In this case, if you use wireshark near one of the sources you can observe only one direction loss.
    You must try to use wireshark in both network segments.
    P.S. in the bottom of the your image we can see ip addresses of your net.
    Regards.

  • Arabic typing in wrong direction after os 5 update Curve 8520

    Hello,
    Actually I'm posting this on behalf of a friend because I feel responsible for his problem. I advised him to update his Curve 8520 via this link last Tuesday rather than taking it to a mobile shop: http://us.blackberry.com/apps-software/devices/ .
    The update was a success, however, now whenever he wants to type in his native Arabic it types from left to right not from right to left.  The Arabic font shows correctly so it is supported but it seems there is this typing direction issue. Both of us live in Dubal and use Etisalat as our provider.
    Can someone please tell me how or if the correct typing direction for Arabic can be achieved? Thank you for your time

    Hi again
    Ms_SoSo wrote:
    I will ask him to see if he can find a backup. Where would the backup be located?
    The correct answer would be to whereever he saved it, but that may prove difficult with a shared PC.
    He will be looking for a file with the extension .ipd and I would say it will be only one on the machine.
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

  • MOVED: Something wrong with my Nvidia GTX 765m

    This topic has been moved to MSI Notebooks & Netbooks.
    https://forum-en.msi.com/index.php?topic=179004.0

    This topic has been moved to MSI Notebooks & Netbooks.
    https://forum-en.msi.com/index.php?topic=179004.0

  • Moving printer from direct USB connection to network

    I am trying to move my printer from direct USB connection to the network by using my NAS' print server. I see it fine in trying to setup the printer, but the printer model does not show up as an option. How do I get it added? It is an HP photosmart 7350. Thank you in advance for any help. --Jeff
    Dual 2 GHz powerPC G5   Mac OS X (10.3.9)  

    Hi kayc_89_07,
    If you still have the printer CD you can re-run and use the USB to wireless setup from there. If not, then you can manually add the printer. What operating system do you have?
    You have to make sure first that your printer is connected wirelessly. You can print a Network Configuration Page from the HP product control panel. The page includes the product IP address, and MAC address as well as the product network status. Follow these steps to print the information:
    On the HP product control panel, press the Wireless button ( ). The Wireless Menu displays.
    On the Wireless Menu, press the button ( ) next to Print Reports .
    The product prints a Network Configuration Page
    Let me know so I can assist you further...
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Cheers!
    * If this post has helped you, the White Kudos star on the left is a great way to say thanks!
    * Please mark Accept As Solution if it solves your problem so other users can benefit as well.

  • Three finger swipe in wrong direction

    Hi!
    While the two finger swipe/scroll is on "natural", the three fingers still swipe (scroll?) the old "unnatural" way.
    Is this only for me? (you can check that by picking "three fingers swipe" and then swipe back&forth in Safari/iCal-weekview/etc.)
    What can I do against it?
    Background info:
    I changed the feature "Swipe between pages" (under touchpad/more gestures) from "scroll left and right with two fingers" to "swipe with three fingers".
    Reason: Even on Apple's own Website there is photostreams (or other features with scrollbars) where one needs to scroll left and right with two fingers (to see all pictures, the whole text etc.), but then two fingers also mean to swipe back to the last opened page, so that's what Safari does (instead of scrolling)!
    Please read carefully, I get really annoyed when people teach me about how "natural" is more natural or that "Apple engineers know why they did it this way" or some other bull****.
    Thank you so much for your help!!

    dhty55 wrote:
    Before, I could navigate the system preferences menu going back and forth with the three-finger swipe but now?
    I never knew this to exist in sys preference. Not sure how this would work since you are not highlighting anything, just selecting???

  • Accordion opens in the wrong direction

    I'm trying to make a full scren site. I have found that if I want certain items to stay in place when the browser is expanded to full screen, I need to pin them.
    I'd like to use an accordion to contain my menu, but when I place it correctly in the design panel, it loses it's position when previewing. A pin in the lower left corner fixes this. The accordion is where it should be and stays in position when resizing the browser window. Only problem is, the accordion opens upward instead of downward. If I unpin it, it works correctly but loses position. If I choose one of the other pins, it opens correctly but still loses it's position. Seems like I'm missing something simple here, but I just don't understand what's causing this. Any ideas?

    First, publish your site to a folder on the desktop and launch it in your browser by double clicking the index.html file to see if it works OK.
    If it is OK then you have a publishing problem.
    If it isn't then the problem is in iWeb.
    Make sure you use a good FTP application to upload your files and not the one supplied by your hosting company.
    For more on FTP see Tom Gewecke's page ....
    http://homepage.mac.com/thgewecke/iwebserver.html
    and....
    http://iwebfaq.org/site/iWebFolderFTP.html

  • Trackball not moving in a direction

    There is a very easy solution.The solution is the same as years ago when computer mice all had trackballs. Take a cotton swap and a drop of rubbing alcohol and place it on the the on the swab  and then apply that to the trackball. Then move the trackball. It should free it up instantly. I am very surprised that tech support at Blackberry does not know this. This a trick that computer techs have known for years. We used to take te track ball out and clean it but I am not sure how the housing on the trackball is secured so I personally would not fool with it

    Have you removed your trackball from the device? Cleaning mouse in easy but BlackBerry trackball is a bit difficult. I did it by myself for two of pearl devices. Some extra causion need to be taken for this.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Printing wrong direction

    All of a sudden printer printing 11 x 81/2 and not 8 1/2 x 11   what happened and how do I fix.I  am desperate. Help. Thanks.

    Hi, I think use Portrait (not Landscape) will fix this Regards.

Maybe you are looking for

  • Eu estou tendo problemas com pop-ups, já baixei todos os complementos possiveis mas não adianta, eles continuam aparecendo; como faço para não aparecer mais?

    Havia um programa que já veio instalado no computador mas que depois de um tempo meu antivirus acusou que ter vírus. Deletei-o e então começou a aparecer os pop-ups. Baixei vários complementos como AdBlock, Avast online Security etc mas nada deu cert

  • Adobe Premiere Pro CC 2014 compatible with Nvidia 970 GTX?

    Good afternoon. I'm an owner of a GIGABYTE Nvidia 660 GTX Ti OC 2GB. The card is detected by Adobe Premiere Pro CC 2014 (Even though,i think,it said that it's not listed or something but will work under my own risk..Is there a way to check if it's ce

  • Cannot save file as a png?

    Hi I'm working with a file that was originally provided as a jpg.  Opened it in Photoshop and saved it as a psd file.  Made modifications and now when I try to save that file, there is no option to save it as a png.  I've seen this before but no idea

  • How to get vanilla firefox in ubuntu

    I am trying to build Selenium from sources but some of my tests are failing and the Owner of the project commented the following: I'd also suggest running the tests with Xvfb / Xvnc and '''making sure that you have a vanilla Firefox (as opposed to Ic

  • Handouts Editing Text Artifact

    In the edit mode of Captivate 3, Click Boxes or Animated slides show black text in the center of the slide. For example, a slide with a click box might say "Click Box (720x540) (X:0; Y:0)." When I publish these slides as handouts, this text also gets