Solved

Flash CS5 AS3 jump to 30 seconds into a video

Posted on 2012-04-03
3
425 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

763 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

10 Experts available now in Live!

Get 1:1 Help Now