Passing FLASH Quiz variables from Lectoa to LMS
June 5, 2009 12:00 AM
Ok I've updated the file. You can download it here: http://www.zprocess.net/gregs_test_acc/PumpKeyPad_Q7_updated.zip
Here is what the problem was.
You are constantly moving/animating within the file. The only stop actions where at the end of the file. This is ok, unless you are doing external calls. These calls need time to execute. So I moved the code:
AnswerVal = 10;import flash.external.*;ExternalInterface.call("VarQuestion_0001.set("+AnswerVal+");");
From the begining of the animation to the stop() frame. This gives Flash the time to send the message and Javascript to execute it properly. I am not have any problems with it in my testing.(I was having problems with the other question)
Suggestion: there isn't any animation for this (that I could tell), so there isn't a need to break it out in frames like this. My suggestion is to keep it on 1 frame and then use the code to control everything. (This will prevent this type of problem in the future)
Discussions have been disabled for this post