开发者

Flex skew Object

开发者 https://www.devze.com 2022-12-14 20:20 出处:网络
I was wondering how 开发者_如何学Cto distort a Flex object like Panel so it looks like a trapezoid? Are you trying to do something like this? Flex skewing

I was wondering how 开发者_如何学Cto distort a Flex object like Panel so it looks like a trapezoid?


Are you trying to do something like this? Flex skewing

    private function skewit():void {
        var smat:Matrix = new Matrix();
        smat.b = Math.tan(50);
        var mat:Matrix = myobject.transform.matrix;
        mat.concat(smat);
        myobject.transform.matrix = mat;
    }

http://livedocs.adobe.com/flex/3/html/help.html?content=15_Geometry_6.html


If you're really serious about this stuff, you should write it in ActionScript and pick up the book Numerical Recipes and read the chapter on "Computational Geometry". It will probably answer all your questions and more! Have fun :)

0

精彩评论

暂无评论...
验证码 换一张
取 消