# Checking the state of another movieclip?

**URL:** <https://forum.kirupa.com/t/checking-the-state-of-another-movieclip/299965>\
**Category:** flash\
**Created:** [November 13, 2009, 2:32pm UTC](https://forum.kirupa.com/t/checking-the-state-of-another-movieclip/299965 "2009-11-13T14:32:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRPLC](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MRPLC](https://forum.kirupa.com/u/MRPLC)\
**Post date:** [November 13, 2009, 2:32pm UTC](https://forum.kirupa.com/t/checking-the-state-of-another-movieclip/299965/1 "2009-11-13T14:32:13Z")

</div>

Hi,

I have a series of movieclips placed on the stage, that I have all given the same base class.

When a movieclip is clicked, they scale up to 100%, and when clicked again, they scale back to their initial scale.

What I would like, is to make it so that if another movieclip has already been scaled up previously, that movieclip will scale back down to it’s original size, before the other movieclip that has just been clicked on, scales up. This is the basic code I currently have for all my movieclips:

```auto
private function fullImage(event:MouseEvent):void
        {
            parentX = MovieClip(parent).x;
            parentY = MovieClip(parent).y;
            
            if(down) {
            Tweener.addTween(event.target, {_scale:1, rotation:0, x:stage.stageWidth/2-parentX, y:stage.stageHeight/2-parentY, time:0.5, transition:"easeOutCubic"});
            down = false;
            }
            
            else {
            Tweener.addTween(event.target, {_scale:originalScale, rotation:originalRotation, x:originalX, y:originalY, time:0.5, transition:"easeOutCubic"});
            down = true;
            }
        } 

```

Any ideas? I’m having a brain-freeze! Cheers!
