this is the begining of the code
package{
public class scriptsTrePntzero extends Sprite
{
public function scriptsTrePntzero ()
{
stage.addEventListener (MouseEvent.MOUSE_DOWN, addMcInstances);
}
the function addMcInstances
private function addMcInstances (e:MouseEvent)
{
var container:Sprite = new Sprite();
var circle:Shape = new Shape();
pressed = true;
var xpos:Number= mouseX;
var ypos:Number= mouseY;
circle.graphics.beginFill ( 0xff9933 , 1 );
circle.graphics.drawCircle ( 0 , 0 , 10 );
container.addChild (circle);
addChild ( container );
container.x =xpos ;
container.y =ypos;
container.addEventListener (Event.ENTER_FRAME, scaleTheMc);
}
the function
private function scaleTheMc (event:Event)
{
var theBall = event.target;
if (pressed == true)
{
theBall.scaleX +=0.2 ;
theBall.scaleY +=0.2;
}
theBall.addEventListener (MouseEvent.MOUSE_UP, deleteEnterFrame);
}
**my script causes the scaling of all the instances of the sprite at the same time while i am expecting individual instances scaling … **
What am i doing wrong, pls help me OR if you can point me out to some thread addressing a similar query would be nice … thank you