Hi,
is there a way that I can get random values back into my pano?
I have a java script function with generates the numbers. But how to I get them back into my xml?
HTML:
Code
<script type="text/javascript" src="scripts.js"></script>
<object width="640" height="480">
<embed src="panomax.swf" width="640" height="480" allowFullScreen="true">
</embed>
</object>
JS:
Code
function zufallsZahl () {
var ran_number = Math.floor(Math.random()*5);
alert(ran_number);
return ran_number;
}
XML
Code
<action name="loadrandom">
trace(myvar.vari);
set(myvar.vari, js(zufallsZahl())) ;
trace(myvar.vari);
</action>
myvar.vari does exist.
Regardless if I use the get before js or the js itself. I do not get the result back to my variable.
If I do just js(zufallsZahl()); the function is called as wished.
Can this be done?