I dug through my Kiosk code and found that heck, I was even doing some
SendAllsprites() on receiving ActiveX events, so you CAN do more that just
setting flags, but you have to be very careful. It looks like my SAS's
were to get the message to that behavior itself with all the me's,
properties, etc.
Today I'd probably doing it differently, but the kiosk was able to run for
a at least a couple weeks of constant automated testing, with LOTS of back
and forth between the activeX's and Director, so it must not be too dangerous.
I wonder if the SAS gets the control back into the scope of Director,
rather than the event-driven scope.
roymeo
At 06:02 PM 7/1/2005, you wrote:
thanx for the info. A workaround would be to let the callback create a
timeout object (see code below which does succesfully throw an error).
So, I wonder, maybe it would be a good habit to ALWAYS use
1ms-timout-objects for xtra callbacks? What do you think?
Valentin
a global boolean, maybe a behavior property, but since your callbacks from
Flash/Xtra/ActixeX don't provide the "me" for behavior methods, sometimes
this can be a problem.
You might be OK with a timeout, long as you're not trying to reference
objects that don't exist/aren't referenced ("me") and aren't trying
anything too fancy there.
The basic idea is:
Do as little as possible when receiving events n callbacks from
Flash/Xtras/ActiveX. Set the data somewhere for Director to find as part
of its normal event hierarchy.
roymeo
-----------
Roy Crisman
Macromedia Director Programmer, Lingo Guru, Multimedia Producer
150 Laidley St #1
San Francisco, CA 94131-2754
(585)615-2873 cell
http://www.brokenoffcarantenna.com/
roymeo(AT)brokenoffcarantenna.com
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L
is for learning and helping with programming Lingo. Thanks!]
-----------
Roy Crisman
Macromedia Director Programmer, Lingo Guru, Multimedia Producer
150 Laidley St #1
San Francisco, CA 94131-2754
(585)615-2873 cell
http://www.brokenoffcarantenna.com/
roymeo(AT)brokenoffcarantenna.com
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]