A Flash movie can generate events that a Director Lingo script can capture and respond to while the Director movie is running. While working in Macromedia Flash, you can set up a movie to generate an event by creating:
![]() |
A button that is assigned a Get URL action |
![]() |
A frame that is assigned a Get URL action |
For example, after creating and selecting a button in Flash, you can assign the button an action by choosing Modify>Element. In the Link Properties: Button dialog box, select Get URL from the Action menu.
Do not specify anything for the Target Window option (Director ignores this field). What you type in the Network URL field determines how Director responds to the button or frame action. There are three ways to fill in the Network URL field:
![]() |
Specify any string to pass to Director. In Director, you write a getURL handler that catches the event from the Flash movie and reads the string as a parameter. For example, in Flash, you can specify this in the Network URL field: |
Dali |
|
In Director, you can write this handler: | |
on getURL me stringFromFlash go to frame stringFromFlash end |
|
When the getURL handler receives the text string, it reads the string and then branches the playback head to a frame of that name in the Director score. | |
![]() |
Specify the word event followed by a colon, the name of a handler you will write in Director, and a parameter (if any) you will pass along with the event. For example, in Flash, you can specify this in the Network URL field: |
event: FlashMouseUp "Dali" |
|
In Director, you write this handler: | |
on FlashMouseUp me whichFrame go to frame whichFrame end |
|
When the Director script receives the FlashMouseUp event, along with the parameter, it branches the playback head to the frame specified by the parameter. | |
![]() |
Specify the word lingo , followed by a colon, followed by any Lingo command that you want Director to execute. For example, in Flash, you can specify this in the Network URL field: |
lingo: go to frame "Dali" |
|
When Director receives the getURL event from the Flash movie, it will execute this line of Lingo immediately. |
You can place handlers to capture events from Flash movies in the Flash sprite or cast member script, or in a frame or movie script. The event follows the normal Director message hierarchy.