Alrite guys,

I've been learning to code in AS3 for a while now and am pretty comfortable with it but need some advice. My problem is getting a moving target to do a backflip at random invervals while still being able to hit test it accuratly. My target has its own class which controlls it's movements.

My attempt at acchieving this was to copy the backflip motion allowing controll in ActionScript where I would play it on a TimerEvent (this code was inserted into the MovieClip's own timeline). Only problem is that when I play the animation it happens from where the object was placed onstage and not from where it is at the time the TimerEvent is triggered.

I've got two questions:

1) Am I trying to do this the right/best way?
2) If so, how can I make the XML relative?

Thanks in advance