# loadVariables() error detection

**URL:** <https://forum.kirupa.com/t/loadvariables-error-detection/240889>\
**Category:** flash\
**Created:** [October 7, 2007, 10:07pm UTC](https://forum.kirupa.com/t/loadvariables-error-detection/240889 "2007-10-07T22:07:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_c](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anonymous\_c](https://forum.kirupa.com/u/anonymous_c)\
**Post date:** [October 7, 2007, 10:07pm UTC](https://forum.kirupa.com/t/loadvariables-error-detection/240889/1 "2007-10-07T22:07:20Z")

</div>

Is there any way for error detection with the loadVariables() function? The only way I can think of is to set a local variable, such as ‘load\_complete’ to zero and have it set to one in the server response. Then set a timer to check if ‘load\_complete’ is set. If it isn’t set within so many timer cycles have the player display an error. Is this what is typically done, or is there a simplier way to do this?
