content top

Tutorial: Bus Stop Locator with Google Maps, AS3, and PHP

Tutorial: Bus Stop Locator with Google Maps, AS3, and PHP

For the past few days I’ve been messing around with the API that Google Maps put out for Flash. It lets you use Google maps in your own Flash/AIR applications and customize them however you want. I’m going to explain how to make your own AIR app that lets you display bus routes and stops using the Google Maps API and ZendAMF.

We’re also going to create a function that lets us see the approximate time the next bus will come to any given stop (ex. “5 minutes until the next bus”).

Read More

Tutorial: as3isolib game with Mario RPG sprites and pathfinding

Tutorial: as3isolib game with Mario RPG sprites and pathfinding

I’ve been working with as3isolib for quite some time now and since I can’t find many tutorials on how to do things, here’s a somewhat simple one to create a terrain with a mario sprite (loaded from an external SWF) to walk around in.

You can view the finished product and the source code here (right click to view source).

Read More

Cinema 4D R11 Collada export to Papervision with transparent textures

Cinema 4D R11 Collada export to Papervision with transparent textures

I found this tutorial when I was looking up how to bake textures with Cinema4D with UVW mapping to Papervision.

Taken from: http://inspiration.inlovewith.com/archives/38

Here is a way to load Collada files exported from Cinema 4D R11 into Papervision 2.0, with optionally transparent transparent textures.

Read More

AsyncToken and you.

AsyncToken and you.

It took me forever to finally figure out what to do with asynctoken in Flex 3, so I thought I would give you the jist of what I found out.

Asynctokens allow Flex to wait for an event to happen. Basically.

So if you have a PHP script that takes a bit longer, it tells Flex to wait till it’s done and THEN call the next set of instructions.

Read More

Grab File Extension in Flex/Flash/AS3

Grab File Extension in Flex/Flash/AS3

Here’s an easy way to parse out the file extension of any file in Flex/Flash using AS3.

var filename:String = ”document.jpg”;
var nameParts:Array = filename.split(“.”);

var extensionless:String = nameParts[0];
trace (“The filename is ” + extensionless);

var extension:String = nameParts[1];
trace (“The file extension is ” + extension);

Read More

Parsing out a File Extension in PHP

This function will grab the file extension from a filename, and put it in it’s own variable.

Read More
content top