Hello and welcome to first part of Video player series in which I will teach you guys how to make video players in Flash. These tutorials are only here for a short time after Admin comes back, the tutorials are going to be turned into videos. This is first come first serve so learn while you can for FREE

.
Here we go. First open up Flash and create a new document.
Press CTRL+L to open up library panel. Now from right top corner of Library Panel there is a Icon (Image 1.0). Click on it and click New Video. It will open up Video Properties window. Change it settings (Image 1.1).
Image 1.0
Image 1.1
After clicking Okay you'll see a camara icon with text beside it saying "VideoPlayer" that is what we named the video player. drag it on to the stage.
Change it dimensions to the video you are going to play. I'll go with 320X240 and give it a instance name of "SCRN" all caps. And Center it.
create a new layer and call it actions. Lock the actions' layer press F9 In the First frame of action's layer and copy and paste the following code.
Quote:
var NC:NetConnection = new NetConnection();
NC.connect(null);
var NS:NetStream = new NetStream(NC);
SCRN.attachVideo(NS)
|
Now make a new folder on your desktop and call it whatever you like. In that folder we are going to save all the parts. I know you want to know what that code means I'll explain the whole thing after the series is over.
Press CTRL+S and save the document as "Part1.fla" in that folder we created.
This is the end of Part 1 - Connection. I'll see you in part 2 - Controls.
Good Bye And Stay tuned!
Bhargav.