# Subtitle xml flash video

**URL:** <https://forum.kirupa.com/t/subtitle-xml-flash-video/259748>\
**Category:** Uncategorized\
**Created:** [May 8, 2008, 11:46am UTC](https://forum.kirupa.com/t/subtitle-xml-flash-video/259748 "2008-05-08T11:46:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [May 8, 2008, 11:46am UTC](https://forum.kirupa.com/t/subtitle-xml-flash-video/259748/1 "2008-05-08T11:46:21Z")

</div>

right I have subtitles working,

but i want it so that if you scrub back through the video to any point, the correct subtitle appears.

I’m thinking something like…

```auto
 
for (i=0; i<subTitleArray.length; i++) {

    //
    if (subTitleArray* > ns.time && subTitleArray[i-1]< ns.time) {
     //
     say index i" number which I can then use to call the correct subtitle
    }
}

```

thanks
