Solved

Flash CS5 AS3 jump to 30 seconds into a video

Posted on 2012-04-03
3
439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

688 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