Dynamic length of a rectangle

Does anyone know how to make a rectangular box that has a dynamic length ? Like I want to change it’s length or height at times when certain buttons are triggered, how do I define such a parameter? Or is it not possible? Thx in advance.

Make a 100*100 square and turn it into a clip. Let’s say you call it square and that you have a button on the scene:

theButton.onPress = function(){
square._xscale = 354; // any length you want
square._yscale = 213; // any width you want
}

pom :slight_smile: