Control Tags

Control Tags Contents

Control Tags Contents...................................................................................................................................................................................... 1

Control Tags......................................................................................................................................................................................................................... 1

Control Tags................................................................................................................................................................................................................................. 1

SetBackgroundColor............................................................................................................................................................................................................. 1

FrameLabel................................................................................................................................................................................................................................. 2

Protect........................................................................................................................................................................................................................................... 2

End.................................................................................................................................................................................................................................................... 2

 

Control Tags

 

There are three categories of ControlTags:

 

1.          Display List

2.          Action

3.          Control

 

Display List and Action tags are covered in other sections (see The Display List and Actions).

 

Control Tags

Control tags manage some overall aspects of files and frames.

SetBackgroundColor Sets the background color displayed in the frame.

FrameLabel Labels a frame for your easy reference.

Protect Marks the file so that it cannot be opened in the authoring system.

StartSound Starts and stops a sound.

End Marks the end of the SWF file.

SetBackgroundColor

The SetBackgroundColor tag sets the background color of the display. (SWF 1.0)

(See class FCTSetBackgroundColor in the Flash File Format SDK)

 

SetBackgroundColor

Field

Type

Comment

Header

RECORDHEADER

Tag ID = 9

BackgroundColor

RGB

Color of the movie background

FrameLabel

The FrameLabel tag gives the specified Name to the current frame. This name is used by ActionGotoLabel to identify the frame.

(See class FCTFrameLabel in the Flash File Format SDK)

 

FrameLabel

Field

Type

Comment

Header

RECORDHEADER

Tag ID = 43

Name

Null-terminated STRING. (0 is NULL)

Label for frame..

Protect

The Protect tag marks a file as not importable for editing in the authoring tool. If this tag is present in the file, the authoring tool should prevent loading of the file for editing. (SWF 2.0)

(See class FCTProtect in the Flash File Format SDK)

 

Protect

Field

Type

Comment

Header

RECORDHEADER

Tag ID = 24

End

The End tag marks the end of a file. This should always be the last tag in a file. (SWF 1.0)

 

End

Field

Type

Comment

Header

RECORDHEADER

Tag ID = 0