i have aproblem getting java to run, when running story
Jul 18, 2013
Hi
I have a slide with some java set to execute as the slide starts,
it just collects some storyline variables i have, and then saves the values to a file, and should display a message
it doesn't show any errors but also does not do any of the actions in the java bit,
here is the java, and i will attach the story
can anyone suggest what i have got wrong?
-------java
var player=GetPlayer();
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.OpenTextFile("C:\temp\copy1.txt", 8, true, 0);
var jq1=player.GetVar("q1");
var jq2=player.GetVar("q2");
var jq3=player.GetVar("q3");
var jq4=player.GetVar("q4");
var jq5=player.GetVar("q5");
var jq6=player.GetVar("q6");
var jmyname=player.GetVar("attendee");
var jbossname=player.GetVar("myname");
alert("Welcome back, " + player.GetVar("attendee") + ".");
String myString = "ffffff";
myString=jmyname+","+jbossname+","+Integer.toString(jq1)+","+Integer.toString(jq2)+","+Integer.toString(jq3)+",";
s.WriteLine("mystring: " + mystring);
s.WriteLine("==========");
s.Close();
player.SetVar("myString",myString);
-------------------------------
thanks
mike
Be the first to reply
This discussion is closed. You can start a new discussion or contact Articulate Support.