1 Reply Latest reply on Jun 3, 2010 2:18 AM by David_F57

    flexible cue points

    djh88ukwb Level 1

      Hi,  I have my cue points being used with a XML file, and using the following script to determine which is being viewed.

       

                  protected function vp_currentTimeChangeHandler(event:TimeEvent):void
                  {
                      lbl.text=String(event.time);
                      if (event.time < int(xmlCuePoints[1].@time))
                      {
                          if (img.source != xmlCuePoints[0].@image) img.source = xmlCuePoints[0].@image;
                      }
                      else
                      {
                          for (var i:int=1; i    < xmlCuePoints.length-1; i++)
                          {
                             
                              if (event.time > int(xmlCuePoints[i].@time) && event.time < int(xmlCuePoints[i+1].@time))
                              {
                                  if (img.source != xmlCuePoints[i].@image) img.source = xmlCuePoints[i].@image;
                              }   
                          }     
                      }
                      if (event.time > int(xmlCuePoints[xmlCuePoints.length-1].@time))
                      {   
                          if (img.source != xmlCuePoints[i].@image) img.source = xmlCuePoints[i].@image;
                      }
                  }

       

      The post can be found here - http://forums.adobe.com/thread/626587?tstart=0

       

      How would i go about making a function to jump to a certain point of a videoplayer timeline and also in my cuepoint timeline ?