Jump to content
Search Community

foldiman

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by foldiman

  1. I'm trying to prevent a transform item from flipping using setScaleConstraints(). However, it's not working. Here's my code. var TformManager:TransformManager = new TransformManager({scaleFromCenter:true, forceSelectionToFront: false, lineColor: 0xb9d4dd, handleFillColor: 0xd9f5ff}); var userPicItem:TransformItem; userPicItem = TformManager.addItem(userPic_cont_mc); userPicItem.setScaleConstraints(.1, 2, .1, 2); Is this the correct approach for what I'm trying to do? Thanks.
  2. Now that I'm transforming images, I'd like to capture the distorted image for later use in my Flash app. Problem is, when I try to capture the bitmapData of the Display Object that I'm transforming, I get the original, non-transformed data....not the data from the transformed image. Does anyone have suggestions for capturing the image data of the transformed image as bitmapData? Thanks.
  3. Yes, got it working. I requested the image from a URL using a loader that had ".contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);" attached as an event listener. On complete, the handler added the child object to a parent that had an Event.ADDED attached. That final ADDED event called the TransformManager. Once called I ran deselectAll() and then selectItem() with the addToSelection parameter set to "true". Thanks.
  4. I'm loading an image from a URL and then adding it as a child to a moveClip. I'm then targeting this movieClip when I create a new TransformManager. I would now like to have that movieClip auto-selected rather than making the user click the image. I've tried using selectItem and setting the AddToSelection to true. This only draws one handle in the top left of the image. Is there a way to auto-select the DisplayObject that's targeted by the TransformManager? Thanks.
×
×
  • Create New...