ok so im doing something that is kinda complicated to explain but here i go
i have two movie clips
main_mc which is 800x600 and map_mc which is nested inside of main_mc, map_mc is 2000x2000,
i basically put a layermask over map_mc so that 800x600 only shows as i move the map_mc around main_mc, this gives the illusion of scrolling through the map
i have a car nested inside of the map_mc, i want to be able to tell when the car reaches a certain point on the main_mc, let’s say 800,
so
if(car_mc.x>800) stopCar()
obviously this will not work since the car is placed inside of the map_mc
is there a way to reference to the parent X position,i know with mouseX and mouseY you can (ie main_mc.mouseX, map_mc.mouseX will return different values when click in the same spot) i hope this makes sense