ButtonString := EventLastMatched[#arg1]
If a Flash movie generates both getURL events and event: events, use this statement to determine which type the movie has been generated:
ButtonEventType := EventLastMatched[#__EventName]
The variable ButtonEventType will contain either #getURL or #event .
In Authorware, you can set up a routine to act upon the different types of events. For example, in a Flash movie, you might assign the following three actions to three buttons.
homePage.htm
event: Eval x>y
event: EvalAssign x=5
Then, in Authorware, you could use the following routine to act upon the strings sent from the Flash movie.
ButtonEvent := EventLastMatched[#__EventName]
if ButtonEvent = #getURL then
URL := EventLastMatched[#arg0]
GoToNetPage(URL)
else if ButtonEvent = #event then
Event = EventLastMatched[#arg0]
if Event = "Eval"
Eval(EventLastMatched[#arg1])
else if Event = "EvalAssign"
EvalAssign(EventLastMacthed[#arg1])
end if
end if
|