Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Debug script ignoring stop();

Contributor ,
Jan 30, 2013 Jan 30, 2013

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,

TOPICS
ActionScript
659
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 30, 2013 Jan 30, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 01, 2013 Feb 01, 2013
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines