W3C home > Mailing lists > Public > www-smil@w3.org > July to September 2001

Re: Reg Capturing Event.

From: <warner.ten.kate@philips.com>
Date: Thu, 13 Sep 2001 09:33:25 +0200
To: www-smil@w3.org
Message-ID: <OFE8BAC060.E327B979-ONC1256AC6.0028F5B1@diamond.philips.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:53:27 GMT