Flex 3 In Action: Free Chapters

Tags:

We're giving away two free chapters from the new Flex 3 In Action book in association with Manning Publications. Flex 3 in Action is an easy-to-follow, hands-on Flex tutorial. This book goes beyond feature coverage and helps you put Flex to work in real day-to-day tasks. You'll quickly master the Flex API and learn to apply the techniques that make your Flex applications stand out from the crowd.

The chapters included are Working With ActionScript  and Displaying Forms And Capturing User Input

Working With ActionScript 

ActionScript is an extremely powerful object-oriented language about which you can dedicate entire books. In this chapter we’ll focus on ActionScript’s core concepts; obviously you will need to be familiar with them before we get to the more powerful aspects of Flex itself. Speaking of which, you’re probably anxious to get back into Flex, but tackling some ActionScript fundamentals will allow us to pick up the pace and move further forward.

A fundamental concept in any programming language is that of comments, so we’ll begin our discussion with how Flex supports documenting your code.

Download the rest of this chapter here.

 

Displaying Forms And Capturing User Input

Let’s put our newly acquired understanding of layout and ActionScript to work and apply it to a fundamental operation of any application—capturing user input. As mentioned in chapter 4, even though Flex offers a Form component, its use is optional and you’ll find it functions best as a layout tool. In the land of Flex you are
equipped with control components (usually referred to as controls) that display information and accept user input. Alongside controls are events and event handlers that recognize and respond to user actions, such as clicking a mouse.
When event handler functions run, they access data from whatever source they’ve been instructed; there’s no master Form tag that contains all the inputs as in HTML.

NOTE Say goodbye to the notion of HTML Forms. The optional <Form> tag in Flex does nothing more than lay out UI components called controls.

Remember, you’re not restricted to the set of controls that come with Flex. Unlike HTML, which limits your UI controls to the HTML specification and browser implementation, Flex encourages you to extend an existing control to add more functionality, or create your own, completely new, UI controls from scratch.
One of the teaching approaches this book employs is to show many ways of doing the same thing. From example to example, we’ll use an idea from the previous one, but then change a portion of it to demonstrate an alternative. The alternatives aren’t necessarily any better, they’re just different, but more importantly help you to think with the ActionScript mentality.

A core piece to that understanding is the invaluable id attribute, a handle to an MXML component that allows you to access the values contained by the id attribute.

Download the rest of this chapter here.

0

James is a DZone Zone Leader and has posted 231 posts at DZone. You can read more from them at their website.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Kees Kuip replied on Wed, 2009/05/20 - 2:52am

Why do you (as a zoneleader) advertise your flex book on java lobby?

OtengiM replied on Wed, 2009/05/20 - 3:30am

They are giving free chapters and the Java and Flex combo it is great this days for RIA development.

James Sugrue replied on Wed, 2009/05/20 - 4:44am in response to: keeskuip

Hi

This isn't my book - we're just giving away free chapters thanks to a collaboration with Manning. The book is written by Tariq Ahmed and Jon Hirsch.

Flex is an important part of the RIA stack, and as it can integrate with Java I feel it's fair to have it on Javalobby

James

Mark Haniford replied on Wed, 2009/05/20 - 11:00pm

My question is who at Javalobby decided that Flex is part of the Java ecosystem?  I guess we should get those Silverlight articles ready for Javalobby.

Alexander Shirkov replied on Fri, 2009/05/22 - 7:01am in response to: mark haniford

Flex has a good Java-friendly development environment and integration solutions. Silverlight is not.

Mark Haniford replied on Sat, 2009/05/23 - 8:16pm in response to: sgdread

Flex's eclipse-based IDE doesn't make it any more part of the Java ecosystem than a PHP eclipse plugin makes it part of the Java ecosystem. 

 

But Adobe has done a good job of sending out its evangelists.

michalsss replied on Tue, 2009/06/16 - 12:09pm

Lets start from beginning. I have started earn $$ with sports betting about 3 years ago. Firstly I was very very bed thinking about this kind of job. Lots of people said me that sports btting is just gambling and nothing more. That I have started read a lot of betting and bookmakers firms, bonuses ect. First what I found what very interested me was betfair and Betfair trading system it is nothing but exchange bets with other members of this system. It is amazing option earn lots of money. One more think what I love in betfair is great bonus with Sports betting. Firstly when You wanna start betting You have to choose of the betting system and next find good site with livescore. When You have more information about sport betting You could think about change Your bookmaker to something new like bwin or bet365. Last think what I wanna tell You is Good LUCK, read and learn as much as You can and finaly You got You succes with bookies.Best regards !!

emad964 replied on Sat, 2009/06/27 - 4:57pm

تحميل برامج برامج جوالات العاب بنات تكنولوجيا كتب تعليم UltraSurf العاب برامج نت Internet Download Manager ProgDVB برامج مجانية أفضل المواقع العربية مشاهدة محطات مشفرة Online TV Player 3.0.0.940 Internet Download Manager 5.17 Build 4 رقص شرقي anyTV Pro 4.32 OnLineLive 7.1.1 هزي يانواعم ProgDVB 6.06.2 SopCast 3.0.3 Falco Image Studio 3.6 لعبة تزلج على الجليد UltraSurf 9.4 كاثرين هيغل Katherine Heigl محطة غنوة FreeZ Online TV 1.0 Free Video to Mp3 Converter 3.1.3.51 Advanced MP3 Converter 2.10 Xilisoft Video to Audio Converter 5.1.23.0515 Blaze Media Pro 8.02 AKRAM Media Creator 1.11 DVD Audio Extractor 4.5.4 Free WMA to MP3 Converter 1.16 لعبة نينجا المتقدم لعبة قذف كرة لعبة دراجات البهلوانية لعبة اعداء الغابة تحميل برامج Download DivX Subtitles 2.0 BullGuard 8.5 Google Chrome 2.0.181.1 Dev Dell Studio XPS Desktop 435T Intel Matrix Storage Manager A00 Gigabyte GA-EP45-UD3P Bios F9 Ambush HDConvertToX 1.1.229.1764 MSI Wind Nettop CS 120 Realtek Audio Driver 5.10.0.5618 Biostar T41-A7 6.x Realtek On-Board Audio Driver 5.10.0.5735 for 2000/2003/XP TweakNow RegCleaner 4.1.1 SpeedItup Free 4.97 برامج العاب - Internet Download Manager - برامج جوالات - العاب - محطة غنوة - قنوات فضائية - بنات - تكنولوجيا - كتب تعليم - UltraSurf - ق ذ -0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.