A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: subtitles

  1. #1
    Senior Member
    Join Date
    Mar 2006
    Posts
    139

    subtitles

    hello!

    need to add subtitles to an flv... spent hours searching the internets to no avail... has anyone had any experience doing this?
    My understanding is that i can read from an xml file, something like this:

    Code:
    <cuepoints>
     <cuepoint>
      <cuename>c_pt_0</cuename>
      <cuetime>1</cuetime>
      <subtitle>This is text for the 1st cuepoint</subtitle>
     </cuepoint>
     <cuepoint>
      <cuename>c_pt_1</cuename>
      <cuetime>3.5</cuetime>
      <subtitle>This is text for the 2nd cuepoint.</subtitle>
     </cuepoint>
    </cuepoints>
    and then add a listener in flash, maybe something like this:

    Code:
    myMovie.addEventListener("cuePoint", MyCuePointListener);
    but unsure how to link it to the xml... or if it will even work... or if its even possible... and has to be done in AS2...

    thanksssss.

  2. #2
    Member
    Join Date
    Aug 2012
    Posts
    55
    have a look at this: http://www.actionscript.org/resource...XML/Page1.html

    you're just missing a few lines of code.

  3. #3
    Senior Member
    Join Date
    Mar 2006
    Posts
    139
    Hi,

    thanks, yea i came across that yesterday but it's dependent on a 3rd party class called Xmodel which i cant seem to find...

  4. #4

  5. #5
    Senior Member
    Join Date
    Mar 2006
    Posts
    139
    thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center