Chapter 2: Accordion Component (Flash Professional Only) - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

enabled
is a Boolean value that indicates whether the component can receive focus and input.
The default value is
true
visible
is a Boolean value that indicates whether the object is visible (
The default value is
true
The minHeight and minWidth properties are used by internal sizing routines. They are
defined in UIObject, and are overridden by different components as needed. These
properties can be used if you make a custom layout manager for your application.
Otherwise, setting these properties in the Component inspector will have no
visible effect.
You can write ActionScript to control additional options for the Accordion component by
using its properties, methods, and events. For more information, see
Professional only)" on page
Creating an application with the
Accordion component
In this example, an application developer is building the checkout section of an online store.
The design calls for an accordion with three forms in which a user enters a shipping address, a
billing address, and payment information. The shipping address and billing address forms
are identical.
To use screens to add an Accordion component to an application:
1.
In Flash, select File > New and select Flash Form Application.
2.
Double-click the text Form1, and enter the name addressForm.
Although it doesn't appear in the library, the addressForm screen is a symbol of the Screen
class. Because the Screen class is a subclass of the View class, an accordion can use it as
a child.
3.
With the form selected, in the Property inspector, set the form's visible property to
This hides the contents of the form in the application; the form only appears in
the accordion.
4.
Drag components such as Label and TextInput from the Components panel onto the form
to create a mock address form; arrange them, and set their properties in the Parameters tab
of the Component inspector.
Position the form elements in the upper left corner of the form. This corner of the form is
placed in the upper-left corner of the accordion.
5.
Repeat steps 2-4 to create a screen named checkoutForm.
.
.
47.
Using the Accordion component (Flash Professional only)
) or not (
).
true
false
"Accordion class (Flash
false
.
37

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents