Change _x _y scale over time

Does anyone know of a way to change the x and y scale of a MC over time so it looks animated with AS. I don’t want to build tweens so I was wondering if there was an AS way of doing it. I just want a MC to look like it is slowly shrinking when a button is pressed.

easily done

place this code on the movieclip in question

if (this.flag==true){

then just add into your “on press” code on the button, something like this


where theNameOfMyMovieClip is the instance name of the movie clip including a logical path to that object.

ie if the movie clip is on the main timeline, you could use

or if it’s inside another movie clip you could use

Thanks david:) I’ll give it a try when I get off work.