DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Flex 3 In Action: Free Chapters

James Sugrue user avatar by
James Sugrue
CORE ·
May. 20, 09 · Interview
Like (0)
Save
Tweet
Share
10.56K Views

Join the DZone community and get the full member experience.

Join For Free

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 .

FLEX (protocol)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Use AWS Controllers for Kubernetes To Deploy a Serverless Data Processing Solution With SQS, Lambda, and DynamoDB
  • Create a CLI Chatbot With the ChatGPT API and Node.js
  • Test Execution Tutorial: A Comprehensive Guide With Examples and Best Practices
  • AWS CodeCommit and GitKraken Basics: Essential Skills for Every Developer

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: