Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by matshriver

  1. Thanks, this works well. If possible, I'd like to use this with crop objects (from greensock crop class). Is there a way to apply the matrix of the crop sprite from one crop object to another? maybe by drilling down from the transform Item level or somehow casting the class. Thanks in advance
  2. I'm not using Flex. I'm using Flash and exporting an swf
  3. Here is some of the code. var manager:TransformManager=new TransformManager({targetObjects:[],allowDelete:true,autoDeselect:true,arrowKeysMove:true,hideCenterHandle:true}); MovieClip(parent).Layout.Lines.addChild(array[increm]); var clip1Item:TransformItem=null; clip1Item = manager.addItem(array[increm]); clip1Item.maxScaleY = 1; clip1Item.minScaleY = 1; Do you have examples of code somewhere so that I can see the sytax in use? Thanks
  4. Hi, I am interactively drawing a horizontal line and have added it to a transform manager. All is working well except now I'd like to constrain the height so that I can stretch the line to be longer or shorter without making it fatter. I am not sure if this can be done. One approach might be to use something like: clip1Item.maxScaleY = 1; clip1Item.minScaleY = 1; Can this be done? If so, what would be the correct syntax? Thank you -mat
  5. Hi, I'm having trouble deleting objects. The code I'm using works but it generates an error #1009: Cannot access a property or method of a null object reference. at gs.transform::TransformItem/onMouseUp() var clip4Item:TransformItem=manager.addItem(array[increm]); clip4Item.addEventListener(TransformEvent.SELECT, Identify); function Identify($e:TransformEvent):void { for (var i=0; i removeChild(manager.selectedTargetObjects); } } Thanks very much for any help.