Description
Call
this function to dispatch an ActionScript StatusEvent event. The
target of the event is the ActionScript ExtensionContext instance
that the runtime associated with the context specified by the
ctx
parameter.
Typically,
the events this function dispatches are asynchronous. For example,
an extension method can start another thread to perform some task.
When the task in the other thread completes, that thread calls
FREDispatchStatusEventAsync()
to
inform the ActionScript ExtensionContext instance.
Note:
The
FREDispatchStatusEventAsync()
function
is the only C API that you can call from any thread of your native
implementation.
Unless one of its arguments is invalid,
FREDispatchStatusEventAsync()
return
FRE_OK
.
However, returning
FRE_OK
does not mean that the
event was dispatched. The runtime does not dispatch the event in
the following cases:
-
The runtime has already disposed
of the ExtensionContext instance.
-
The runtime is in the process of disposing of the ExtensionContext
instance.
-
The ExtensionContext instance has no references. It is eligible
for the runtime garbage collector to dispose of it.
Set
the
code
and
level
parameters
to any null-terminated, UTF8-encoded string values. These values
are anything you want, but coordinate them with the ActionScript
side of the extension.