How can I have keyframes on one layer proceed while using the gotoAndStop function?

I have a Flash presentation that allows me to pair videos with the slides using a nice piece of ActionScript. The presentation advances to the slide on the next keyfram when the viweer clicks the "next button" and the video for that keyframe (on a separate layer) begins playing.
owever, I am now trying to pair two slides with the same video without having the video restart or requiring the viewer to click the"next slide button" I was hoping I could just turn the two slides into a video clip, convert it into a symbol and insert the symbol in place of the static slide, but nothing seems to happen. I'm wondering if the "gotoAndStop" function in the ActionScript is preventing it from playing.
Any thoughts on how I can have the presentation be controlled by the next and previous buttons most of the time, but have the exception of one slide that changes on its own? The relevant (I believe) code is below.
Thanks!
Julien
// FUNCTIONS AND LOGIC
function fl_prevSlide():void
          if(slides_mc.currentFrame > 1)
                    slides_mc.gotoAndStop(slides_mc.currentFrame-1);
                    if(transitionOn == true)
                              fl_doTransition();
                    if(pageNumberOn == false)
                              slideNumber_txt.text = "";
                    } else {
                              slideNumber_txt.text = String(slides_mc.currentFrame + "/" + slides_mc.totalFrames);
function fl_nextSlide():void
          if(slides_mc.currentFrame < slides_mc.totalFrames)
                    slides_mc.gotoAndStop(slides_mc.currentFrame+1);
                    if(transitionOn == true)
                              fl_doTransition();
                    if(pageNumberOn == false)
                              slideNumber_txt.text = "";
                    } else {
                              slideNumber_txt.text = String(slides_mc.currentFrame + "/" + slides_mc.totalFrames);

Try this code. Replace FLVmovie with the instance name of your FLV & set the time to when the frames shoudshould advance.
import flash.events.Event;
this.addEventListener(Event.ENTER_FRAME, checkTime);
function checkTime(e:Event):void {
      if (this.FLVmovie.playheadTime >= 15)  // This is the playhead time in seconds
          this.gotoAndStop("frame label or frame #");
          this.removeEventListener(Event.ENTER_FRAME, checkTime);

Similar Messages

Maybe you are looking for

  • When downloanding in safari it keeps quiting unexpectedly.

    when I am downloading....like trying to download another program....my safari quits unexpectadely. I have also had this problem when I was trying to login to another website. I can't even download another web browser so that I can visit my employers

  • How to display the bw-variables in webi Filter

    Hi,everyone,      When I  set default values ( ex. last month ) to BW-variables in the BW enhanmance, this default valuse can not display in webi. I use the routing: BW-QUERY --> Universe --> webi. So I hope to display the BW-variable in the Webi fil

  • Trouble connecting report to Datasource

    I have a report in Central Management Console and when i try and view it I enter in the parameters and then it asks for my database username and password.  I have entered these repeatedly and I receive no error but the same screen keeps showing up. 

  • No warning before moving the ~/Library folder...

    OSX 10.7.3 on Macbook Air 13.3' i5 1.7Ghz 128GB. Yesterday I was working on a Finder window opened on my ~/Library. As I accidentally dragged the icon displayed in the Title area, the OS lost my user settings... I quickly realized that my action caus

  • Sharing photos into one archive

    We have three Macs with three different iPhoto libraries. They are all set to share photos. Is there a way to archive ALL the photos on these computers? When I select my laptop library and drag it to my iMac library, it pulls up the warning about dup