[alicebot-developer] Javascript problem
Gary Dubuque
alicebot-developer@list.alicebot.org
Sat, 13 Aug 2005 19:58:46 -0700
Hi Ioannis,
The ActiveX technology creates a process boundary which separates the host
from the embedded controls. To gain reference to the host elements, like a
sprite, from within a control is a very difficult proposition. On the other
hand, you can scan the results returned from the ActiveX control for clues
to have activities lunched in the host. Say your reply starts with a
special code like an @ sign followed by a number to indicate an action for
the host to fire off. The host code could strip this special instruction
off the regular returned answer and display the rest while setting the
appropriate parameters in sprites, etc. This can be expanded to pass more
than just a number to index what to launch, it couild also contain
parameters to parse out - things like what the string contains to append to
a sprite.
HTH,
Gary Dubuque, hacking away at the MS software pristhood
-----Original Message-----
From: alicebot-developer-admin@list.alicebot.org
[mailto:alicebot-developer-admin@list.alicebot.org]On Behalf Of Ioannis
Sent: Friday, August 12, 2005 11:01 PM
To: alicebot-developer@list.alicebot.org
Cc: gdubuque@scattercreek.com
Subject: [alicebot-developer] Javascript problem
Hi all,
I have the following script in AIML. I am using the AIMLPad ActiveX control
from Gary Dubuque.
<aiml>
<category>
<pattern>run camera animation</pattern>
<template>
<javascript>
function VCTCamera()
{
sprite(6).AppendString('<PlayAnimation
Name="/DA/DATA/Maddy/Realtime/Clips/Camera/Camera3.lws">');
}
</javascript>
OK I will run the camera animation now </template>
</category>
</aiml>
sprite(6) is the location of another active X control (a 3D character
engine) in macromedia director. What I want to do is every time I type "run
camera animation" the character to run the particular animation. Is there
any way to do that? My guess is that in order for the above function to work
I must call it from somewhere. Any ideas?
Please help
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
alicebot-developer mailing list
alicebot-developer@list.alicebot.org
http://list.alicebot.org/mailman/listinfo/alicebot-developer