Articles Tagged "Tutorial"

PageFlip for Newer SWF Players Released

If you’ve been having trouble getting the Flash Page Flip Effect to work with newer versions of the Flash Player, then this new tutorial explaining How to Publish PageFlip for Newer SWF Players should solve all your problems.

PageFlip Transformation Tutorial Released

I’ve released a new tutorial explaining how to transform the Flash Page Flip effect. This tutorial provides a simple method to help you easily visualize the position, rotation and scale of the Flash PageFlip book.

Tutorial for Resizing Page Flip Added

A new tutorial has been added to the PageFlip Help Section which explains how to resize the PageFlip by changing the size of the pages. If you’ve been having trouble changing the dimensions of the PageFlip book then this tutorial will help answer your questions.

Draw an Arc with ActionScript

Drawing an arc (a segment of a circle’s circumference) is very similar to drawing a complete circle. Just like drawing a circle, drawing an arc requires you to specify the center, the radius, and the number of steps to take from the first point to the last. But drawing an arc also requires additional information such as the angle of the first point on the arc, the direction (clockwise or counter-clockwise) to travel around the circle’s circumference, and the angle of the last point on the arc.
Read More

Basic Circle Drawing ActionScript

Do you know how to draw a circle with ActionScript code? It’s a handy thing to know. You can use it to draw pie charts, equilateral polygons, analog clock faces… you can even use it to script motion. If you use Flash for any type of drawing purposes, knowing the math behind the circles (trigonometry) can be very helpful. In the simplest of terms, drawing a circle can be as easy as counting from 0 to 1.
Read More

ActionScript Easing Functions

Unlike most other easing equations or functions, my easing functions are 0 to 1 based (like the “Math.random” function). This makes it easier to isolate the concept of “easing” from the concept of “tweening”. Tweening is responsible for creating a series of equidistant values between an initial state and a final state. Easing is responsible for shifting those values so they are no longer equally spaced.

There are times when you may want to weight a single random value to favor one number over another. For example, you may want a random number between 0 and 100 but you would prefer a number closer to 0 than to 100. In this situation, there is no need for a “tween” as you are only generating one number and there is nothing to go be”tween”. This is where easing functions which have been isolated from their tweening counterparts can come in handy.

Here are my most frequently used easing functions:
Read More

How to Limit a Number Between 2 Values

Limiting or constraining a number to a specified range of values isn’t the most common task you’ll have to perform in Flash, but it does pop up from time to time. If you encounter such a situation here is a little bit of code for your consideration:
Read More

© Sean O'Shell 2007-2024