[F8] Help with X and Y Co-ords
Hi, I'm desperately close to finishing this project, just one problem stands in my way.
I create clips on the fly that are draggable, i want flash to be able to record their new X and Y positions when they are drooped and pass them onto a File.
However in order to put the drag script onto the clips i've created a symbol within a symbol, so effectively
[shirt]
[shirtcontents] - with drag code-
[/shirt]
problem is the drag is setting the x and y co-ords relative to shirtcontents and not shirt (which being a symbol within a symbol is not relative to the stage).
Basically I need a way to add the on(press) { startDrag(); } to shirt via actionscript when i call attachMovie(shirt), or a way to set the x and y position of Shirt through shirtcontents by going up a symbol, so instead of;
this._x = _root._mousex; [this being shirtcontents within shirt, thus its x position is relative to the stage within the container shirt)
i'm setting
_root.shirt._x = _root._mousex
lol its doing my head in please help