Solved

Flash CS5 AS3 jump to 30 seconds into a video

Posted on 2012-04-03
3
429 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now