Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8222677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:21:38+00:00 2026-06-07T14:21:38+00:00

I have an AS3 bitmap image that I would like to skew like so:

  • 0

I have an AS3 bitmap image that I would like to skew like so:

I would only like to skew the bottom part of the image, and leave the top part alone. Based on my research that I’ve done so far, it looks like I’d want to use the Matrix3D class, but I’m not quite sure how to effectively implement it.

Thanks to an answer below, this article is an excellent resource to understand the Matrix3D class with a 3×3 matrix:
http://www.senocular.com/flash/tutorials/transformmatrix/
However as awesome as that tutorial is, it does not provide the capability to skew the above image. What I’m looking for is a similar tutorial on how to use a 4×4 matrix. All I’d like to know is where to put the numbers in the matrix, and I should be able to figure out everything else.

Here’s some example code on what I’ve got so for:

var tempLoader:Loader=new Loader();
var tempBitmap:Bitmap;
var fattenTheBottom:Number;
tempLoader.load(new URLRequest("image.png"));
tempLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,castBitmap);
function castBitmap(e:Event):void
{
    tempLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,castBitmap);
    tempBitmap = Bitmap(tempLoader.content);
    // Make the image into a trapezoid here using fattenTheBottom
    addChild(tempBitmap);
}

Any advice would be wonderfully appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:21:41+00:00Added an answer on June 7, 2026 at 2:21 pm

    If you want a quick way using Matrix3D, here is an example of the kind of values you should use:

    var m3d:Matrix3D = new Matrix3D(Vector.<Number>([
        1, 0,    0,    0, 
        0, 1.15, 0.25, 0.00005,
        0, 0,    1,    0,
        0, 0,    0,    1
    ]));
    tempBitmap.transform.matrix3D = m3d;
    

    But soon you will notice that this approach distorts the image in ways you don’t want. For example, it will horizontally squeeze your image on one side (as you want), but the contents of the image will be stretched vertically as well. Hard to explain, but once you try the above method, you will notice how the image is being vertically stretched.

    The same kind of effect can be obtained by using rotationX combined with PerspectiveProjection, and scaleY.

    If you want a more elegant solution, both in code and image results, try out DistortImage. The method there is not straight-forward (uses a mesh of subimages), but has great results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a movie clip that holds one bitmap image, some simple AS3 to
i have a AS3/FL10 based application that renders/animates/filters (blur) large PNGs (1 per view)
I have some as3 code under development that I'd like to migrate to as2
I have a AS3 swf [1] that is loading another AS2 swf [2] which
Many library classes in AS3 have read only properties. Is it possible to create
I have just started coding in AS3 and it would be really great to
I have a very simple AS3 app that draws few circles using drawing api
Here's one for the maths demons out there! I have an as3 app that
Since the advent of AS3 I have been working like this: private var loggy:String;
In pure AS3, I have a pixelbender and a large bitmap. The pixelbender is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.