On Sun, 28 Nov 2004 23:34:06 +0000 (UTC), "des1derata"
[quoted text, click to view] <webforumsuser@macromedia.com> wrote:
> 1. How do I preview my content pieces (videos created in Final Cut and then
>exported as FLV files using Exporter) in Flash MX 2004 Pro?
What video viewer you are using? Is it just a Video? Or some media
component? I'd prefer simple Video. Use New Video from library popup
menu. Then add the code like this:
_root.movie._soundbuftime = 1;
// CREATE VIDEO CONNECTION TO LOCAL MACHINE
// Set the name of the movie to be played
fileName = "1.flv";
// Create a NetConnection object:
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn.connect(null);
// Create a NetStream object
var netStream:NetStream = new NetStream(netConn);
// Define an onStatus() function:
netStream.onStatus = function(infoObject) {
//status.text += "Status (NetStream)" + newline;
//status.text += "Level: " + infoObject.level + newline;
//status.text += "Code: " + infoObject.code + newline;
// Turn on the mouse listener if the movie clip has ended.
// This is how we are restarting the movie.
if(infoObject.code == "NetStream.Buffer.Empty"){
mouseListener = new Object();
mouseListener.onMouseMove = function(){
trace('play again');
// TURN OFF THE MOUSE LISTENER
Mouse.removeListener(mouseListener);
// Clear status window
//status.text = "";
// Replay the video
playExternalVideo(fileName);
}; Mouse.addListener(mouseListener);
}
};
function playExternalVideo(fn){
// Attach the NetStream video feed to the Video object:
this.movie.attachVideo(netStream);
// Set the buffer time (seconds):
netStream.setBufferTime(5);
// Begin playing the FLV file: on frame 3 not here.
netStream.play(fn);
}
playExternalVideo(fileName);
You can control your video by:
netStream.pause(true) -- to pause
netStream.pause(false) -- to play again
netStream.stop() -- to stop.
netStream.seek(time_in_seconds) -- to set position
read help for details.
[quoted text, click to view] > 2. I'm hoping to include 23 videos that range from 1 to 2 minutes in length
>within my project and on the CD. Any suggestions for file size/compression
>settings?
It will depend on your CD size and video quality/frame size/frame
rate...
[quoted text, click to view] > 3. I obviously want my videos to run smoothly when the user accesses them on
>the CD. Do I need to be worried about data transfer rates from the CD player
>when compressing my vids? Any ideas?
Use FLV and don't care about smoothness! All will work great!
P.S. If you'd like to protect your videos on CD from copying, I could
suggest a tool for that :) All files will be included into one
continious EXE, ciphered and never be saved to HDD. :)