This book is different! Its loaded with PRACTICAL, useful well commented examples of USING the code explained with hundreds of code snipets that you can use immidiately as-is or with little modification.
Starts with simpler things like lucid explainations of common pitfalls of checking equality and comparing values to if else expressions, while loops, more complex conditional testing then moves into areas most newbies want to learn how to do, but don't really have any practical examples like how to change a movie's transparency, drawing tricks, masking, etc.. Then it moves into examples of arrays, targeting, making objects dragable, swapping levels, interaction with buttons, validating forms and so on.
The book is well written and while there is plenty of technical information it never gets bogged down under the weight of excessive theory, minutia on details you'll rarely use and quickly forget anyway. Its much more of a friendly 'how do I do this' kind of approach that probably will make you reach for it again and again as a quick reference to solve common problems.
The last 200 pages or so give details of several more meaty projects. Unlike several books that 'explain' Action Script but all too often leave you hanging on how to actual use it, here you see how to use it in real world conditions which will save you hours of frustrating trial and error.
This book is different! Its loaded with PRACTICAL, useful well commented examples of USING the code explained with hundreds of code snipets that you can use immidiately as-is or with little modification.
Starts with simpler things like lucid explainations of common pitfalls of checking equality and comparing values to if else expressions, while loops, more complex conditional testing then moves into areas most newbies want to learn how to do, but don't really have any practical examples like how to change a movie's transparency, drawing tricks, masking, etc.. Then it moves into examples of arrays, targeting, making objects dragable, swapping levels, interaction with buttons, validating forms and so on.
The book is well written and while there is plenty of technical information it never gets bogged down under the weight of excessive theory, minutia on details you'll rarely use and quickly forget anyway. Its much more of a friendly 'how do I do this' kind of approach that probably will make you reach for it again and again as a quick reference to solve common problems.
The last 200 pages or so give details of several more meaty projects. Unlike several books that 'explain' Action Script but all too often leave you hanging on how to actual use it, here you see how to use it in real world conditions which will save you hours of frustrating trial and error.
I am a C, Perl programmer, and have started developing programs in ActionScript and since it has its own peculiarities (and not all that well documented) it is useful to see them included in specific examples.
I found the parts on Flash Remoting quite helpful in giving me ideas and practical solutions. I could not in all honesty give it 5 stars since I was not as happy with his extensive reliance on components. I do not find them very convenient if I am developing with ActionScript (in fact even when using Flash I have sometimes found it easier to write a short script for movie clips rather than configuring and adapting ready made components).
The Actionscript Cookbook should be a part of any developers library. Joey Lott's books consistently impress me as I've also found the Complete Flash Remoting to be invaluable to have around.
A lot of the examples are obvious explanations of the AS documentation (eg, how to set the background of a TextField). Others should be know by any programmer (eg, how to loop through an array). Seemingly usefull functions, like recursively stopping everything in a MovieClip, are missing.
If you are a seasoned programmer, I would pass on this. If you are a beginning programmer, this may be handy.
Going from print to the web, Flash5 was easy for me to pick up. After a break of doing no Flash and coming back to it with Flash6 out for a few months, I was frustrated, uptight and bought every Flash6 book I could find by trusted authors in order to catch up, while at the same time trying to get a big flash site done for a client.
Nothing helped. I kept getting more and more frustrated. Everytime I saw the words "call-backs", "this", "method" or "object", I would get knots in my stomach.
Joey Lott not only helped me get the website done, but his Actionscript Cookbook finally got me to understand Flash6 concepts. Flash5-free at last, no more knots in my stomach. I can now read and understand all the other books I bought! Now that Flash7 is out, I'll be buying every title that comes out by Joey Lott. He is the consummate teacher, and includes explains what you need to know, and why you need to know it, in concise, easy-to-understand verbiage.
In my opinion, Joey's Actionscript Cookbook and Colin Moock's Actionscript, the Definitive Guide, and are the best values out there for Flash6.
I cannot recommend this book enthusiastically enough!
- jim
Santa Clara, CA
I say 'using', because the cookbook format is intended to be more than a reference (see Actionscript for Flash MX). This book and the accompanying code samples have made it possible for me to move way ahead in my development efforts. The instruction for the code development, coupled with the code samples allows you to start cooking up your own Actionscript code to solve problems for your development requirements.
The range of problem solving covered in the ASCB is perfect, in that it covers most of the range of Actionscript, including managing XML files, Flash Remoting, FlashComm, Shared Objects and Components. Then Joey moves into the sample applications which you can dissect to really get a deeper understanding of what Flash MX is all about.
I've found the writing to be very accessible and it includes important tips on thinking about the way you write your code for re-usability, documentation and mapping out your project strategy.
In summary, I've put about 20% of this book to use and feel sure that it will be sitting next to my keyboard for the next six months until it's 70-80%. I own about four Flash/Studio MX books and wish they were all written like this.
What I might change if I were re-writing it. Skip the 'Basics' chapter at the beginning, although it is well written and many might find it useful, I didn't buy the cookbook for the basics. Second, it would be great to see a chapter on how the typical AS project lead organizes their code, works with remote servers, CVS and tips for creating optimum effeciency by doing x,y and z.
This book is not intended for beginners, but could be used that way if you were willing to dive in and understand Actionscript by dissection. I really think this is a great and unique resource.
If you want a good book with good examples, this is for you.
My only complain about the book, and this is a minor one, is that the code for the sample applications in the last few chapters doesn't seem to function at all on my Mac - none of them. This is a little bit of a bummer, as I was looking forward to examining the apps as they functioned. But the wealth of practical knowledge that fills the rest of the book leaves me with no option but to give it five stars. If all that code functioned perfectly... I'd have to find a way to give it six.