Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Flash CS5 AS3 jump to 30 seconds into a video

Posted on 2012-04-03
3
Medium Priority
?
447 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 1350 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…
Suggested Courses

636 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