I am creating a drag and drop product in Flash.

The aim is for users to drag clothes onto a model, but ideally I want the image to enlarge once clicked (so it can be resized to fit the model which is bigger than the clothing images) and to stay the same size once dragged and dropped.

I have looked around on other forums and found the following action script:

blue_cat.addEventListener(MouseEvent.MOUSE_DOWN, resizeCat);

function resizeCat(event:MouseEvent):void {
blue_cat.width = blue_cat.width * 2;
blue_cat.height = blue_cat.height * 2;

blue_cat.addEventListener(MouseEvent.MOUSE_UP, resizeCat2);

function resizeCat2(event:MouseEvent):void {
blue_cat.width = blue_cat.width / 2;
blue_cat.height = blue_cat.height / 2;

However, this script means that the size change happens once per event, every time the object it clicked on it doubles in size. I was wondering if its possible to make the object only enlarge once on the first click, and then any other clicks, nothing happens

Does anybody have any ideas?

I am quite new to working with action script.