This content has been marked as final. Show 5 replies
You didn't really state what the problem is. You can check to see if an
object is in a given spot by checking it's location, or by doing a hit test
against another clip. You can use a tweening engine (I like Tweener) to move
the object back to its starting point.
So - onPress do a startDrag. onRelease check the position. If it's not where
you want move it back to start using a tween, otherwise it's where you
want - delete the onPress so it can't be moved again.
Adobe Community Expert
Thank you for your reply. The followinf is the code I wrote in order to see if the object I am moving goes to the right place or not. My proble is that I cannot figure out how to have pcellmemb_mc go back to the original (starting) position and also to have the second message (try again) appear in the Dynamic Text box (answer1)
answer1.text = "WELL DONE!";
answer1.text = "Try Again";
Thank you, thank you, thank you KGLAD!
That worked like a charm. That was exactly what I have been strugling with. Thank you!
If I may, can I ask another question?
What can I do to restart the movie at anytime from the beginning, if I need to?
there's no magic restart function short of reloading your application: