- From: Kari Pihkala <kpihkala@alpha.hut.fi>
- Date: Wed, 12 Sep 2001 12:48:05 +0300 (EET DST)
- To: Mohammed Zubair <mohammed.visharam@am.sony.com>
- cc: www-smil@w3.org
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 Wednesday, 12 September 2001 05:48:04 UTC