Tutorials for photoshop, javascript, php, html, css, flash, and more!

tutorials for photoshop, javascript, and php
   The Machine | Search for a cog | Submit a cog

Flash is mainly known as a program dedicated to producing animations and applications for the web that run in a web browser. This situation has evolved over the past few years with a couple of programs known as SWF wrappers, Flash wrappers or SWFtoEXE programs, that open the door of desktop application development to a lot of Flash developers and Flash designers.


Flash projector files are self-contain Flash content that users can run by itself on their desktop. Learn how to create these files.


Knowing the direction of the player may be very useful if we decide to add some special features to our game.
I explain in this tutorial how many pretty things you can do if you know the direction your player is moving.


Rope simulation, surge action and bubbles with collision detection. Includes source fla and .as scripts with commented code.




Box2DFlashAS3 is an open source ActionScript 3.0 conversion of the C++ Physics Engine Box2D. I’m very impressed with its well coded structure and easily implemented nature. I learned a few new things that will change how I code forever just by reading through their example files.


How to simulate gravity in Flash, one gravity well per affected object. Each effect can be set independently, strength for instance.


We are going to make a script that will make circles collide with each other. This would be very hard to do with hitTest()’s so we are going to use a small amount of trigonometry. Don’t let the big word or its meaning scare you. All we are going to need is 9 lines of script.




Full walkthrough on how to program the classic lens simulation.


Learn how to rotate an object with as3 and trigonometric functions.
To illustrate that we are going to build the rotation of the moon around the earth.


A simple tutorial showing how trigonometry can be applied to a Sprite to make it move towards the mouse, including boundaries and events