Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_UIAction::CallFunction Method
Syntax
C++
int CallFunction(IFunctionHandler* pH, const char* elementName, int instanceID, const char* functionName);
Parameters 
Description 
const char* elementName 
UI Element name as defined in the xml or UIEventSystem name as defined via cpp. 
int instanceID 
ID of the instance (if instance with id does not exist, it will be created). '-1' for all instances. If used on UIEventSystem no instance id is ignored. 
const char* functionName 
Function or event name. 
args 
List of arguments (optional). 

!

UIAction.CallFunction( elementName, instanceID, functionName, [arg1], [arg2], [...] )

!  

!  

!  

!  

! Calls a function of the UI flash asset or the UIEventSystem. 

 

Copyright (c) 2012. All rights reserved.