Jump to content
Search Community

zackattack27

Members
  • Posts

    3
  • Joined

  • Last visited

zackattack27's Achievements

0

Reputation

  1. Have you tried adding smoothing? I just found out about this handy little line of code that you apply to a Bitmap instance. It made all images look a lot better when I scaled them up. example - var bmd:BitmapData = new BitmapData(mc.width, mc.height, true, 0x00000000); bmd.draw(mc); var bmdCopy:Bitmap = new Bitmap(bmd); bmdCopy.smoothing = true; var holderMC:MovieClip = new MovieClip(); holderMC.addChild(bmdCopy); manager.addItem(holderMC);
  2. Thanks for the reply. I was able to get it to work by moving all the elements I needed from the loaded .swf to my main .swf. Did the same exact thing except for calling to the .swf I now call to the stage. Works Perfect, but kinda defeats the purpose of loading in .swf files. Overall though I LOVE this class. Great Work
  3. So I just purchased the Transform Manager class and am having trouble getting it to work. What I am doing is loading images from xml and putting them in a MC. The MC I am putting the loaded images in is held in a loaded .swf from there the user can click left and right to load new images. When the user decides they want to use an Item they click on it. That click moves the item from the MC in the loaded swf to an MC in another loaded swf. I do this by the addChild method. Everything works great. The only problem I am having is once I move the image to its new location and apply the TransformManager it breaks. No error messages or anything. I just get the arrow cursor on the whole stage and can not transform the item. I have tried manager.addItem(mc); then I add the manager.selectedItem(mc); line. Now when the image moves to its new location I can see the bounding box and everything looks fine. Once I select the bounding box it just breaks and no transform happens. That is the basics of the problem. What I am wondering is if I add the item to a loaded swf that has a mask over it will that break the transform manager? Can you even do this? here is kinda what I am doing... var manager:TransformManager = new TransformManager(); var mc:MovieClip; // load the xml // load the image and place in a loaded swf MC holder. image1_mc.addEventListener(MouseEvent.CLICK, image1Click) function image1Click(event:MouseEvent):void { loadedSWF.mc.removeChild(image1_mc); newLoadedSWF.mc.addChild(image1_mc); manager.addItem(image1_mc); manager.selectedItem(image1_mc); } Like I said this will do what I want and show the bounding box, but when you click on the image1_mc movieclip it gives the arrow cursor on the whole screen and will not transform anything. no error messages or anything. I must be doing something wrong. Hope this makes sense.
×
×
  • Create New...