>Hi all,
>
>When I use "go to movie" in the handler that runs when a click on a hot spot
>occurs in a QTVR movie, I get off the application with messages "error 1",
>"error 2" or "error 3"!
Yes, this' a classic.
If from the object from which an event originates, is destroyed
during the processing of the event, then the callstack can't
terminate, and you get a crash.
The solution is to only use events from the QTVR object to set a flag
somewhere, and then read the flag and take appropriate action, in an
other event, originating from a more persistent object, such as the
lingo engine.
Simple pseudo example:
global gFlag
on callBack
gFlag = TRUE
end
on exitFrame
if gFlag then
gFlag = FALSE
go "whereEver"
end if
end
Jakob
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]