folder Director Behaviors

Adobe Director behaviors as plain text, so they can be easily copied. Examples of Adobe Director movies that incorporate these behaviors can be found in the Director Movies category.

Documents

document Absolute Distance Between Two Points

1361 downloads

Download (txt, 180 B)

absolute-distance.txt

This is a function that calculates the absolute distance between any two points on the screen. By calling this function with sprite locations, for example, this can be very useful for a variety of games and effects.

document All Director Cursor Codes

1722 downloads

Download (txt, 1 KB)

Director-Cursor-Codes.txt

This isn't a behavior per se, but a listing of all of the codes that produce built-in "standard" cursors for Adobe Director.

document All Director Key Codes for keyPressed()

1537 downloads

Download (txt, 737 B)

Director-Key-Codes.txt

This is not a behavior, but rather a listing of all Director key codes that might be called with the keyPressed() function. The file lists key codes in the following format: <key>, <keycode>.

document Animated Sprite Skew Behavior

1540 downloads

Download (txt, 1 KB)

Skew-Sprite.txt

This behavior cyclically skews a sprite back and forth, or optionally skews in "full swing" when the sprite is rolled over. The behavior includes user-definable skew speed and limit values. It works with any sprite that has a .skew property.

document Assign URL Path to Asset

1061 downloads

Download (txt, 936 B)

Assign-URL-Path-to-Asset.txt

This behavior assigns a user-specified URL filename string to a cast member so it can be streamed into a Shockwave movie.

document Basic Sprite Rollover

1771 downloads

Download (txt, 515 B)

Basic-Sprite-Rollover.txt

This behavior makes it easy to choose which bitmap cast member to use for a mouse rollover effect.

document Change Cursor

1825 downloads

Download (txt, 170 B)

handle-cursor-bvr.txt

This behavior changes the cursor to a hand, or to the normal arrow pointer.

document Change Sprite Size

1537 downloads

Download (txt, 779 B)

Change-Sprite-Size.txt

This behavior makes it easy to change the size of a sprite when it is rolled over. This effect is useful for rollovers that do not require a second cast member.

document Curve Sprite

1463 downloads

Download (txt, 1 KB)

Curve-Sprite-bvr.txt

This behavior moves a sprite along a variable Lissajous curve. The Lissajous equation used in this example produces a surprising variety of curve shapes and "tangles".

document Detect Mouse Movement

1173 downloads

Download (txt, 671 B)

Check-for-Mouse-Movement.txt

This behavior checks for any movement of a mouse pointer. It is useful if you want general mouse movements to trigger events. This provides functionality that is similar to the Flash "mouseMove" event.

document Dim a Sprite

1281 downloads

This behavior dims a sprite to a selectable level when the sprite is rolled over.

document Display Video Time

1397 downloads

Download (txt, 2 KB)

display-video-time.txt

This behavior displays the current time of a video cast member in a specified text field. The video time can be displayed as: Minutes:SecondsMinutes:Seconds.HundredthsSeconds.Hundredths, Minutes only, Seconds only, or Hundredths only.

document Drag One Sprite to Another for a Match

1438 downloads

Download (txt, 1 KB)

Match-Sprite.txt

This behavior checks the bounding rectangular area of one sprite against the bounding rectangular area of another. This can be used to "match" different sprites for matching games, and has a multitude other uses.

document Draw a Grid - Imaging Lingo

1044 downloads

This behavior draws a user-defined rectangular grid to the stage canvas using imaging Lingo. Adjustable parameters include the size, color, and shape of the grid and grid cells.

document Draw Fixed Lines

1021 downloads

Download (txt, 2 KB)

Draw-Fixed-Lines.txt

This behavior draws colored lines at a fixed angle at random locations all over the stage using imaging Lingo. User-definalbe parameters include variable and random line thickness.

 

document Draw Random Circles

1101 downloads

Download (txt, 2 KB)

Draw-Random-Circles.txt

This behavior draws randomly-placed colored circles all over the stage using imaging Lingo. User-definalbe parameters include: minimum and maximum circle diameter, hollow or filled circles, and variable and random stroke thickness.

document Draw Random Dots

1057 downloads

Download (txt, 926 B)

Draw-Random-Dots.txt

This behavior draws randomly colored dots (1 pixel in diameter) at random locations all over the stage using imaging Lingo.

document Draw Random Lines

1060 downloads

Download (txt, 1 KB)

Draw-Random-Lines.txt

This behavior draws randomly-placed colored lines all over the stage using imaging Lingo. User-definalbe parameters include: minimum and maximum line length, variable and random stroke thickness.

document Draw Random Ovals

1077 downloads

Download (txt, 2 KB)

Draw-Random-Ovals.txt

This behavior draws randomly-placed colored ovals all over the stage using imaging Lingo. User-definalbe parameters include: minimum and maximum oval diameter, hollow or filled ovals, and variable and random stroke thickness.

document Draw Random Rectangles

1074 downloads

Download (txt, 2 KB)

Draw-Random-Rectangles.txt

This behavior draws randomly-placed colored rectangles all over the stage using imaging Lingo. User-definalbe parameters include: minimum and maximum rectangle size, hollow or filled rectangles, and variable and random stroke thickness.