Wednesday, January 22, 2003

Great 2nd step to getting started with CF/Flash integration

What's the second step to getting started with CF/Flash integration, for those with no prior Flash experience? Check out chapter 23 of the latest CFWACK. Nate Weiss has done a fabulous job, explaining much more in 30-some pages than many articles combined. Of course, that's the advantage of having a whole chapter. Like my recommendation earlier today in my previous posting, where I commended a recent CFDJ article by Ben on the subject, Nate's chapter in the ColdFusion MX Web Application Construction Kit is hands down the best intro I've seen. Again, the point is that he doesn't presume any prior Flash experience.

I hate to indirectly knock those who've done other such articles and even books, but they invariably seem to forget that total newcomers to Flash (while perhaps very experienced programmers in CF and other languages) just get flummoxed when they open Flash for the first time. And if they try to follow the typical "getting started in flash" resources, such as the product's manual, or the help files/samples/tutorials that come with the product, or nearly every Flash book out there, those all suffer from presuming that the reader is interested in learning about drawing/animation/sound/video, etc. These are clearly its benefits over other graphics tools, but they're not what float our boat.

Having to wade through several chapters just to learn the most basic interface fundamentals is a real turn-off for many, but the average remoting books again presume that foundational experience. It was enough to motivate me to start working on the book I described previously, and as much as I might be well-served by keeping my mouth shut about Ben's article and Nate's chapter and just getting my book done, I'm instead using this opportunity to spread the word.

There is a lot of discontent and doubt, as well as downright disdain and misinformation about the prospects of integrating Flash for front-ends (in whole or in part) for CF (and other server) apps. The sooner people get started with seeing just how easy it really can be, the sooner perhaps we'll quell all those ill-formed opinions. There's certainly a lot more to learn than just what's covered in these two resources--which is why I want to do a book to pull more together. But again, if you get these two under your belt, you'll be well-served to take on all the other great resources spread out there in various forms.

As I say in my user group talk, learning this Flash/CF integration is like getting up on a 12 foot wall. It's so cool up here, but you just need a little hand to get up. These two resources do that, and the rest, as they say, is "bud-duh" (or, butter, meaning simple).

Anyway, to get back to Nate's chapter, what's cool is that he not only shows you how to use remoting with CFCs, he also shows it with the new Flash variables scope, as well as also including some sample code doing things "the old way" without remoting, so that one can apply the same techniques to non-remoting servers (including CF5, PHP, perl, you name it). No, it's not new news, but the point is that those who haven't been able to get into Flash have likely not learned that news. Nate even offers a nifty example of using some practical and easy animation. Again, all in all, a quite complete introductory discussion of the topic of Flash/CF integration.

I daresay that even if you've ignored buying the CFWACK because you already have a couple previous issues, this chapter alone may justify the cost (less then $35 at as of yesterday). Check it out! :-)

No comments: