Public Member Functions

gnash::DelayedFunctionCall Class Reference

This class is used to queue a function call action. More...

#include <ExecutableCode.h>

Inheritance diagram for gnash::DelayedFunctionCall:
Inheritance graph
[legend]
Collaboration diagram for gnash::DelayedFunctionCall:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DelayedFunctionCall (DisplayObject *target, as_object *obj, string_table::key name, const as_value &arg1, const as_value &arg2)
virtual void execute ()
virtual void setReachable () const
 Mark reachable resources (for the GC).

Detailed Description

This class is used to queue a function call action.

Exact use is to queue onLoadInit, which should be invoked after actions of in first frame of a loaded movie are executed. Since those actions are queued the only way to execute something after them is to queue the function call as well.

The class might be made more general and accessible outside of the MovieClipLoader class. For now it only works for calling a function with a two argument.


Constructor & Destructor Documentation

gnash::DelayedFunctionCall::DelayedFunctionCall ( DisplayObject target,
as_object obj,
string_table::key  name,
const as_value arg1,
const as_value arg2 
) [inline]

Member Function Documentation

virtual void gnash::DelayedFunctionCall::execute (  )  [inline, virtual]

Implements gnash::ExecutableCode.

virtual void gnash::DelayedFunctionCall::setReachable (  )  const [inline, virtual]

Mark reachable resources (for the GC).

Reachable resources are:

  • the action target (_target)

Reimplemented from gnash::ExecutableCode.

References gnash::as_value::setReachable(), and gnash::GcResource::setReachable().


The documentation for this class was generated from the following file: