Hi people!
I’m experiencing this weird problem with my new flashgame I’m currently writing.
The problem is that I try to obtain the x and y location of an object somewhere in a hierarchy. It doesn’t work. What does work though is when I try to get the x and y location of the parent of that hierarchy. This is what it looks like with the full hierarchy:
i guess you already checked for typing mistakes for about 100 times, but just try it one more time… maybe you could post your .fla… then we can see for ourselves… because its difficult to help this way.
well, then i don’t know what to do… maybe you could try other ways… like doing it with actions in a frame: _root.thatmc._x = _root.MVPlayer.PlayerArm.PlayerGun._x;
or maybe in a frame in the PlayerGun mc … like this. _root.thatmc._x - this._x;
[offtopic]
so you’ve been to eerbeek, well i’m not so proud to live in eerbeek, but i never thought somebody on this forum would have ever been in eerbeek.
[/offtopic]
Try localToGlobal? I have noticed that accessing something like mc.innerMC._x will output innerMC’s _x relative to mc, and localToGlobal converts that to coordinates relative to the stage.