digitalpencil
Programmer
Hi,
I've been attempting to create a flash app that can tween bmp tranformations using the skewedmoveclip.as class
I've so far managaed to get Flash to skew a rectangular image with the following code:
#include "SkewedMovieClip.as"
var rad = (Math.PI/180);
//
squareMC.setSkew(null, 0*rad);
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
squareMC._yskew = -10*rad;
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
//
squareMC.setSkew(0*rad, undefined);
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
squareMC._xskew = 0*rad;
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
This is working well however, I would like for the transformation to be tweened from a rectangle, to the skewed result.
I'm not sure this is possible with skewedmoveclip.as but if anyone knows how using this class or the sandy distordimage class (or any other methods, fuse etc) then i'd be grateful for the advice.
The following example shows what I'm attempting to do:
I've been attempting to create a flash app that can tween bmp tranformations using the skewedmoveclip.as class
I've so far managaed to get Flash to skew a rectangular image with the following code:
#include "SkewedMovieClip.as"
var rad = (Math.PI/180);
//
squareMC.setSkew(null, 0*rad);
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
squareMC._yskew = -10*rad;
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
//
squareMC.setSkew(0*rad, undefined);
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
squareMC._xskew = 0*rad;
trace([squareMC._xskew/rad, squareMC._yskew/rad]);
This is working well however, I would like for the transformation to be tweened from a rectangle, to the skewed result.
I'm not sure this is possible with skewedmoveclip.as but if anyone knows how using this class or the sandy distordimage class (or any other methods, fuse etc) then i'd be grateful for the advice.
The following example shows what I'm attempting to do: