Including A Description For The Behavior Inspector; Example Of A Complete Behavior - Adobe 65036570 - Director - PC User Manual

User guide
Hide thumbs Also See for 65036570 - Director - PC:
Table of Contents

Advertisement

]
description[#noise] = \
[#default:"", \
#format: #sound, \
#comment:"Sound cast member name" \
]
return description
end
// JavaScript syntax
function getPropertyDescriptionList() {
var description = propList();
var tProp = propList();
tProp.addProp("default",5);
tProp.addProp("format","integer");
tProp.addProp("comment","Set motion to the right:");
var tRange = propList();
tRange.addProp("min",1);
tRange.addProp("max",10);
tProp.addProp("range",tRange);
description.addProp("movement",tProp);
tProp = propList();
tProp.addProp("default","");
tProp.addProp("format","sound");
tProp.addProp("comment","Sound cast member name");
description.addProp("noise",tProp)
return description;
}

Including a description for the Behavior inspector

An
on getBehaviorDescription
pane of the Behavior inspector when the behavior is selected. For example, this handler displays the phrase "This
changes sprite color and position" in the Behavior inspector:
on getBehaviorDescription
return "This changes sprite position"
end

Example of a complete behavior

If the handlers described here were in one behavior, the script would look like the following.
--Lingo syntax
property movement
property noise
on enterFrame me
handler in a behavior's script provides a description that appears in the bottom
ADOBE DIRECTOR 11.0
284
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director 11

Table of Contents