Hi,
look in the example code at the registerplugin function - there the testfunction1 function will be assigned to the plugin object:
|
Quellcode
|
1
|
plugin.testfunction1 = testfunction1;
|
That means to call this functions from xml, it need to be called from the plugin object.
e.g. when you embed the plugin this way:
|
Quellcode
|
1
|
<plugin name="myplugin" url="myplugin.js" preload="true" devices="html5" />
|
then it can be called this way:
|
Quellcode
|
1
|
plugin[myplugin].testfunction1();
|
Best regards,
Klaus