Hi all,
I am new to Flash and ActionScript 3.0 environment. I have only basical knowledge regarding this platform.
My issue/problem starts here:
I have a Sprite object on the stage.
What I should do in order to change the dimensions (viz.,size,colour, or both ,etc) of this Sprite object, when it gets clicked?
My sample code looks like this:
var circle:Sprite = new Sprite();
stage.addEventListener(MouseEvent.CLICK,onStage);
function onStage(e:MouseEvent):void
{
circle.graphics.beginFill(0xff0000);
circle.graphics.drawRect(event.localX+47,event.localY+47,7,7);
trace("in stage's event listener");
}
circle.addEventListener(MouseEvent.CLICK,onCircle);
function onCircle(evnt:MouseEvent):void
{
trace("Inside circle's event listener.");
** // required code should be added here.....**
}
I think, you have got my point.
Please, anyone help me regarding the issue by providing a simple solution.
I will be waiting or your repliesā¦
Thanks in advanceā¦
Srihari.Ch