October 2007 Archives

I usually try to keep digitalflipbook focused on programming and design and use my other blog to keep people updated on my family and personal life, but I had so much fun doing this that I had to post it for all to check out.
My old band, Quadiliacha, was asked to play a reunion show a few months back and the big day finally came October 18th. I flew back to our hometown Atlanta and everything immediately felt like 1996 all over again.
The show was more fun than I could've ever imagined and I have to thank everyone that was able to come out.
Here are some great pics from that night.
And here is a video of some of the show.
... and in case you're wondering, I'm the one in red.
If you like what you see and you happen to live near Gainesville, FL, we're playing one more show, so get you're ass out there!
Until the final version of Flex Builder 3 comes out (which should have application type as an option under new ActionScript project), there is an easy way to create an AIR application ActionScript Project with the new beta.
All you have to do is create a new Flex Project, set the Application type as AIR, and on the last screen of the new project wizard change the Main application file extension from .mxml to .as. This will then create the main .as file just like it would if you were creating a new ActionScript Project.
That's it. Hit Debug like you would a Flex AIR application and you're well on your way to creating an AS3-only AIR app.
The Flex-Ajax Bridge is a wonderful little code library that completely opens up a swf to be controlled via JavaScript. Quoting the Flex-Ajax Bridge Labs page, "essentially anything you can do with ActionScript, you can do with JavaScript." At least as far as I know, up until now this has been limited to use with the Flex framework and could not be used with a standard AS3 project.
With a recent project we worked on, we really didn't need the entire Flex framework, but did however desperately want to use the capabilities of the Flex-Ajax Bridge. After a little digging in the framework code and a little more testing, we found out that its completely possible to use the Flex-Ajax Bridge with standard AS3 projects as well. Quite possibly the name should be changed to Flash-Ajax Bridge instead. We used this with the original FABridge source that was released quite a while ago, but right before posting this I tested it with the latest Flex Builder 3 Beta (which finally includes the code, so you don't have to search random sites for it).
Note: I'm really not sure how this fits in with the EULA, so use at your own risk.
With the latest Flex Builder 3 Beta, copy the following sourcecode from the frameworks directory and paste them into your AS3 project source directory:
1) FABridge.as
from: /sdks/3.0.0/frameworks/javascript/fabridge/src/bridge/
to: bridge/
2) FABridge.js
from: /sdks/3.0.0/frameworks/javascript/fabridge/src/bridge/
to: your bin/js/ directory
3) IMXMLObject.as
from: /sdks/3.0.0/frameworks/projects/framework/src/mx/core/
to: mx/core/
4) Version.as
from: /sdks/3.0.0/frameworks/projects/framework/src/mx/core/
to: mx/core/
5) mx_internal.as
from: /sdks/3.0.0/frameworks/projects/framework/src/mx/core/
to: mx/core/
6) ItemPendingError.as
from: /sdks/3.0.0/frameworks/projects/framework/src/mx/collections/errors/
to: mx/collections/errors/
7) IResponder.as
from: /sdks/3.0.0/frameworks/projects/framework/src/mx/rpc/
to: mx/rpc/
Once you get those 6 classes and 1 js file into your AS3 project, you're good to go!
To test, in your AS3 project base class create a new FABridge instance, then set the rootObject property of the instance to "this" (the base class reference). Give the bridgeName property of the instance a name and then in js you reference the flash bridge with that name, like the following: FABridge.[bridge name].root(). Now follow along to the tutorials on the Labs page.
That's it... nothing to it.
Just remember, until we find out some more information regarding the EULA on this topic, use at your own risk.