!! UPDATE !!
I'm using krpano ver. 1.20.11.
------------------
I don't know exactly when it started 'oncomplete' running differently.
I think it could be from krpano ver. 1.20 updates which had had replaced its sound interface from HTML5-Audio to webAudio API.
--- if possible, I'd like to know when it started exactly just for information.
- this action works as usual : playsound(_name_, _source_, false, 1, oncomplete() );
But in a local scope action, the 'oncomplte' cannot access caller.
'caller' is not the caller itself who acually called the action, but trace() shows null.
<action autorun='onstart'> callwith(hotspot[anhotspot], anaction);</action>
<hotspot name='anhotspot' />
<action name='anaction' scope='local'> trace(caller.name); // anhotspot playsound(_name_, _source_, false, 1, trace(caller.name) ); // undefined or null</action>
in that case, if you needed get the extra information from the caller - the hotspot named 'anhotspot' is NOT possible in 'oncomplete'.
Yes, in different way, it could be solved problem,
However, I'd like to know if there's another way to get the action caller in easy way OR it's impossible to be accessed.
Thanks.