Tip calculator 21
The LogIn sample component uses Button, Label, and InputField
component movie clip symbols to create a simple name and password login
interface that dispatches a click event when the Login button is clicked.
The sample includes a document file (.fla) containing the LogIn
component movie clip symbol in its library and the LogIn component’s
class ActionScript file (.as), which defines its class properties and methods.
Explore both files to learn about the basic version 2 component structure
and how to incorporate the capabilities of Flash components into your own
custom components.
You can find the sample source file, login.fla, in the Samples folder on your
hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\
Samples and Tutorials\Samples\Components\Login.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Components/
Login.
Tip calculator
This sample demonstrates how to perform event handling with forms
and components.
You can find the sample source files (TipCalculator.fla, TipCalculator1.fla,
and TipCalculator2.fla) in the Samples folder on your hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\
Samples and Tutorials\Samples\Components\TipCalculator.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Components/
TipCalculator.
Kommentare zu diesen Handbüchern