Macromedia Flash 8 Bible Free Open Book

Macromedia Flash 8 Bible

Previous Page
Next Page

What is Data Binding?

You may often hear the term data binding associated with discussions of Flash components. Data binding is the process of taking information and adding it to a component, to display the information or to manipulate the data in a meaningful way. Any information that you bind to a component is often called a data provider. Data providers can be very simple, such as a String value (for example, a heading at the top of a movie with the text "Welcome to the Site"), or very complicated, such as a RecordSet object or an Array value (for example, a list of employees in your company, complete with first and last names, identification numbers, photo URLs, and so on). In Flash movies, you can take a data provider and bind it to a component in one of four ways:

  • Adding data in the Parameters tab: As you learned in the last chapter, you can add data to a component instance by changing values in the Parameters tab of the Property inspector or the Component Inspector panel. While this approach is easy to understand and implement, the data used with the component is static — for most Flash applications you build, you will want to employ more dynamic methods of assigning data to components.

  • Visual data binding: If you're using Flash Pro 8, you can use the Bindings and Schema tabs of the Component Inspector panel to link data and events between Data and User Interface components in your Flash movie. This approach does not require much (if any) ActionScript code for you to type yourself. When you use the Bindings and Schema tabs to link components, the DataBindingClasses symbol is automatically added to your movie's library. You don't need to do anything with this symbol in your own code — Flash 8 takes care of just about everything behind the scenes.

  • Custom data provider code: You can write your own ActionScript to create data and bind the data to one or more components. This approach can use Data components to load external data, or you can build your own data handling objects that pass data to components within the movie.

  • DataBindingClasses in ActionScript: You can use the same DataBindingClasses symbol that is included with your Flash movie for visual data binding in your own ActionScript code. This method is by far one of the most complex ways to link data and events between Flash components.

In this chapter, you learn how to use visual data binding and custom data provider code to bind data with components.


Previous Page
Next Page
Index: [A][B][C][D][E][F][G][H][I][J][K][L][M][N][O][P][Q][R][S][T][U][V][W][X][Y][Z]


     Main Menu
Table of Contents
Back Cover
Macromedia Flash 8 Bible
Foreword
Preface
Part I: An Introduction to Flash Web Production
Part II: Mastering the Flash Environment
Part III: Creating Animation and Effects
Part IV: Integrating Media Files with Flash
Part V: Adding Basic Interactivity to Flash Movies
Part VI: Distributing Flash Movies
Part VII: Approaching ActionScript
Part VIII: Applying ActionScript
Part IX: Integrating Components and Data-Binding
Chapter 33: Using Components
Chapter 34: Binding Data and Events to Components
What is Data Binding?
Working with Visual Data Binding: Building a Video Clip Selector
Providing Data and Event Handlers for Components
Summary
Chapter 35: Building an Image Gallery Component
Part X: Expanding Flash
Part XI: Appendixes
Index
List of Figures
List of Tables
List of Listings
List of Sidebars


More Books
PHP Hacks
Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
The Koran (Holy Qur'an)
Macromedia Flash 8 Bible
Search Engine Optimization for Dummies
YouTube Traffic
PHP 5 for Dummies
Harry Potter and The Chamber of Secrets
Harry Potter and the Sorcerer's Stone
The Pilgrim's Progress
Wireless Hacks
Flash Hacks. 100 Industrial-Strength Tips & Tools
PayPal Hacks. 100 Industrial-Strength Tips and Tools
Amazon Hacks
Pdf Hacks
The Da Vinci Code
Google Hacks
The Holy Bible
Windows XP For Dummies
Harry Potter and the Half-Blood Prince
Seo Book
Upgrading and Repairing Networks
Macromedia Dreamweaver 8 UNLEASHED
Windows XP Annoyances
Windows XP Hacks
Microsoft Windows XP Power Toolkit
Teach Yourself MS Office In 24Hours
iPod & iTunes Missing Manual
PC Hacks 100 Industrial-Strength Tips and Tools
PC Overclocking, Optimization, and Tuning - 2th Edition
PC Hardware In A Nutshell 3rd Edition
PC Hardware in a Nutshell, 2nd Edition
Upgrading and Repairing PCs
Google for Dummies
MySQL Cookbook
Teach Yourself Macromedia Flash 8 In 24 Hours
PHP CookBook
Sams Teach Yourself JavaScript in 24 Hours
PHP5 Manual
Free Games Paper Airplanes
500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele