ok guys, I decided to rework my question quite a bit:
there are 10 various points on the stage I would like to work with (I would like to dynamically place my object there)
var myPoint_1 should have x = 100 and y = 100 var myPoint_2 should have x = 50 and y = 80 and so on...
function moveObject(posX,posY):void
{
myObject.x = posX;
myObject.y = posY;
}
IS THERE A WAY TO REPLACE posX AND posY with ONE VARIABLE? I have something like this in mind:
-move object to myPoint_1:
function moveObject(myPoint_1):void
{
myObject.x = posX;
myObject.y = posY;
}
or -move object to myPoint_2:
function moveObject(myPoint_2):void
{
myObject.x = posX;
myObject.y = posY;
}