Lives On Board

/ My MetaSphere /

Wed Feb 4, 2004

Flash MX Hosting
Web Hosting
Web Tools
Help FAQ
Site Chat
Web Search
Asheville NC
Network Log
Got Flash?
Web Links

Need Help?
We are online if image is green.
We are online if this image is green. Click here to chat live with

Webmaster Hosting Plans
Are $50/ month, now up to 20 domains with no additional monthly costs!
Find out more!

Flash Hosting with MetaSphere

Today in History:
1941: The United Service Organizations, popularly known as the USO, was chartered.
Asheville, NC
Help/FAQ Index / Search
Previous Page in Help/FAQ Tour Next Page in Help/FAQ Tour
Return to Main Page in Help/FAQ

How to Stream an FLV Movie via RTMP

If you want to stream in Flash, you will have to make an FLV file. FLV is currently proprietary so the only way to render is through Flash MX or Sorenson Spark.

Streaming Macromedia FLV files in flash is pretty easy. After you've got your Flash Communications Server hosting package, you just upload your flv files to your web directory and set up your player movie. Your flash player movie can be hosted anywhere. It calls the movie FLV file onto the stage. Only the FLV file is required on the Windows server. Below is an example of a simple streaming flv file to get your feet wet.

Here's the Flash Action Script you will need to make an FLV file play on the Flash stage. Start by creating a new Flash file and call it myFLV.fla. In the timeline, put the following ActionScript in frame one:

#include ""
nc=new NetConnection();
NewStream=new NetStream(nc);
The above code goes in frame 1 of your movie. Next, you'll want to embed a video stream object into your swf file. This is the box your FLV movie will play inside of.
  1. Open the library and create a 'New Video' object.
  2. drag the new Video Object to the stage.
  3. Name the instance of this video symbol "MyVideo"
  4. Publish your movie.
  5. You should have a swf file now called myFLV.swf

This example requires an flv file to play. In our example the FLV is called timescape. Timescape would rest on the Metasphere server in your user folder at the following location.

  • FTP://UserName/streams/video/timescape.flv

If you do not have a streams folder already, Flash will create one for you when you run this example. But since you need to upload the timescape.flv file for the example to work, you can create the folder yourself. The color coding is an attempt to show how the ActionScript relates to the FTP upload directory. The streams folder is a strict named folder. It must be called "streams".

Refresh / Add Page to favorites/bookmarks.