Programming Flex 2

A book on programming RIAs


Book review The move towards rich internet applications (RIA) seems to be unstoppable. Aiming to offer browser-based applications with the speed, flexibility and functionality of traditional desktop applications, companies like Google and others continue to raise the bar as to what you can do in a browser. One of the key technologies in this area has been Ajax, but even with the proliferation of Ajax toolkits and frameworks, there are an increasing range of alternatives. These include JavaFX from Sun, JBoss Seam, Google’s GWT and Microsoft’s Silverlight.

And, of course, there’s Adobe’s Flash platform, with its massive installed user base and widespread availability of browser plug-ins. Flex 2 is that latest version of the software development kit (SDK) for producing rich internet apps targeting Flash Player 9 run-time environment. Using a combination of an XML based language called MXML and the ActionScript 3 scripting language, Flex 2 enables developers to create highly interactive GUI applications, with a high degree of functionality, linking back-end databases, business logic and user interaction all within the confines of the Flash player (normally hosted in a browser).

Given these different components, along with details of the FlexBuilder development environment, there’s a lot for the new developer to get to grips with. Unfortunately ‘Programming Flex 2’ doesn’t quite do justice to the topic. It starts out slowly, with details of the history of Flex, a detailed introduction to the architecture of Flex and so on. It isn’t till chapter 3 that you get a chance to see some action, and even then it’s fairly slow going. If ever a topic was geared to some gee-whizzery and flashy [ahem!] examples it’s this one, but unfortunately you don’t really get them here.

The chapter on ActionScript is fairly brief, the authors assume (rightly or wrongly), that readers already have some background on the language; else they recommend the purchase of a separate book on it. Given the similarities between ActionScript and JavaScript, Java and other object oriented languages the authors don’t really make the most of helping readers along by pointing out areas of overlap or difference. There’s also an assumed knowledge of object orientation; again, if you’re not up on this then you’ll have to look elsewhere for more information.

However, if you’re looking for information on specific topics rather than extended tutorials, there’s a lot of material covered here. Form validation, data binding, application skinning, layout managers, custom components, remote data communications and more all get chapters devoted to them. While the writing is a bit on the wordy side, the explanations tend to be clear and there’s plenty of sample code (both in MXML and ActionScript) to learn from. Note that the emphasis is pretty much on key concepts and basic use cases, in the same way that this isn’t a tutorial, it’s also not a reference book.

Ultimately,however, it feels as though this is a book that is aimed at rather a narrow band of readers. It’s not for those new to ActionScript, not for those unfamiliar with object orientation and not for those looking for a technical reference. In many respects this is a book that’s aimed at those who have already picked up the basics of Flex 2 and now want to get into more of the details on specific topics. If that’s the position you’re in then this might well be the book you’re looking for. Programming Flex 2

Verdict: May suit some readers but doesn’t quite live up to expectations.

Author: Chafic Kazoun and Joey Lott

Publisher: Published by O’Reilly

ISBN: 059652689X

Media: Book

List Price: £38.99

Current Reg price: £27.68 inc. VAT (discount 29%

Buy this book at Register Books at Reg Developer's special discounted price (subject to change)!


Other stories you might like

  • It's primed and full of fuel, the James Webb Space Telescope is ready to be packed up prior to launch

    Fingers crossed the telescope will finally take to space on 22 December

    Engineers have finished pumping the James Webb Space Telescope with fuel, and are now preparing to carefully place the folded instrument inside the top of a rocket, expected to blast off later this month.

    “Propellant tanks were filled separately with 79.5 [liters] of dinitrogen tetroxide oxidiser and 159 [liters of] hydrazine,” the European Space Agency confirmed on Monday. “Oxidiser improves the burn efficiency of the hydrazine fuel.” The fuelling process took ten days and finished on 3 December.

    All eyes are on the JWST as it enters the last leg of its journey to space; astronomers have been waiting for this moment since development for the world’s largest space telescope began in 1996.

    Continue reading
  • China to upgrade mainstream RISC-V chips every six months

    Home-baked silicon is the way forward

    China is gut punching Moore's Law and the roughly one-year cadence for major chip releases adopted by the Intel, AMD, Nvidia and others.

    The government-backed Chinese Academy of Sciences, which is developing open-source RISC-V performance processor, says it will release major design upgrades every six months. CAS is hoping that the accelerated release of chip designs will build up momentum and support for its open-source project.

    RISC-V is based on an open-source instruction architecture, and is royalty free, meaning companies can adopt designs without paying licensing fees.

    Continue reading
  • The SEC is investigating whistleblower claims that Tesla was reckless as its solar panels go up in smoke

    Tens of thousands of homeowners and hundreds of businesses were at risk, lawsuit claims

    The Securities and Exchange Commission has launched an investigation into whether Tesla failed to tell investors and customers about the fire risks of its faulty solar panels.

    Whistleblower and ex-employee, Steven Henkes, accused the company of flouting safety issues in a complaint with the SEC in 2019. He filed a freedom of information request to regulators and asked to see records relating to the case in September, earlier this year. An SEC official declined to hand over documents, and confirmed its probe into the company is still in progress.

    “We have confirmed with Division of Enforcement staff that the investigation from which you seek records is still active and ongoing," a letter from the SEC said in a reply to Henkes’ request, according to Reuters. Active SEC complaints and investigations are typically confidential. “The SEC does not comment on the existence or nonexistence of a possible investigation,” a spokesperson from the regulatory agency told The Register.

    Continue reading

Biting the hand that feeds IT © 1998–2021