July 01, 2007

Flash Clouds Through Actionscript

You Would need Flash 9 or above player to view this content. Please download the latest player from here to View this.

Use keyboard UP and DOWN keys to fly through the clouds.

Thanks to 'Making Thing Move' book by Keith Peters. It really helped me to learn creating 3D Depth in Flash.

Would recommend reading the tutorials on his site to get a hang of it.
http://www.bit-101.com/tutorials/

downloadicon.jpg Download

Posted by Varun Shetty at 05:49 PM | Comments (0)

June 24, 2007

Sine Curve Dragon

You Would need Flash 9 or above player to view this content. Please download the latest player from here to View this.


Was just playing around and got this, well looks like I can take this forward and make it look like a dragon and add a dragon head to it. I will keep that for later.

downloadicon.jpg Download

Posted by Varun Shetty at 05:53 PM | Comments (0)

Sine Curve

You Would need Flash 9 or above player to view this content. Please download the latest player from here to View this.

Was just playing around sine curve in Flash CS 3.

downloadicon.jpg Download AS File

Posted by Varun Shetty at 05:49 PM | Comments (0)

June 21, 2007

Trigonometry in Flash - Using sin & asin to find angles and radians

You Would need Flash 9 or above player to view this content. Please download the latest player from here to View this.


Basic trigonometry functions.
sine of angle = opposite / hypotenuse
cosine of angle = adjacent / hypotenuse
tangent of angle = opposite / adjacent

Conversion between radians and degrees
radians = degrees * Math.PI / 180
degrees = radians * 180 / Math.PI

Pythagorean Theorem
Ab squared + BC squared = CA squared
CA = Math.sqrt(Ab squared + BC squared)
CA = Math.sqrt((Ab*AB)+ (BC*BC))

Sine, Cosine and Tangent
You feed in a angle and it would result in a ratio

Arcsine, Arccosine and Arctangent
You feed in a ratio and it would result in a angle

Additional Notes:
Math.PI = 3.1416 = 180 Deg.
Circle = 2*Math.PI = 6.2832 Radians

downloadicon.jpg Download

Posted by Varun Shetty at 01:45 PM | Comments (0)

January 26, 2007

Flash Rotation - Radiants - degree - atan2


You Would need Flash 8 Player to View this.




Rotation using atan2

click and drag the yellow balls

I was jus replyin to a online query and I figured a lot of people don't try this out.

Radian = Math.atan2(ac, bc);

degree of object = ((Radian*180)/Math.PI);

this is just for some people to remmember it .. including me.. :P

Posted by Varun Shetty at 05:42 AM | Comments (2)