Category Archives: Downloads

Revised Phlickr getToken Script

Recently have been trying out the API available at To do this, I have been searching and testing all the available Flickr API wrappers available out there in AS3 and PHP.

The AS3 version is well documented and works as well as an API in flash can. What I needed was a good PHP library, and I found one called Phlickr.

It is maintained by Andrew Morton, as well as a host of contributors. It is written for PHP 5, and works like the dream I was hoping for, so kudos to Andrew!

My only criticism is in the documentation, samples, and tools that are located on the Phlickr site.
I understand that what goes into writing something like this so I am not putting it down for this, I’m not putting it down at all! What I am doing is posting a revised Authentication Token script of my own to use in place of Andrew’s provided one.

His script is simple and straight forward and meant to be ran from command-line, which is what he was going for. I wanted a little more info, because it took me quite some time to find out what running this script actually needed. There is also something wrong, the ‘frob’ sent to the Flickr auth url is not the same ‘frob’ needed to set the auth token, at least not in my experiences.

So… I simply revised what he had, made it more self-contained, and explained extensively step by step from within the command-line.

Continue reading Revised Phlickr getToken Script

URL AS3 Class

Custom class dependencies: QueryParameters

This class is an attempt to have an object that will automatically parse any string representing a URL. Similar to the way the JavaScript object window.location parses the window’s URL. The URLĀ string is supplied either through the constructor, or through setting the ‘href’ property. What is important to note is that all properties are read and write, and affect the values of all the other respective properties. Here is a list of all the URL properties:

Continue reading URL AS3 Class

WindowLocation AS3 Class

Custom class dependencies: QueryParameters

The class works exactly the way you think it would except it has a couple of extras. One extra is that this class caches the value of any JavaScript call made by ExternalInterface. This way, if you need to call this class’s property more than once in a script the ExternalInterface method will only run once for the first time. The second extra is that all the URLĀ parameters available in the ‘search’ property, is also available in the parameters property which is an instance of QueryParameters. This means that you may directly access one parameter of the current window’s URL, with all the string parsing already taken care of for you.

Continue reading WindowLocation AS3 Class

QueryParameters AS3 Class

Custom class dependencies: Parameters

QueryParameters is a utility that is meant for working with query strings in Actionscript. It extends the extremely versatile Parameters class, and what it does is fairly simple, yet very useful. It is an object which is automatically converted to a query string. All methods which add/remove properties are overridden to make sure property names and values are always valid Strings ready for use in a URI. All properties may be added like it was a generic object, yet all the extended functionality of the Parameters class is also included like indexing, values, and a length property. In the end, all you need to know is that this class is for working with strings, specifically query strings, and that it does its job well.

Continue reading QueryParameters AS3 Class

Parameters AS3 Class

Custom class dependencies: None

This class can be described best as an indexed Object. This means that all the properties may also be accessed through an index, as well as directly calling the property name. It is just about as open-ended as a class can get while still maintaining some kind of a structure. It is dynamic , but also extends Proxy in order to control the properties. It is not a dictionary, and it is not an array, but a kind of mix between the 2.

Continue reading Parameters AS3 Class

CountDownTimer AS3 Class

Custom class dependencies: CountdownTimerEvent

Everyone always wants to make a count down to something. This is a class that attempts to enclose all the functionality that is usually needed to achieve this task. There a so many examples and tutorials out there for creating a count down, that I won’t bother explaining much here. I will go into a little about the details of THIS class though.

Continue reading CountDownTimer AS3 Class