Thursday, April 20, 2006

Next time, I'll have to rtfm.

A few weeks ago, I joined a discussion about flex remote objects in CF. The question of the day was: "How do you set separate result/fault handlers for each method in a cfc?"

You've probably seen this construct in one of the examples already. It looks something like this:


<mx:remoteobject id="a_named_reference_to_use_in_mxml"
destination="CustomID"
result="my_CFC_handler(event)">


You would normally set one of these up for each cfc you intend access from within Flex.

Some of the comments mentioned that people are either creating switch statements and picking apart some header information returned in the result to get the name of the method call. Others were creating a separate remote object for each method (I'm not sure that this would even work).

Had I bothered to scour the docs a little better, I would have found the real way to do this. the mx:RemoteObject tag can take a child tag. It might wind up looking something like this:

<mx:remoteobject id="a_named_reference_to_use_in_mxml" destination="CustomID">
<mx:method name="method1" result="method1Result">
<mx:method name="method2" result="method2Result" fault="method2Fault">
</mx:method>

Problem solved. Thanks to Simeon Bateman for showing this on his terriffic presentation at BACFUG!

Thursday, April 13, 2006

FireFox bookmark shortcuts (keywords)

I wish somebody would have told me about this feature long ago.  Firefox supports keywords on bookmarks.  I've seen that in the interface for many releases and never bothered to figure out what the heck it's for.  I always figured it was for some sort of searching/tagging feature in the bookmark manager.  I don't usually keep that many bookmarks, so I instantly ignored it.

Big mistake.  They work like shortcut keys in the address bar.

For example, if you were to bookmark "http://weblogs.macromedia.com/mxna/index.cfm?query=byCategory&categoryId=1&categoryName=ColdFusion", you could add "mxna" as a keyword.  Now, if you type mxna into the address bar, the bookmark gets loaded.

This is great for all those developer locations that you collect as you work.

Ok, I've got some bookmarks to tag ;)

Wednesday, April 05, 2006

OT:Flash / Honda Accord Ad

WOW! I've always been fascinated by Rube Goldberg machines and this has got to be one of the best. Very entertaining.

Albino Blacksheep - Flash / Honda Accord Ad

Can you hear me now?

Can you see me now? Can you interract with me now?!

Congratulations on a terrific partnering win. I've been waiting for this shoe to drop since MAX03. I'm guessing this is the first of many deals once the platform starts to gain momentum.

Adobe Brings Flash To Verizon - Forbes.com