How could I make a flv player by Flash8?

Hello, how can I make a flv player by Flash8? a simple one is OK. Would you please provide me sample codes or any good tutorials?? BestRegards, portal
portal123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vishal_impactCommented:
hi here you go
To play back an external FLV file in a Flash document:
1. With the document open in the Flash authoring tool, in the Library panel (Window > Library) select New Video from the Library options menu to create a video object.
2. Drag a video object from the Library panel onto the Stage; this creates a video object instance.
3. With the video object selected on the Stage, in the Property inspector (Window > Properties) enter my_video in the Instance Name text box.
4. Open the Components panel (Window > Development Panels > Components), and drag a TextArea component to the Stage.
5. With the TextArea object selected on the Stage, enter status in the Instance Name text box in the Property inspector.
6. Select Frame 1 in the Timeline, and open the Actions panel (Window > Development Panels > Actions).
7. Add the following code to the Actions panel:

PHP Code:
// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection
netConn.connect(null);
// Create a NetStream object and define an onStatus() function
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
  status_txt.text += "Status (NetStream)" + newline;
  status_txt.text += "Level: "+infoObject.level + newline;
  status_txt.text += "Code: "+infoObject.code + newline;
};
// Attach the NetStream video feed to the Video object
my_video.attachVideo(netStream);
// Set the buffer time
netStream.setBufferTime(5);
// Begin playing the FLV file
netStream.play("videoFile.flv");

also::
Still, for the play and stop buttons, make event handlers that will trigger the NetStream:
for example

playVideo_mc.onPress=function(){
NetStream.play("yourvideo.flv");
}
let me know
Happy coding
cheers
vish
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.