Jump to content


  • Posts

  • Joined

  • Last visited

ofirpicazo's Achievements



  1. Thanks a lot, your fix works and solves my problem Keep up the good work!
  2. I'm using Flex 4, and whenever I switch to a state where the Transform Manager does not exist the following exception is thrown: My TransformManager is defined like this: x="130" y="100" width="698" height="413" constrainScale="true" forceSelectionToFront="false" autoDeselect="false" hideCenterHandle="true"> Is there anything I'm doing wrong? How can I catch and dismiss this exception?, since it doesn't affect my app at all, except for the annoying message. I'm using library version 1.882. Thanks for your help.
  3. Thank you very much, I've downloaded the updated version and it works correctly on Flex 4. Cheers
  4. Thanks for the quick reply, that solution seems to be working fine for Flex 3, but I'm using Flex 4 and it doesn't work. Here's my code: xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:transform="com.greensock.transform.*" minWidth="955" minHeight="600"> arrowKeysMove="true" width="500" height="500" allowDelete="true" selectedTargetObjects="{[image1]}" > id="image1" autoLoad="true" x="70" y="100" rotation="-15" /> Is there any other way I can achieve the same effect in Flex 4?
  5. Is there a way to tell the manager to initially select one of its targetObjects? I need one the items inside the FlexTransformManager to be preselected when the application starts. Is this possible? Thx
  6. I have the following code: var transformManager:TransformManager = new TransformManager({ bounds: new Rectangle(0, 0, 680, 344), allowDelete: true, handleFillColor: 0xFFFFFF, lineColor: 0xFFFFFF }); canvas = new MovieClip(); canvas.graphics.beginFill(0xFFFFFF, 0); canvas.graphics.drawRect(0, 0, 680, 344); canvas.graphics.endFill(); canvas.x = 145; canvas.y = 145; rawChildren.addChild(canvas); private function agregaLetra(evento:ListEvent):void { var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(evento:Event):void { canvas.addChild(loader); transformManager.addItem(loader); }); loader.load(new URLRequest(evento.itemRenderer.data.image)); } The function is a listener that responds to selecting an item in a HorizontalList, it adds an image to the canvas using a Loader, but for some reason the transformManager does not show the selection box or the handles, although it lets me drag the element around. Does anyone have an idea why?, please help!!