Jump to content
Search Community

Search the Community

Showing results for tags 'applyItemXML'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hey everyone, I have a problem with de FlexCrop and the applyItemXML on the TransformManager. I hope you can help me out. On my TransformManager i have a image with a FlexCrop object. This works all fine. Next i save the image proporties and the FlexCrop object separately in the database along with the xml from the function exportItemXML(). Also this is done without any problems. If i want to put back the image and FlexCrop object in to a new TransformManager the FlexCrop object while not apply to the image object. I see that the FlexCrop object is set, the double click is there. And the FlexCrop object on the Transfrommanager has his saved properties applied because the width, height, scale and rotation are set. My question: What is the right way to reload a FlexCrop object and his target object? can someone give me a simple example of a working peace of code? The code i use now: First add the image object: var _newImage:Image = Image(); _newImage.addEventListener(FlexEvent.READY, readyFunction); _newImage.name = [unique name]; _newImage.source = [the image source]; myTransformManager.addElement(_newImage); Than add the FlexCrop object when the above READY event is triggered: private function readyFunction(evt:Event):void { var _imageCrop:FlexCrop = new FlexCrop(DisplayObject(evt.currentTarget), myTransferManager, true); _imageCrop.name = [unique name]; //_xml is a var outside this function and contains the //proporties recieved from the exportItemXML() myTransferManager.applyItemXML(_xml); _imageCrop.update(); } I am working with Flashbuilder 4.6 Thanks... Dennis van Rijswijk
×
×
  • Create New...