Sounds like you want to build some sort of a "timeline" data structure, which would be<br>a kind of hash table or array that you can index quickly with a key to find out<br>all events that occur closest before and after that key. I'm not sure what the best data structure for<br>
this would be, but some sort of comparison tree with linked pointers from event to event maybe. <br><br><br><div class="gmail_quote">On Mon, Jun 2, 2008 at 5:46 PM, Yannick Warnier <<a href="mailto:ywarnier@beeznest.org">ywarnier@beeznest.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I would like to implement a kind of subtitles feature for an animated<br>
character. I'm trying to get my head around the problem, but the only<br>
type of solution I got so far is to make a timer check every tenth of<br>
second if there is something new to display.<br>
<br>
My idea of the subtitles file is to have an XML structure of this kind:<br>
<subtitles><br>
<subtitle time="00:00:00.0">Welcome</subtitle><br>
<subtitle time="00:00:00.0">This animation will take you<br>
through ...</subtitle><br>
...<br>
</subtitles><br>
<br>
However, considering how easy it is, in OpenLaszlo, to use datasets from<br>
XML files, I was wondering if there would be any special mechanism to<br>
build an "animation" (in the OpenLaszlo sense) based on a dataset's time<br>
markers, somehow, and that would make this little project far easier to<br>
implement.<br>
<br>
I'm open to any interesting suggestion...<br>
<font color="#888888"><br>
Yannick<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br>