I want to use Image Reflection in trapezoid shape. That why i ask how to create trapezoid shape with the class of matrix
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For shear mathematical reasons you can’t achieve this with the Matrix class per se.
However, the effect you are looking to achieve, i.e., having an image or component reflection look as though it has 3D perspective, can be achieved as long as you are compiling for Flash Player 10, or greater. You can do this using the Matrix3D class, which allows you to affect pseudo-3D transformations (projective transformations) in Flash.
Example
In the MXML:
and in the script block:
You’ll probably want to play with the numbers a bit to affect the look you’re going for, but this is the way to go about it.
Note: Any transformations (like setting x, y ) in the MXML will be overridden by the
reflectImagefunction.