Update location of MC

coordinates not updating
I have 4 layers of movies, each invoking an instance of a child

A container movie
which has a car
which has seats

and… a draggable object “the driver”

When the movie load I can drop the driver in a seat and it centers him there (by using “hitTest”) and getting the coordinates of the seat.

since the seats are dynamically created within the car, i use localtoglobal to change the coordiantes to the main movie.

So far this works.

but the car is draggable too, and when i drop the driver on one if it’s seats the hitTest works, but the driver is dropped to the original location of the seat (previous to moving the car)

seems the new location of the car/seats are not updating.

any suggestions?


after your hittest, why dont you make the driver _x equal to the seat’s _x?

that is exactly what i am trying to do.

This works, initially

but after i drag and drop the car (seats within it) the new x and y values do not update.

so i drop a person in the cars new (Dragged to position) and the hitTest works, but it drops the driver at the seat’s (with in the car) previous position (before it was dragged and dropped)

I also have a bunch of trace statements to find the value of the seat (car) and they too reflect the orignal position after i drag and drop the car