A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Move object away from mouse.

  1. #1
    Junior Member
    Join Date
    Dec 2011

    Lightbulb Move object away from mouse.

    Hi FlashKit.

    I'm trying to create a script that locates the objects location, and moves it smoothly out of location (but not out of stage) when the mouse is close. When the mouse moves away, the object should return to its place. I've really been searching for hours, and I cannot seem to find anything that works.

  2. #2
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Grand Rapids MI
    Check out Senocular's post here.

    The links are broken, but the real code can be found here. As mentioned, it's slightly more complicated than it needs to be, but it does the trick.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Well thanks for your help, but that seems to be written in AS 2..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center