Viewing by month: September 2009

Are you using flash.net.FileReference's download function and having your download fail? I was too and it took stumbling on a flash kb article to get me on the right path.

My issue:private function downloadFile():void {
    var f:FileReference = new FileReference();
    f.addEventListener(Event.COMPLETE, myFnc);
    f.download(myURLRequest, strDefaultFileName);
}

This should work in my mind... However it does not. It will most likely fail with absolute silence.

Instead, init a globabl FileReference.private var fileRef:FileReference;

private function init():void {
    this.fileRef = new FileReference();
    this.fileRef.addEventListener(Event.COMPLETE, myFnc);
}

private function downloadFile():void {
    this.fileRef = new FileReference();
    this.fileRef.addEventListener(myURLRequest, strDefaultFileName);
}

This my friends will now work. It shouldn't require this code layout IMO, but it does...

I got caught up in a little gotcha last night that took me a few minutes to fully fix.

Like a High School romance I believe my love for Adobe Air has fallen by the way-side. Like many of you I saw the huge potential of Flex Apps on the desktop, all the cool amazing things I could do and all of the amazing new capabilities. I was drooling to write my first AIR apps after MAX Vegas...

Then reality hit me after recently being charged with creating several Adobe AIR applications; 1 large and 2 small ones. I love flex, I love ActionScript, I even still really like the Air Runtime. AIR truly allows you to do some things with the client side computer that will never be possible via a web browser. The local database, file extension capabilities and encrypted file store are a few. Also you can run larger applications faster and you can easily write agile “sometimes-connected” applications.

What is the reason for my waning love affair? It's really very simply: capabilities!

Adobe has tried so hard to lock down AIR to avoid the possibilities of someone writing a malicious program that they have turned it into a small shadow of what it COULD be.

 

  • ZERO ability to make system API calls
  • Inability to load DLLs and other Libraries
  • No registry functionality 
  • Can't launch outside/non-air applications 
  • Horribly locked down and inflexible install process/package 
  • Piss-poor uninstall capabilities

 

These are just a few of the things that have come to erk me over the last few months with AIR. The more I look at what I can't do with Adobe AIR, the more I realize that there just is absolutely no need for me write an AIR App unless it HAS to support “sometimes-connected” and I can't take the time to write it in anything else!

I understand that every technology has it's place and application; however I think AIR is missing a massive massive market by willingly or even striving at making it's self so ham-fisted just to play it safe. People write malicious VB, C++, C# and so on applications all the time. You don't see any calls out there from the masses: “Oh my god don't download that application, it was written in Visual C++ and might do bad things”!

My few months of working with Adobe AIR has left me feeling the same way about it as I do about Apple and their asinine rules surrounding the iPhone. Adobe can still fix this though, they can still add in the capabilities that I think should have been there from the start. Until then, I will continue to simply use Flex where it kicks-ass the most: the web!

 

Are you experiencing the following error in Confluence while trying to install a plugin?

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isModuleEnabled' in class com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction threw exception java.lang.IllegalArgumentException: Invalid complete key specified: null @ /admin/plugins.vm[109,42]

Everything else is working just fine though right? After you hit your head once or twice verify that you are using the correct JDK and that you've compiled your plugin (if it's a custom plugin) using also the correct JDK. My conlfuence instance (2.8.0) was running just find, but was throwing this error until I moved to 1.5.0_14.

Please forgive the personal post, but I'm hoping to quickly sell this bike. I've been road racing for the last 4ish years and just have zero interest in riding on the street anymore. I also have a baby on the way in 6 weeks now; so hey, the cash would be nice. I bought this ZX10 a couple years ago from the owner of a motorcycle shop in florida that I know from racing. It had around 2,300 original miles on it when I bought it for bombing around with my wife as a pillion or riding to work occasionally.

Located in Albany NY
2005 Kawasaki ZX-10
3737 Miles
Never Seen The Race Track
Never been down/dropped and is pristine
No Mods except for stainless steel break lines and stomp-pads

Priced to move quick at a firm $6400.

russ at empiregp dot com