Programming Art Forums

Programming Art Tutorials >> Flash

Pages: 1
Obarc
Novice


Reged: 11/30/04
Posts: 1
How can I manage external FLV?
      #494 - 11/30/04 04:55 AM

Deer Flas Programmer mates!
I would like to ask you a question about managing FLV-s.
As the MX 2004 Pro tutorial told me, I have created a movie. It's very important for me, that the movie must read an external FLV, mecause my FLV's size are very large. So I folloved the Help, and created a Media Display Component, and with the Component Inspector panel, I attached the external FLV to the Media Display component. It works, but I also created another MovieClip, and I labeled its timeline with some labels. With the Behavior panel, I selected the Labeled CuePoint behavior. It also works, now as may wideo is playing, the other movieclip jumps to the positions, that I declared. But I've got a problem...

I would like to command the media Display (for example with an on(release){} command) to jump to a position that I would like to watch. Like: goto the 25th second of the film. And unconventionally the other MovieClip must react too.

The Question: How can I command an Externl FLV, to move to a position, with an event, (like gomb_btn.onPress=function(){external FLV goto position or cuePoint, os etc.}?

Thank you for your help.



Post Extras: Print Post   Remind Me!   Notify Moderator  
Jeremy
Journeyman


Reged: 11/20/02
Posts: 49
Loc: Columbus, OH
Re: How can I manage external FLV?
      #495 - 11/30/04 09:25 AM

Hi Obarc, great question!

Unfortunately I have not had the opportunity to use the functionality yet, but I did some research for you that has proven quite interesting, hopefully it helps you out. First, I found this on the Macromedia Flash website:

Flash Player 7 introduced a new technique called progressive download, which enables developers to use ActionScript commands to feed external FLV files into a SWF file and play them back at runtime. More specifically, you can use the netConnection and netStream commands to set the FLV file to play back, and to control the Play, Pause, Seek (to a timecode), and Close behaviors and the buffertime and size for a given video file.

In this method, the video content (FLV file) is kept external to the other Flash content and the video playback controls. Because of this, it's relatively easy to add or change content without republishing the SWF file.

Flash MX Professional 2004 also includes a set of components called media components that you can use to quickly add a full-featured FLV or MP3 playback control to your Flash project. Media components provide support for both progressive download and streaming FLV files. Flash MX Professional 2004 also includes a set of behaviors that can be used in conjunction with media components to create automated interactions between video sequences and slides in a project. (For details on using ActionScript and media components, see the reference guide, which you can view using the Flash MX 2004 Help panel.)

Using progressive FLV files has the following advantages over using embedded video:

During authoring, you need to publish only the SWF interface for previewing or testing part or all of your Flash content. This results in faster preview times and quicker turnaround on iterative experimentation.
For delivery, video begins playing as soon as the first segment has been downloaded and cached to local disk.
At runtime, video files are loaded from the local disk into the SWF file, with no limitation on file size or duration. There are no audio synchronization issues or memory restrictions.
The frame rate of the video file can be different from the frame rate of the SWF file, allowing for greater flexibility in setting up a project.


So we now know what to use to make it happen.

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001599.html

That is a link to the netSeek command which is how you make an external flv go to a certain point in playback which seems to be what you want to do. Now, referencing the FLV itself doesn't seem too difficult.

It seems that this is the link we need to actually import the video:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001599.html

The important part is to give your video an instance name in the Flash interface so you can call on it in Actionscript. Good luck and let me know if you need anything else!

--------------------
JS [EOTT]


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 10 anonymous users are browsing this forum.

Moderator:  Programmingart, Brad 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 8452

Rate this topic

Jump to

Contact Us Programming Art Home

*
UBB.threads™ 6.5.1.1

Notice: due to an unmanageable amount of spam, the forums are closed to new members until further notice. You may still get support for any of your software products by emailing us at support@ at our website domain. Please feel free to browse existing posts as a guest as there is plenty of valuable information here. Thanks!