Hopefully not just another Wordpress Blog.
Uncategorized
as3signals – An Awesome Solution to Events/Signals in AS3
Feb 2nd
There has been quite a lot of buzz lately in the community about a new library by Robert Penner called as3-signals. John Lindquist recently posted a video tutorial on using it, and I thought I’d follow up with a nice text-based tutorial explaining the common ins-and-outs of the library.
More >
Flex 4, Ant, and an OutOfMemoryError
Jul 24th
Today, however, I ran into a problem with running the Flex MXMLC Ant task to compile my application. I kept getting a Java OutOfMemoryError whenever I’d try to compile. Initially, I wasn’t seeing this problem, but as my application got more complex, like it always does, I couldn’t be rid of the problem.
Luckily for you and I, a few people have run into this before and so I got a few pointers from a couple colleagues on how to work around the problem.
The first workaround I stumbled upon was a Windows-specific fix (for running ant from the command-line): http://n1aub0.cowurl.com | Apparently, you can set an environment variable “ANT_OPT” to include default JVM arguments when running Ant from the console.
The workaround that really fixed the problem for me in Eclipse was found on Sönke Rohde’s blog. Mad props to Sönke for finding a way to fix this. Again this fix isn’t something new to me, but it’s just nice to have these links laying around whenever you run into them. Adjusting Java’s memory size isn’t necessarily an “easy” thing to do, so it helps to have a reference.

Lametarded Firefox Flash Player Crash
Jan 29th
http://bugs.adobe.com/jira/browse/FP-17
This is the lamest thing in the history of forever. It will crash Firefox 90% of the time. How does it happen?
Basically the scenario is this: if Flash Player originates a resizing of itself on the page, Firefox will immediately crash and close. Can’t be any more clear than that. Why was I trying to get Flash to resize? My current project needed to have a “sidebar” which would expand when necessary, displaying content when it was needed, hidden when it wasn’t. I used a really sweet Javascript tween library as well as JQuery to make it all happen, and it worked fine when the animation was triggered by a HTML button tag.
But as soon as I tried doing it with Flash Player, I was presented with more than an hour of crashing Firefox. There’s no consistent way to make it work, period.
If you are suffering from this horrible Flash Player plague, I feel your pain. This really sucks.
Dependency Injection via Spring
Sep 29th
I’ve been doing a lot of work with Spring and java persistence lately, and I’ve definitely been loving it. Dependency injection is one of the coolest things I have ever seen in developing Java systems and Spring allows you to almost externalize all of your classes’ needs and eliminate the ‘new’ operator altogether. This is amazing to say the least. Having started all of my coding in Actionscript 2, the world of Java is somewhat foreign to me, but refreshing to say the least.
I built some of my first generic classes and interfaces the other day and I take what I said about generics back, they are extremely useful. By extending and implementing these classes and interfaces, I literally can save myself around an hour per DAO I create, and let Spring manage everything without skipping a beat. It makes life so much easier!
While I am still totally a newbie at Spring, I’m so glad for Red5’s use of it. It makes development so much easier and really helps in building modular applications. “Spring in Action” is on my to-get list on Amazon and I can’t wait to get it and learn a lot.
Hello World
Sep 22nd
It’s a bit late in the game, but hello, world? How are you doing?
And the madness begins…