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

Creating Behaviors

Behaviors, as discussed in Chapter 8, “Welcome to ActionScript 2.0,” are small blocks of code that can be adjusted to fit individual needs. Some of the behaviors that come with Flash can be used to control movie clips, screens (Flash PRO only), and opening new Web pages. Those are okay, but for more intermediate to advanced developers, you will want more. Building behaviors is a simple process provided you familiarized yourself with the XML-to-UI API. Table 26.3 shows a few other tags for behaviors that you should make yourself aware of.

Table 26.3. XML Tags for Behaviors
TagDefinitionAttributesChild Tags
<flash_behavior>Tells Flash that this XML is for a behaviorversionN/A
<behavior_definition>Defines certain aspects of the behavior
dialogID
category
name
class

N/A
<properties>Holds the declared properties <property>N/A<property>
<property>Declares a property of the behavior
id
default

N/A
<actionscript>Holds the ActionScript being placedN/AN/A



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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