• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Lesson 6. Creating and Manipulating Data

Lesson 6. Creating and Manipulating Data

When you use Flash to create an application, you use the Text tool to enter information directly onto the stage. Text that you enter in this manner is said to be hard coded because it's permanent once the SWF file is published. If you want to alter data that's hard coded into your Flash application, you must edit the Flash source file—a cumbersome and unnecessary process because Flash lets you define areas where text can be displayed dynamically. Instead of being set when the SWF is published, dynamic data is processed and stored at run time (while the SWF file is running), which means you can change it as often as you want. Dynamic data can be user-supplied information, data loaded from another file, or even information you can't control, such as the current time. You can use this type of data to display information, make decisions, manipulate the position of movie clips, and much more.

This temperature converter manipulates data by converting values from one scale to another—Fahrenheit to Celsius.

In this lesson, you'll learn how to create objects, variables, and arrays (all elements of a data-driven project), as well as how to manipulate data already within your project (such as numbers and strings of text) in order to display your data in new and useful ways.


In this lesson, you will:

  • Learn the power of dynamic data

  • Create text fields

  • Create variables

  • Create arrays

  • Store information in objects

  • Retrieve information from storage dynamically

  • Build expressions

  • Learn about precedence

  • Manipulate numbers with the Math class

  • Gain experience with the methods of the String class


This lesson takes approximately one and one half hours to complete.


Starting Files:




Completed Projects:






Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint