Solved

Flash CS5 AS3 jump to 30 seconds into a video

Posted on 2012-04-03
3
432 Views
Last Modified: 2012-04-08
I want to press a button and jump 10 seconds ahead in a an .f4v that is imported into the FLVPlayback component.

Using Flash CS5 and AS3.

Here's what I have:
next_btn_i.addEventListener(MouseEvent.CLICK, fx_forward10);
function fx_forward10(event:MouseEvent):void
{
      //somebody help me!
}
0
Comment
Question by:tlengnick
  • 2
3 Comments
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 450 total points
ID: 37802709
Hey,
in theory i think seekToNavCuePoint(); should be what you're looking for. but there seems to be some issues surrounding it.

have  a look here about half way down the face.
http://www.parorrey.com/tag/flash-as3/page/2/
0
 

Accepted Solution

by:
tlengnick earned 0 total points
ID: 37803064
Thanks, blue-genie... that link led to another and another and another that finally came up with it!!

Here is the code that worked for me (after 4 hours online searching for this!):

var seekto:Number;
next_btn_i.addEventListener(MouseEvent.MOUSE_UP, fx_forward10);
function fx_forward10(event:MouseEvent):void
{
      seekto = aud01.playheadTime + 10;
      aud01.playheadTime = seekto;
}
0
 

Author Closing Comment

by:tlengnick
ID: 37820895
The link provided gave me some keywords to try to search online with... due to being stubborn, I kept going from page to page, forum to forum to find something that worked.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question