This Director example file shows how to change the cursor for embedded Flash movies inside a Director movie. When Flash is imported into Director, Flash no longer has the ability to directly change the cursor so Flash must rely on Director to handle this functionality. To do this Flash will pass Lingo commands to Director via the GetURL command.
Developer Notes
To use
this example you must own Flash 4 or higher and have a basic understanding of
FlashAction script. For more information about Flash or ActionScript please
refer to the Flash Support Center.
The embedded Flash movie has a button with a basic Rollover and Rollout function. The Rollover function uses the getURL command to pass Director the lingo command "cursor 280" to change the cursor to the pointing hand:
// this is the same as on mouseEnter in Director on (rollover){ getURL("lingo: cursor 280"); }
The Rollout function uses getURL to pass Director the command "cursor -1" to reset the cursor to the standard arrow:
// this is the same as on mouseLeave in Director on (rollout){ getURL("lingo: cursor -1"); }
Note:
This
is just one of the many ways to create this functionality in Director.
To use this
sample movie, all of the files should be extracted to a single directory.
This download contains
the following files:
![]() |
flash_cursor.dir |
![]() |
cursorSource.fla |
Download
the Windows zip file
Download
the Macintosh sea file