ActionScript Developer's Guide to PureMVC by Cliff Hall

By Cliff Hall

Achieve hands-on adventure with PureMVC, the preferred open resource framework for constructing maintainable purposes with a Model-View-Controller structure. during this concise advisor, PureMVC writer Cliff corridor teaches the basics of PureMVC improvement by way of jogging you thru the development of an entire non-trivial Adobe AIR program. via transparent motives and various ActionScript code examples, you are going to examine top practices for utilizing the framework's sessions on your daily paintings. become aware of how PureMVC permits you to specialize in the aim and scope of your software, whereas the framework looks after the plumbing in a maintainable and transportable approach.

Show description

Read or Download ActionScript Developer's Guide to PureMVC PDF

Best programming languages books

How to Do Everything with HTML & XHTML

This step by step source takes the phobia and secret out of utilizing markup languages HTML and XHTML to construct net sites-it may help you thru the method with pleasant and wide-spread phrases and methods. you will hide all of the fundamentals, discover ways to upload hyperlinks, photos, and information, and movement directly to complex innovations reminiscent of animation, snapshot maps, and interactivity.

Apple Osx Tiger 10.4 For Mac Os X (Macintosh)

So you are ultimately able to discover what all of the fuss is ready. even if you are switching from home windows or upgrading from an older Mac OS, this task-based consultant represents the superior approach to pass from zero to 60 in no time flat with Apple's a lot expected Mac OS X Tiger--more mature, powerfully more suitable, and with greater than two hundred new positive aspects that would knock your socks off.

Professional Community Server Themes (Programmer to Programmer)

Wrox’s specialist neighborhood Server topics is one the 1st consultant to the Chameleon theming engine. inside of, Telligent builders Wyatt Preul and Ben Tiedt proportion their adventure with neighborhood Server, and educate readers tips on how to expand their implementation with theming. expert group Server topics is heavy on absolutely carried out examples, making this a hands-on consultant that would get readers customizing the glance in their group Server set up speedy.

Recursion: Complexity in Cognition

This quantity specializes in recursion and divulges a bunch of recent theoretical arguments, philosophical views, formal representations and empirical proof from parsing, acquisition and machine versions, highlighting its primary position in glossy technology. Noam Chomsky, whose paintings brought recursion to linguistics and cognitive technological know-how and different major researchers within the fields of philosophy, semantics, machine technology and psycholinguistics in exhibiting the profound achieve of this idea into glossy technology.

Additional resources for ActionScript Developer's Guide to PureMVC

Example text

The platform that you build and improve your applications on could easily go the way of the dinosaurs, and not because it was technically inferior. Consider how Apple destroyed Flash’s previous ubiquity by not allowing it on their popular iPhone and iPad products. For a time, they refused to let AIR apps onto those products as well. The only option for access to that huge market was to learn Objective C or to write your app in HTML, CSS, and JavaScript. Less than a week before the delivery of this book’s manuscript, Adobe announced its intention to donate Flex to the Apache Software Foundation, and the future of Flex now hangs in the balance.

Out of the box, your Flex/AIR project should have a lib or libs folder where you can place libraries in SWC format to be compiled into your application. swc, which can be found in the downloadable archive for the PureMVC AS3 Standard Version. With the library in place, your classes may use the PureMVC framework classes. Refer back to the Typical Package Structure in Chapter 1 for creating a basic packaging arrangement. Create an Application Constants Class In the controller/constant package, create an ActionScript class called AppConstants to hold static constants for Notification names that will be sent and received by the View and Controller tiers of your application.

When the user has entered or edited the data, he will be able to test the configuration and if the test passes, he will then be able to save the configuration. We will leave it to the View Component to encapsulate all of the necessary supporting behavior such as not enabling the “Save” button until a test has been done, and not enabling the “Test” button until all the information has been entered, and so on. All that we need to know to build the EmailConfigMediator is the relevant properties, methods, and Events that make up the API of the View Component.

Download PDF sample

Rated 4.76 of 5 – based on 19 votes