# How to change the dimensions of the Sprite object?

**URL:** https://forum.kirupa.com/t/how-to-change-the-dimensions-of-the-sprite-object/291153
**Category:** flash
**Created:** [June 25, 2009, 10:52am UTC](https://forum.kirupa.com/t/how-to-change-the-dimensions-of-the-sprite-object/291153 "2009-06-25T10:52:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SrihariCh](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)
#### Post date: [June 25, 2009, 10:52am UTC](https://forum.kirupa.com/t/how-to-change-the-dimensions-of-the-sprite-object/291153/1 "2009-06-25T10:52:47Z")

</div>

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:

```auto
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
