Copy link to clipboard
Copied
I have a movie that has interactions in multiple frames and then passes user result data to Lectora; lastly, stops at a feedback page (a frame with stop();). It runs fine when testing movie inside Flash but it ignores the stop() and continue to run and go back to the first frame then it listens to stop() and stops at the right frame.
I read that Flash ignores stop() if there is an error. I was able to find out possible lines with problems by commenting and uncommenting multiple lines and tested multiple times. I noticed it was the script to pass data to Lectora that was causing the problem (multiple ExternalInterface.call("VarLectoraVariableName.set('"+FlashVariableName+"')")).
I double-checked all the variables making sure they exist in both Lectora and Flash, but it keep bypassing my last frame and go back to the first frame. Strangely, all the data passed to Lectora and then to LMS without any errors even when it ignores stop(). If I commented these lines, the program stops at the right frame but then no info can be passed. And the same script worked perfectly before and suddenly stopped working.
Besides scripting error, what are the other reasons Flash would ignore stop() first but then stops at the next stop()? How can I identify what it is doing when ignoring the stop()?
Thanks for any suggestions,
Copy link to clipboard
Copied
Very often a stop() command is overridden by some other command that is working to the contrary... the usual suspect would be an onEnterFrame or a similar looping acitivity telling something to play.
Copy link to clipboard
Copied
Thanks for the suggestion, Ned. Eventually, I redid the Lectora file by adding all the variables myself (it was done by someone else) and it worked fine afterwards.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now