Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::DelayedFunctionCall Class Reference

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

#include <ExecutableCode.h>

Inheritance diagram for gnash::DelayedFunctionCall:
gnash::ExecutableCode

Public Member Functions

 DelayedFunctionCall (DisplayObject *target, as_object *obj, ObjectURI name, as_value arg1, as_value arg2)
 
virtual void execute ()
 
virtual void setReachable () const
 Mark reachable resources (for the GC) More...
 
- Public Member Functions inherited from gnash::ExecutableCode
 ExecutableCode (DisplayObject *t)
 
virtual ~ExecutableCode ()
 
void markReachableResources () const
 Mark reachable resources (for the GC) More...
 
DisplayObjecttarget () const
 

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

§ DelayedFunctionCall()

gnash::DelayedFunctionCall::DelayedFunctionCall ( DisplayObject target,
as_object obj,
ObjectURI  name,
as_value  arg1,
as_value  arg2 
)
inline

Member Function Documentation

§ execute()

virtual void gnash::DelayedFunctionCall::execute ( )
inlinevirtual

Implements gnash::ExecutableCode.

References gnash::callMethod().

§ setReachable()

virtual void gnash::DelayedFunctionCall::setReachable ( ) const
inlinevirtual

Mark reachable resources (for the GC)

Reimplemented from gnash::ExecutableCode.


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