A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Loading swf's from a FLV timeline

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    182

    Loading swf's from a FLV timeline

    Does any one know how to load swf's when the flv's playhead reaches a certain time?

    I have a 20 minute flv and I want to have individual swf's load at various times thoughout the presentaion next to the flv.

  2. #2
    Junior Member
    Join Date
    Feb 2008
    Posts
    3

    a little help

    Quote Originally Posted by stevec
    Does any one know how to load swf's when the flv's playhead reaches a certain time?

    I have a 20 minute flv and I want to have individual swf's load at various times thoughout the presentaion next to the flv.
    you could use cue points, all you have to do is set them on you flv instance add a name and time to them and then add a listener and ask it to perform an action when it listens to that cuepoint.

    any questions lemme know.

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Location
    Prague, Czech Republic
    Posts
    1
    Other option is to make enter frame listener and checking the actual time of the playing video. If it is in some interval you call some function you need ;-)
    PS: sorry about my English..

  4. #4
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    Except that that's about the most unreliable way to check the time of something in Flash. Cuepoints are the way to go...

    Dan

  5. #5
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127
    One issue to consider is if your user can jump forward in the flv.
    If they do the cue points are missed and your swf will not update until the next cuepoint.
    I used if statements like[php]
    if((_ds.time >= 136.004) && (_ds.time < 167.267)){
    do this stuff
    }
    if(_ds.time >= 167.267){
    do this other stuff
    }[\php]

    that way the appropriate event triggered even if the user jumped forward past a cue point. See it here where I use it to scale the video mask and reposition the video. The scaling happens as soon as you land anywhere within the right timezone in the flv.
    http://www.orangefilmworks.com/

    Of course it the user can not jump around in the flv then cue point swill work fine

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