what?
method to slice out a triangle out of an image and transform the triangle in a way so that it is suited perfect for shearing.
skewing?
yes just like in flash IDE, illustrator or even Photoshop you can skew media in flash via actionscipt
though I´d recomend the newer way with [Flash 8 AS2]+ technique. Not rotating a cascaded scaled again rotated movieClip- that´s just nuts.
sample FLA of the uppper sample image:
http://www.renderhjs.net/bbs/flashki...w_function.fla
or test it online:
http://www.renderhjs.net/bbs/flashki...w_function.swf
how?
My guess is that there are several ways archiving this in Flash what the illustrations show. But for my way I used cascaded containers/movieClips where each one of them affects their children when they become transformed, diagram:
once I transformed the slice of the original image and somehow got my triangle I copy the result as a bitmapData object (use draw();). That way I skew only the BitmapData object without the unecessary cascaded elements.
code?
I´ve written my first test for this in Flash 8 AS1/2 and...
...the code is a "MESS" but if you dont care about that grab it here:
http://www.renderhjs.net/bbs/flashki...v_bitmap10.fla
or test it online:
http://www.renderhjs.net/bbs/flashki...v_bitmap10.swf
what for?
lots of things,- one popular of them:
textuized 3d models in flash like my current developemnt:
http://www.renderhjs.net/bbs/flashki...demo/index.htm
why
been porting the whole 3d- engine i´ve written so far to AS3 and seemed usefull for me writing down how I did it. In AS3 there are some changes to some commands and I had (still have to) debug alot- this illustration helps me alot.









Reply With Quote