Working With Wml Elements - Adobe GOLIVE CS2 User Manual

Hide thumbs Also See for GOLIVE CS2:
Table of Contents

Advertisement

To add a template to a deck
A WML template contains events that apply to all the cards in a deck. The template element must be the first element
in a deck.
Drag the Template icon from the WML Elements set in the objects toolbox into the document window. Release
the mouse button when the pointer is over the colored area of the WML element. If necessary, drag the template
element to the top position in the deck.
See also
"To specify image attributes" on page 477
To specify template attributes
1
Select a template element in the document window.
To include event bindings inside the template element, set the following attributes in the Template Inspector:
2
onenterforward, onenterbackward, and ontimer.
See also
"To specify image attributes" on page 477

Working with WML elements

About WML elements
Elements are the building blocks of a WML document. You add elements to a document by dragging icons from the
WML Elements set of icons in the objects toolbox to the document window.
Note: You must enable the WML module to view the WML Elements in the objects toolbox.
Keep the following in mind as you work with elements:
Use only WML elements in your deck. If you place elements from the Basic set in the objects toolbox into a WML
document, the deck will not work correctly.
Every element has content rules that determine what the element can contain. For example, a deck element can
contain a template element and card elements. The content rules for an element are displayed to the right of the
element name in the document window and at the bottom of the objects toolbox when you point to an element
icon. The content rules show which elements (and the number permitted) are allowed within an element. A
question mark (?) next to an element name means zero or one of those elements are allowed, a plus sign (+) means
one or more, an asterisk (*) means zero or more, and the pipe symbol ( | ) between two elements means either
element is allowed. For example, the content rule for a card is OnEvent?, Timer*, (Do | P)*. This content rule
means zero or one OnEvent element is allowed, zero or more Timers, and zero or more Do or P elements are
allowed.
Limit the size of decks. WML browsers have memory restrictions, and a single large deck can fill up memory very
quickly. The recommended size for decks is 500 bytes or less. Choose Special > Document Statistics to display the
document size.
If you edit the WML source code, keep in mind that WML is a case-sensitive language. For example, CARD and
card mean different things.
ADOBE GOLIVE CS2
475
User Guide

Advertisement

Table of Contents
loading

Table of Contents