• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 27. Extending Flash > Creating Behaviors

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 to open new web pages. Those are okay, but for more intermediate to advanced developers, you will want more. Building behaviors is a simple process provided that you familiarized yourself with the XML-to-UI API. Table 27.3 shows a few other tags for behaviors that you should make yourself aware of.

Table 27.3. XML Tags for Behaviors
TagDescriptionAttributesChild 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