# sizeRestrict w/senoculars freeTransform.as

**URL:** <https://forum.kirupa.com/t/sizerestrict-w-senoculars-freetransform-as/202208>\
**Category:** flash\
**Created:** [September 28, 2006, 7:05pm UTC](https://forum.kirupa.com/t/sizerestrict-w-senoculars-freetransform-as/202208 "2006-09-28T19:05:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)\
**Post date:** [September 28, 2006, 7:05pm UTC](https://forum.kirupa.com/t/sizerestrict-w-senoculars-freetransform-as/202208/1 "2006-09-28T19:05:21Z")

</div>

I am using the freeTransform.as script found on [senocular.com](http://senocular.com). I have tried to follow the definition as closely as I can, however, it doesn’t appear to be working. Can anyone help; senocular are you out there?

```auto

stop();
var restrict = {xmin:50, xmax:200, ymin:50, ymax:100};
customStyle = new FreeTransformStyle([1, 0x0000ff, 100], [20, 0xFFEEAA, 75], ["s", null, null, null, "r", null , null, null], true, 2, restrict);
customStyle.customCursor(["r", "spin", 2], ["s", "scale", 2, true], ["m", "move", 1]);
2:hide, 1:nohand, 0:hand;
//customStyle.addHandle("r", 4, 1.5);
with (square) {
 myClip.onPress = function() {
  this.addFreeTransform(_root.customStyle);
 };
}
deselect.onRelease = function() {
 customStyle.removeAll();
};
reset.onRelease = function() {
 _root.play();
};
//

```
