Creating a Image Crop Tool in Flex 2
I haven’t done much Flex 2 programming lately. Now that I am a full time SEO geek, I rarely get much time to code, which is shame. I love programming. There is something almost magical about creating something really cool out of nothing but a few hundred (or thousand) lines of code. So I dug through my past Flex 2 projects and revived a simple example I did almost a year ago. I can’t take full credit for this example. I got some of this code from somewhere, but I have no idea where. If you came up with any of this code, leave a comment and I’ll make sure you get credit for it.
Basically we record the X & Y coords from where the mouse starts on it’s first press down (event MOUSEDOWN). We then track the mouse until the user releases the mouse button. We then use some Bitmap methods to copy the area from the original image to the cropped image.
You can also right click inside the example to view the source code. But go easy on the source code. Remember this just an example.
Leave a Reply
You must be logged in to post a comment.
Recent Comments