Movie::InvokeArgs

Movie::InvokeArgs
bool InvokeArgs(const char* ppathToMethod, Value * presult, const char* pargFmt, va_list args);
Description

InvokeArgs calls an ActionScript method on the movie clip using a format string followed by a variable argument list. Return values are stored in a Value object, with potential conversion to UTF-8 strings or other types. 

Use case:

   pmovie->Invoke("path.to.methodName", "%d, %s, %f", i, "test", 3.5);

The printf style format string describes argument specifiers that follow in the same order; it can include commas and whitespace characters that are ignored. Valid argument specifiers are:

%u 
Undefined value, no argument required. 
%d 
Integer argument. 
%s 
Null-terminated char* string argument. 
%ls 
Null-terminated wchar_t* string argument. 
%f 
Double argument. 
%hf 
Float argument. 
Parameters
Parameters 
Description 
Value * presult 
Holder for the return value from the called method. presult can be null if no return value is desired. 
const char* pargFmt 
The format string describing the arguments that will be passed to the method. 
va_list args 
Variable list of arguments described by the format string. 
pmethodName 
A name of the method to call, with a possible namespace syntax to access methods in the nested objects and movie clips. 
Return Value

True if the method was invoked otherwise false.