Solved

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

Posted on 2009-06-27
2
368 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
2 Comments
 
LVL 1

Accepted Solution

by:
mynamebecory2 earned 500 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

743 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

16 Experts available now in Live!

Get 1:1 Help Now