DistortImage
by Ruben
Today I had a little chat with Thomas Pfeiffer, who created the Sandy 3D engine.
A while ago I came across his AS2 image-distortion class. Remembering that while implementing hardback-pageflip functionality in my Book component, I decided to port the class to AS3.
Thomas was so kind to give me permission to publish my AS3 version of his class on my blog, so here it is:
UPDATE:
Tam Ho posted this link to a Flash CS3 example in the comments, here it is:
flashteam.com.au/dev/DistortImageAS3FlashCS3.zip

Comments (read older or newer, or show 33 trackbacks)
Trackbacks:
[...] into Ruben’s blog, I found that he converted Thomas Pfeiffer’s DistortImage class into AS3. I decided to start building an AS3 class library (it’s about time…), so this is my [...]
Your class looks really cool. I’m trying to use it to build a photo slider where I want to show images distorted based on their position on the screen.
However, I cannot figure out how to set the source dynamically. You embed the source at the beginning but I cannot figure out how to set it with parameters. I’m trying to do something like this: myclass.source=photos[i].source;
Thanks
Thank you Damian. As for your question, it really depends on what your array-value (photos[i]) is, more specifically, it depends on what class it is an instance of.
Please reply to my email if you would like to discuss this any further..
Excellent, thanks for the code and the demo !
Thank you very much! It looks great!
I am trying to use the class in Flash CS3, but it does not work well. I am wondering if you have any Flash samples which could demonstrate me how to use it. Thank you very much!