Skip navigation
EverestJ
Currently Being Moderated

looping with cue points, round 2

Mar 17, 2013 10:37 AM

Tags: #flash #as3 #3.0 #action_script_3 #actionscript #flash_professional #flash_cs5.5 #flash_cs6

OK, so I have done this before, and it has worked.  It should be as simple as copying the code and renaming the FLV player, but I get an "invalid seek" error.  Like I have said, this has worked on previous sites I have made, so any explanation would be great.  I am trying to get a video to play through, and then loop back to the middle of the video and play to the end in a continuous loop.   The only difference I can see is that on my other site, it is streaming from my ftp.  This shouldn't make a difference, as apposed to being local, should it?  I am also using embedded cue points.  Thanks again.  Here is the code:

 

stop();

 

 

import fl.video.MetadataEvent;

 

 

Movie.addEventListener(MetadataEvent.CUE_POINT, loopFunction);

function loopFunction(e:MetadataEvent):void{

if (e.info.name=="introEnd") {

Movie.seekToNavCuePoint("introMiddle");

Movie.play();

}

}

 
Replies
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 17, 2013 12:33 PM   in reply to EverestJ

    trace your cuepoints to confirm there is one named introMiddle

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 17, 2013 3:03 PM   in reply to EverestJ

    post a link to your flv.

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 17, 2013 6:16 PM   in reply to EverestJ

    try seeking to 352.

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 17, 2013 9:03 PM   in reply to EverestJ

    you're welcome.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points