Skip to main content
khateebkhan
Participating Frequently
January 7, 2016
Question

How to move an object to specific area

  • January 7, 2016
  • 1 reply
  • 1409 views

I want to move two objects in two areas but one area is specified for one object but not for the other. When that object is moved to the second area not specified for that then that object should come back to its original position.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 7, 2016

make both objects movieclips and assign a property to each that indicates its target.

use a hitTestObject to determine if each is dropped on its target.

khateebkhan
Participating Frequently
January 7, 2016

how to assign property that indicate target to movieclip in actionscript 2.0 and 3.0

kglad
Community Expert
Community Expert
January 7, 2016

it's the same in as2 and as3:

yourmovieclip.target=whatever;