Re: Reg Capturing Event.

For the event listening I would recommend to use SMIL:

<img id="pict" src="test.gif" dur="4s" />
<ev:script begin="pict.mousedown">
    ... 
    ECMAScript
    ... 
</ev:script>

Warner.





www-smil@w3.org
Sent by: www-smil-request@w3.org
12-09-2001 11:48

 
        To:     Mohammed Zubair <mohammed.visharam@am.sony.com>
        cc:     www-smil@w3.org
(bcc: Warner ten Kate/EHV/RESEARCH/PHILIPS)
        Subject:        Re: Reg Capturing Event.
        Classification: 




Hi,

I have been experimenting with SMIL and scripting. Currently,
SMIL Recommendation doesn't have anything how to include
scripts into SMIL files, so I have created script tags in another
namespace, containing the ECMAScript. I don't know if this
will be the way to implement scripting in SMIL.
For instance, to catch mouse pressed event for an image:

<img src="test.gif" dur="4s">
   <ev:onevent type="mousedown">
      <ev:script> ... ECMAScript... </ev:script>
   </ev:onevent>
</img>

This currently works in the X-Smiles browser, but it most
probably will not be the standard way to write scripts.
But if you want to start experimenting, you can use it.

 - Kari


On Mon, 10 Sep 2001, Mohammed Zubair wrote:

> Hello all,
>  In my application i need to trigger certain events in another 
application
> based on SMIL events. What i mean is that is there a way by which say 
when a
> user clicks in a SMIL document (by activateEvent), then i should be able 
to
> recognise this to trigger certain other events.
>  Some sort of dynamicism is what i am getting at (dynamic smil).
> I know that internally within the SMIL document itself this is possible 
i.e.
> event capture which is automatic, but what if i need to triger some 
event in
> a different application.
>  In that case how can i capture the events triggered in SMIL.? Is there 
an
> interface of some sort?
> 
>  Also, can i embed some scripts in SMIL documents too?
> 
> 
> regards,
> Mohammed Zubair V
> 
> 

Received on Thursday, 13 September 2001 04:15:27 UTC