Error when jumping to another page
I keep getting an error below when jumping to other pages in Interact mode. Error occurs after clicking element and when the requested page starts to load. This happens randomly but frequently, like every other time I visit the same page in Interact mode. This happens in a number of places in my app. I checked the code on all the page elements and nothing is obviously causing the issue. Action on element is simple On Tap, animate, jump to page #. Even occurs on a static element with no animate action, just Tap > Jump Page #.
Please try to fix this as my app is getting close to being launch ready. Thanks!
InteractBuilder Version: 3.2 Build 308
Device: MacBook Pro
Processor: Intel Core i7
Memory: 4 GB
System: 10.7.5
--------------------
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
Error: Chunk: can't find background / Chunk: error in object expression / send: bad target expression
Handler: Behavior_Animate_PlayFrame
Hint:
Location: Line 0, char 1
Object: button id 1008 of group id 1010 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
87: Line 0 at char 1: Chunk: can't find background
69: Line 3951 at char 64: Chunk: error in object expression ----> button id 7620071 of group id 7620042 of card id 1140 of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
532: Line 3951 at char 1: send: bad target expression
253: Line 3943 at char 1: if-then: error in statement
241: Line 3943 at char 1: Handler: error in statement ----> Behavior_Animate_PlayFrame
353: Line 0 at char 0: Object Name: ----> button id 1008 of group id 1010 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
line 150 of handler "errorDialog" of button "stsErrors_FS" of card id 1002 of stack "libSTSErrors"
line 10946 of handler "DoError" of stack "InteractBuilder" of behavior button "Stack B" of card id 1002 of stack "Behaviors"
Відповідь
It is best that you set all your "Jump" action sets to run AFTER any animations. Right now our guess is that you have Jump behaviors occurring while there is animation going on. Make sure also that if you have animations that are in a loop you put a "STOP ANIMATION" action set for each animation prior to running the Jump action set. You should setup the Jump action set to run after the animation stops.
We will put some code in the next version that will prevent this from happening, but for now you can follow the directions above to avoid those errors.
Ezra, this is also happening after I click a STATIC element to launch a new page, so I think it is a bug. This is occurring randomly, but often. Thanks for looking into this.
Служба підтримки клієнтів працює на UserEcho
It is best that you set all your "Jump" action sets to run AFTER any animations. Right now our guess is that you have Jump behaviors occurring while there is animation going on. Make sure also that if you have animations that are in a loop you put a "STOP ANIMATION" action set for each animation prior to running the Jump action set. You should setup the Jump action set to run after the animation stops.
We will put some code in the next version that will prevent this from happening, but for now you can follow the directions above to avoid those errors.