|
||||||||||||||
. . . . . |
Flash 8 flv video player
This tutorial will go through the steps needed to create a simple flash8 video player for player .flv videos. This Flash 8 tutorial was taken off the
brilliant work done by Lee Brimelow at GotoandLearn.com Who has done a lot of great work using NetConnection and NetStream Objects to create the code to play videos. The NetConnection and NetStream objects are Actionscript code that is used in Flash Media Server 2.
Flash Tutorials in Video Format -
Watch them now at LearnFlash.com
Create a new flash file.
Now you need to put in the code to play the external video.
stop();
// create a netConnection object
var nc:NetConnection = new NetConnection();
// connect to null
nc.connect(null);
// create netStream object
// and pass the netConnect to it
var ns:NetStream = new NetStream(nc);
// attach the netStream object to the embedded video object
myVideo.attachVideo(ns);
// netSTream object plays the video
ns.play("tkd01.flv");
Now create a new layer and call it buttons or such and make two buttons for rewind and play.
// code for control buttons
// rewind button takes the play head to beginning
rewind_btn.onRelease = function(){
// send the playhead to 0 seconds
ns.seek(0);
}
// play button
play_btn.onRelease = function(){
// toggle between pause and play
ns.pause();
}
Flash 8 ResourcesXML Playlist for flv videos - go on to the next part of this Flash 8 tutorial which creates an xml playlist for the flv video player. . |
|
||||||||||||
|
. | Home | Flash MX | Actionscript 2.0 | Flash 3D | Flash 8 | Flash Database | Flash Mobile | Flash CS3 | Java For Kids | Video Course | General Video | Photoshop | Web Design | Digital Photography | Games | free backgrounds | Resume | Streaming Video | Students Work | Links | Contact me | sitemap | reviews | . . |
||||||||||||||