Category 'tutorials' :


Quick tip: Find the distance between two points in Flash

When programming in Actionscript 3.0 you will at some point need to find the distance between two arbitrary points on the stage. This is most true when developing applications with dynamic graphics such as Flash games. Here are two methods of finding the distance between two points on the stage.
Continue reading


Quick tip: Creating a blurred mask in Flash

Have you ever wanted to mask an image in Flash using a soft, feathered edge shape? Here is a quick tip on how to create a blurred mask in Flash using a little bit of Actionscript 3.0.
Continue reading


Quick tip: Setting volume in Flash

Here is how you go about setting the volume of sound in Flash. There are two ways of setting volume, either on a per-channel basis or globally across all channels.
Continue reading


How to save data to a Flash SharedObject

Since version 6, the Flash player has had the ability to write data to a user’s computer inside of something called a SharedObject. This article hopes to explain a little about what a SharedObject is and how you might go about using one in your next Flash project.
Continue reading


An alternative to bitmap transparency in Flash

When it comes to using transparent bitmap images in Flash often you will find using a PNG is your best option. However, a major caveat with using PNG images is the significant increase in file size compared to non-transparent image types such as JPEGs and (non-transparent) GIFs. This often becomes an issue when working on projects with limited allocated file size, such as banner ads.
Continue reading


How to communicate between multiple Flash files with LocalConnection

Have you ever come across a website containing banner ads of the same creative which appear to be in sync? Here I’m going to demonstrate how this is done by giving an example of how to use the LocalConnection class in Actionscript 3.0.
Continue reading