Ok guys, Please help.
The goal is to have a movieclip (from an array) register it’s original x and y values and store it for a later reference. I could do this in AS2 by using the following but in AS3 since “_x” and “_y” no longer exists I can’t seem to figure out what else to do after 2days of re-writing codes. Anyone please help.
AS2
for (var i=0; i<mBtns.length; i++) {
mBtns*.originalY = mBtns*._y;
mBtns*.originalX = mBtns*._x;
}
to call this will be simply:
//this.currentItem.originalX.......whatever else comes after!
AS3:
**//how do i rewrite this considering theres no “_x” or “_y” anymore. AS3 almost assumes any display object added to the stage is added to the display list hence you can adjust it’s properties but that is the current value of that property not the values it started with. **
I hope this makes sense.
Thank you everyone!