12 lines
436 B
Text
12 lines
436 B
Text
on testPlayDone ()
|
|
|
|
-- Start some asynchronous process (like e.g. a HTTP request).
|
|
-- The result might be saved in some global variable, e.g. in _global.result
|
|
startAsyncProcess()
|
|
|
|
-- pauses execution of current function
|
|
play(_movie.frame)
|
|
|
|
-- The following will be executed only after 'play done' was called in the asynchronous process code
|
|
put "Done. The asynchronous process returned the result:" && _global.result
|
|
end
|