In previous versions of Director, there were only three possible return values for this function:
,
#background
#normal,
possible:
#editText
over the specified location. See
Lingo Dicitonary.
Sending Lingo instructions from Flash movies
A Flash movie can send Lingo instructions to a Director movie. (Flash 2 movies do not support
this feature.) The Lingo can determine how the movie responds when the user clicks a button or
the Flash movie enters a frame. In Flash, you can send a string to Lingo with a Flash
handler. The string can be an event message, a complete Lingo statement or a simple string such
as
.
"Hello Tom"
In Flash, you create a button or frame and then assign it a Get URL action in which you specify
the Lingo that the Flash cast member sends.
To set up a Flash movie to generate an event:
In Flash, select a button.
1
Select Window > Actions.
2
In the Actions pane, click the Actions tab and select Browser/Network > getURL.
3
Double-click the getURL action to add it to the button instance.
4
In the URL field, enter the Lingo that you want Flash to send to the movie.
5
In the Window field, enter the name of the window you want the result to be displayed in.
6
•
To specify a string to pass to an
Director, include an
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
on getURL
jumps to the frame labeled Dali in the Director Score.
302
Chapter 11
and
. In Director 8.5 and later, there is a fourth return value
#button
. This value indicates that an editable text field within the Flash sprite is
getVariable()
on getURL
handler that receives the string from the Flash movie and reads
on getURL
handler receives the text string ("Dali"), it reads the string and then
,
, and
setVariable()
handler in the Director movie, enter the string. In
in the
hitTest()
on getURL
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?
Questions and answers