So... It appears this can be done externally by calling the parsePath function on the krpano object, but is there a way to access that directly within krpano?
Otherwise this works:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
<action name="some_name">
parse_path(%SWFPATH%);
trace("Parsed path = ",get(parsed_path));
</action>
<action name="parse_path" type="Javascript">
<![CDATA[
var url = krpano.parsePath( args[1] );
krpano.set("parsed_path", url);
]]>
</action>
|
And if you are passing a url to some external javascript you can just use the parsePath there. Hmmm maybe I've answered my own question?