AE expired cached objects
Posted: Thu Dec 24, 2015 9:18 am
Hi, sorry if this is silly question but I have a card that dynamically creates (on preOpenCard), animates (on openCard) and deletes (on closeCard) graphic objects. On the first run of aeChangeAngleCircular it works fine, but on subsequent runs (closing then re-opening card) it fails with "execution error Chunk: No such object" on the line:
It looks like it is trying to send those to objects that did exist on a previous run, but no longer do. It still adds the new grc objects to tAEEasingCircular though. However, I expect 2 objects in that array on each run, but it keeps the 2 from each previous execution.
I've worked around it by adding before the above, but it of course doesn't prevent the old objects from accruing.
Am I missing something when i close the card while the animation is executing? i think that might be the root of the problem, is there a aeStopGeneral or similar i need to execute on card close?
The card executes aeChangeAngleCircular the long ID of grc .... in a handler titled "playEffect"
The closeCard handler is
thanks for any help
- Mark
Code: Select all
send "aeEnterFrame" && "aeChangeAngleCircular" to pcontrol
I've worked around it by adding
Code: Select all
if not exists(pControl) then next repeat
Am I missing something when i close the card while the animation is executing? i think that might be the root of the problem, is there a aeStopGeneral or similar i need to execute on card close?
The card executes aeChangeAngleCircular the long ID of grc .... in a handler titled "playEffect"
The closeCard handler is
Code: Select all
repeat for each line q in the pendingMessages
if item 3 of q is "playEffect" then
cancel item 1 of q
end if
end repeat
repeat with j = the number of graphics down to 1
delete graphic j
end repeat
- Mark