?
Solved

How to sync images to playback of an FLV in Flash CS4

Posted on 2009-06-27
2
Medium Priority
?
387 Views
Last Modified: 2013-12-25
I need to sync images to the playback of an FLV file in Flash CS4.  Anyone have any insight?  The help files are not descritpive enough for my level of AS knowledge.
0
Comment
Question by:vividpixel
[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 Comments
 
LVL 1

Accepted Solution

by:
mynamebecory2 earned 2000 total points
ID: 24730136
You can embed metadata in an FLV file.

See to inject metadata: http://www.buraks.com/flvmdi/
See to inspect metadata: http://www.buraks.com/flvmdv/

When you're playing the FLV file using the NetStream class you can create an onMetaData function in the class which is managing your NetStream and assign the NetStream's client property to "this".

See code snippet.

Then you can either set the Image's source based on the number of event's you've received so far or you can embed your own properties like "imagesource=imageX.jpg" in the each of the metadata/cuepoints you embed in the FLV.

Also for reference: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001037.html
http://venixflytrap.net/2008/05/11/embedding-metadata-in-flv-files/
public class MyNetStreamOwningClass {
 
     private var ns:NetStream = new NetStream(myNetConnection);
 
     public function MyNetStreamOwningClass(){
          ns.client = this;
          ns.play( "myMovie.flv" );
     }
 
     public function onMetaData( e:Object ):void {
          trace( "METADATA EVENT: " + e.toString() );
          // TODO: code to display new Image
          // e.g. myImage.source = ...
     }
}

Open in new window

0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses
Course of the Month8 days, 3 hours left to enroll

765 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