Solved

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

Posted on 2009-06-27
2
382 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 500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

695 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