Flash Tutorials
How to Create Randomly Flying Away Movie
How to Place Flat Subject in Space
How to Place Flat Subject in Space (Russian)
How to Use loadMovie Function
How to Skew the Object
How to Load XML File
How to skew...
This chapture is for beginners, that is why it is so detailed.

It can so happen that you want to skew the object in Flash...
If you want to do it in design mode, just select the object or the picture/part of picture (they call it Shape) and choose

  Modify->Transform->Free Transform

in the Main Menu. After that you should see something like:



(we suppose to make parallelogramm from the rectangle). After that put the mouse on the place market by red point and drag it right, for example, you will see:



. It is done.
The way we use in script does not allow to skew pictures or simple objects, unfortunately... But it is possible anyway.
Let's skew the rectangle in script mode. Draw the rectangle and select it. After that choose

  Insert->Convert to Symbol...   F8

in the Main Menu. The window, part of which is below,



will appear. Type in the Name: window Rect and click "OK" button. This way you have created Symbol named by "Rect" in the library. To open library (if it is not opened yet) choose   Window->Library   F11

in the Main Menu. You will see:



somwhere on the screen. Double click on the icon, rounded by red ugly line and you will open design mode of this symbol.You will see just drown rectangle. Select it and choose

  Insert->Convert to Symbol...   F8

again. Type in the Name: window RectIn and click "OK" button. This way you have created Symbol named by "RectIn" in the library. Enter "Rect" symbol if you left it and click on the instance of the "RectIn" symbol. Choose Property for it. Usually it is in the bottom of the main Flash window and looks like:



. Instead of <Instance Name> type mvRectIn, it will be name of the movie clip for using it in Action Script. Go to the scene, click on the instance of the "Rect" symbol. Name it mvRect in the Property box.
Now it is time to write script. Click on the first frame of time line on the scene. Choose

  Window->Actions   F9

to open Action window and type in it:

 //Rotate inner rectangle
mvRect.mvRectIn._rotation=-45;
 //Scale outer rectangle
mvRect._xscale=50;
 //Rotate outer rectangle backword
mvRect._rotation=63.5;


Run the movie. You should see something like:

on your screen. FLA is here: SkewSkew.fla (Macromedia Flash MX).

How can we use it?..
Example. Spinning snowflake

FLA is here: SnowFlakeSpin.fla (Macromedia Flash MX).
Remarks
ellroy
2016-02-05 11:38:21

http://hoverboardsreview.co
m
This is amazing!
Jeffrey erilla
2014-02-20 11:16:00
http://www.google.com
Please send me my confirmation code to this no. 09272959053
Jeffrey erilla
2014-02-20 11:14:58
http://www.google.com
Please send me my confirmation code to this no. 09272959053
sandra
2008-11-18 04:50:42
thanks a lot for this. i found it very helpful !
myuutsuCMCE
2006-12-13 17:04:25
Ok, great trick, but, one question!... 2
:)
There's something variable between angle INNER and OUTTER, and, how I do to make a different skew angle?
Thanks!
cam
2004-08-11 00:48:39
catlam@yahoo.com
http://www.geocities.com/ca
milallam
more of web servers and flash
Add Your Remark:
Your Name*:
Email:
Hide Email    Subscribe to Site News
Web Site:
Message*:
Other tutorials:
JavaScript Tutorials