You are viewing the Articles published in

PHP Email class

I found an email class that I wrote awhile back in php for sending emails from Flash. To use it simply instantiate an instance of the Email class and pass in the recipient, subject, name, email address and message (see usage example below).

Click here to download the source files

Zen Doc: JavaDoc Generator for ActionScript

I can’t begin to tell you how many projects I have worked on where there is literally NO documentation what-so-ever. And I am not without blame myself. Personally I try to avoid writting comments mixed in with my code and substitute comments with good, self explanatory naming conventions and clean code. This is good for me but someone else may not understand my code in detail. I have always liked the javadoc commenting style and even more importantly I have always been impressed with javadoc document generation.

So I did a quick search for ActionScript JavaDoc generators and found “Zen Doc”, an awesome JavaDoc Generator for ActionScript. I will begin using this personally and professionally and may possibly make it a standard for all codebase members.

Check it out at:
http://www.senocular.com/


Check out the Demo;
http://www.senocular.com/projects/ZenDoc/index.php

AJAX Desktop Beta

I used to build lots of .swf’s embedded in html pages and set the html page as my desktop as oppossed to just having an image set as my desktop. This was cool because the swf would read from an xml file and add links that I can access directly from my desktop. I also had various effects and what not as well as news aggregators, clocks and an mp3 player. The only problem that I couldn’t seem to solve is that when I would try to make a selection on my desktop focus was on the .swf and not the desktop. So this was a problem.

My solution was to do the same exact thing but in AJAX rather than flash this way focus would remain on the desktop. Below is a link to the working sample as well as a link to the source files for you to use as you wish. Simply add all of your favorite images in the images folder and then modify the ajax-desktop.js file and add your images as indexes of the ‘imagesArray’. Everytime you boot up you will have a different image load randomly as your desktop. You can add links to your executables allowing you to rid yourself of desktop icons as well as links to your favorite sites.

Sample:
ajax-desktop.html

Download Source code:
ajax-desktop.zip

Flex 1.5 PopUpWindowHandler

Below is a quick class that I wrote this morning for managing popup windows in mxml / Flex 1.5. It is an all static class therefor it is easily managed. All that is required is that you pass two arguments to the createPopUp method. the first argument is the scope of which the popup need be created and the second is an mxml component which should be instantiated in the popup window.

ActionScript 3.0 | Flex 2.0 JavaScript Interaction

I have been spending the majority of my free time learning the new API’s available in ActionScript 3.0 and Flex 2.0. I will be posting many of these new AS3 applications to my portfolio site as I write them. I will also make the code available in the future as well.

One of the really cool API’s that I have been buildng prototype applications with is the ExternalInterface. It allows for interoperability between ActionScript and other languages such as Javascript, C# and Java. I built a JavaScript Interaction prototype utilizing the External Interface API which you can view at the following:

AS3.0 JavaScript API

FLEX 2.0: Beta 2 Released

Adobe released Flex 2 Beta 2 today. I have been building prototype applications in Flex 2.0 / ActionScript 3.0 this past few months and the new API’s in ActionScript 3.0 are simply amazing. There is a slight learning curve as most of the core AS 2.0 classes have been repackaged and many are now considered legacy classes or deprecated. But this is a step in the right direction as AS 3 now implements the ECMA-262 specification bringing it in compliance with a well established industry standard, similar to C# and Java.

You can learn more at:

http://labs.macromedia.com/flexproductline/