I'm trying to pass variables to an action. But when using a variable for the loadscene I just get "null" as error.
This is the action:
|
Quellcode
|
1
|
<action name="startVideo" scope="local" args="var1,var2">set(layer[video].visible,true);set(layer[video].onvideoplay, eventstarter(); loadscene(get(var2), null, MERGE|KEEPPLUGINS));layer[video].playvideo(get(var1));</action>
|
And this is the calling:
|
Quellcode
|
1
|
onclick="startVideo(pano-images/test.mp4, Pano_01);"
|
When using trace the variable is correctly printed in the console, and the first variable for the video url is also working. Just not the loadscene.