# As3 mouse Event Urgent

**URL:** <https://forum.kirupa.com/t/as3-mouse-event-urgent/297062>\
**Category:** flash\
**Created:** [September 25, 2009, 1:41am UTC](https://forum.kirupa.com/t/as3-mouse-event-urgent/297062 "2009-09-25T01:41:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![surf](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@surf](https://forum.kirupa.com/u/surf)\
**Post date:** [September 25, 2009, 1:41am UTC](https://forum.kirupa.com/t/as3-mouse-event-urgent/297062/1 "2009-09-25T01:41:20Z")

</div>

The code below implies to a set of dynamic images that are added onto the stage via an xml . once an image is clicked the image is scaled… the setMc() allows it to set the current image to clicked as this enables the same mc to scale down when a different image is clicked…

What can i do to the code so that, the images on the stage that werent clicked would have an alpha of 0;

you can see this in action on [smthakur.com/podking](http://smthakur.com/podking) and then click on “clients”

```auto

private function onClientClick (e : MouseEvent) : void
        {
            var pos : String = e.currentTarget.name;
            var m : MovieClip = e.currentTarget as MovieClip;
          
            if(isClicked == false)
            {
                TweenMax.to(m, 1, {scaleX:1.5, scaleY:1.5, alpha:1});
                isClicked = true;
                setMc(m);
            }
            else
            if(isClicked == true)
            {
                TweenMax.to(getMc(), 1, {alpha:0.8, scaleX:1, scaleY:1});
                isClicked = false;
            }
        }

```
