Hello,
I have mutiple hotspots with custom action.
ex.
<hotspot name="hs1" custom_action=".." />
<hotspot name="hs2" custom_action=".." />
<hotspot name="hs3" custom_action=".." />
...
And I want to call these custom_action inside an action.
<action name="action1">
for(set(i,0), i LT hotspot.count, inc(i),
hotspot[get(i)].custom_action();
);
);
</action>
However in this case, only one hotspot's custom_action is called.
When I change the code from
hotspot[get(i)].custom_action();
to
callwith(hotspot[get(i)], custom_action);
It works fine -> all hotspots' custom_action are called.
Can somebody explain why?
Maybe I should always use callwith() function instead of hotspot.action() style?
Cheers,
Hyung