Resizing a square simple no?

Hello world!!!

I want to have a button change the dimensions of a square in my flash document.

It sounds simple enough to me but after a day of searching i am very frustrated, i don’t know nearly enough about flash to know where i should start looking to find the answer myself. And all the examples i find in forums are over complicated or have little or no explanations.

Someone point me in the right direction please.

desperate? i think so.

Put your square into a movieclip - myMC:

myBtn.onpress = function(){
myMC._width = // enter new width value in pixels here
myMC._height = // enter new height value in pixels here
}

myBtn.onpress = function(){
myMC._width = // enter new width value in pixels here
myMC._height = // enter new height value in pixels here
}

Note: AS2 is case sensitive…

myBtn**.onPress **= function(){
myMC._width = // enter new width value in pixels here
myMC._height = // enter new height value in pixels here
}