Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by cactusphone

  1. If you start with a large graphic, make it 1/4 or 1/5 of its original size by resizing, it will have jagged edges, and lose some clarity. Resampling is what a program like photoshop performs by default when an image is resized. Here is an example I put up: http://sandbox.rmurdoch.com/resize.html I am still new to flash, so I don't even know if there are resampling functions available/flash is capable of it, I have yet to find any in my searches. This was just a long shot. I can use phpthumb when initially loading the image to resample, it would just be nice to have smoother resizing of the image take place. This isn't a TransformManager specific issue, but flash in general for me when using the scale function. I was curious if anyone else here had experience with this, if this is outside the realm of the forum I apologize.
  2. Has anyone used a resampling function instead of resizing in conjunction with TransformManager? Is this even feasible in flash? Thanks.
  3. Hi, is there a way to reference a ColorPicker's pop up box to also have the TransformManager ignore clicks on it? Adding the the ColorPicker to ignored object works for the initial click, but not the click on the color you choose. Thanks.
  4. My Class is shown below, the onScale listener function fires and displays the trace. However the onSelectClip1 produces no output. Anyone know why this might be happening? If it helps shed any light, the Delete function seems to also not be working, I tested it after uploading my swf, as opposed to in Flash itself. Thanks. public class GraphicItem extends Sprite { public var theSprite:Sprite = new Sprite(); public var loader:Loader = new Loader(); public var manager:TransformManager = new TransformManager({targetObjects:[theSprite],constrainScale:true,arrowKeysMove:true,allowDelete:true}); public function GraphicItem() { } public function AddSrc(src:String){ var request:URLRequest = new URLRequest(src); loader.load(request); loader.mouseEnabled = false; theSprite.addChild(loader); addChild(theSprite); manager.addEventListener(TransformEvent.SELECT, onSelectClip1); manager.addEventListener(TransformEvent.SCALE, onScale); } function onSelectClip1($e:TransformEvent):void { trace("selected myClip1"); } function onScale($e:TransformEvent):void { trace("Scaled " + $e.items.length + " items"); } }