Archive

Author Archive

Exporting symbols for Flex using Flash CS3

February 29th, 2008

If you have designers sending you Flash SWFs for buttons and other objects in your Flex application you probably have come across Adobe’s tutorial which may not answer all your questions. The simple question my designer had was “How do I export a symbol?”. Read on to find out how… Read more…

Christopher Flash, Flex

A PHP Redirection Script

December 8th, 2007

This script is intended to be used as an apache 404 error page. When an html document is not found, it will try to find the same document with the php extension, otherwise it will redirect the user to your home page. Save this script as redirect.php and create a file called “.htaccess” in your root directory with the following line: ErrorDocument 404 /redirect.php. Any time a user requests a missing file it should redirect them appropriately.
Read more…

Christopher PHP

Last Modified PHP Tag

December 8th, 2007

Here is another quickie. This tag will add the date a file was last modified to the bottom of your page so guests will know how recent the information is.
Read more…

Christopher PHP

A basic PHP hit counter

December 8th, 2007

The following is a very basic PHP hit counter I wrote some time ago. It uses a browser cookie to prevent the count from increasing by the same user over a short period of time.
Read more…

Christopher PHP

Making the most out of Data Binding

September 10th, 2007

Data Binding is a great way to reduce unnecessary marshaling and marshaling code when manipulating data based on user input. Read on for some neat tips.
Read more…

Christopher Flex

Placing Cairngorm Commands inside Modules

September 8th, 2007

In order to reduce the size of the main application SWF, I have come up with some practices to keep as much code as possible in the module while still utilizing a single event dispatcher and service locator.

I accomplished this by creating a Cairngorm command to register other commands found inside modules. Read more…

Christopher Flex

Making use of Cairngorm ValueObjects

September 2nd, 2007

When I first started working with Cairngorm I didn’t really see the purpose to ValueObjects. I would just define my variables inside the event like many of the examples out there. Then I found an old blog post at richinternetapps.com and was convinced to give them a shot. Read more…

Christopher Flex

Modules Part 3: Adding a Fade In Effect

September 1st, 2007

When the module is ready to be displayed, instead of having it pop-up immediately you can have it fade in smoothly.

Read more…

Christopher Flex

Modules Part 2: Using ModuleManager

September 1st, 2007

The downside to the ModuleLoader component is that you do not have control over when your module is loaded unless you start messing with creationPolicy=”all” but we won’t go there. Instead, you can use the ModuleManager to load your modules when your application is initialized.

Read more…

Christopher Flex

Modules Part 1: Using ModuleLoader

September 1st, 2007

As your application grows, you may find the initial download time becomes unbearable. The solution is to break your application up into separate SWF modules.

Read more…

Christopher Flex