Home
Username:
Password:
Macromedia Flash MX Intermediate Developer Tutorials

Flash Media Components / SWF Player and SWF Streamer




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

Another thing that you can do with the media components is to load external SWF files and allow them to be played back using your media controller. One of the first ones we'll look at is the F media simple SWF player. We'll simply drag this onto the stage, put it in position and there is not much more to using this than simply giving the path name or the URL to the file that you want to stream. Let's get that file name by looking at the file we loaded into our project directory and we can see that in addition to the two MP3 files we also have Macromedia classic sample car.swf or car dot swf. That's the file we are going to use in this case. So we'll go back to Flash and pull the F media x, we'll call this my clip for instance name, and for the URL we'll say car.swf. Now we have to update the controller 'coz we've changed from MP3 to my clip. So we'll change this to my clip as a target media component and as simple as that we are ready to test the movie. You can see that with the player it will load and use the internal streaming of the Flash player to be able to properly stream and use the features built into Flash. This works well if you want to load external SWF files and you don't know their frame rating in advance. You can move forward, you can move backwards, you can do everything you could do with the MP3 portion because the controller is the same through out. So obviously this is a nice feature because you give one consistent controller through out all your different types of movies, audio, video etc. We'll return now and look at the streaming version. We simply click on the SWF file player and remove it from the stage. I want an array to bring in the SWF file streamer. To make things a little bit easier on us, we'll name this one my clip as well and we'll simply put the target URL to car.swf. Media frames per second is the frame rate of the SWF file you are importing. This is necessary in order to calculate the correct timing for pre buffering when using the streaming capabilities of this component. If you don't know the frame rate, it's easier just to use the SWF player and let Flash take care of it for you. But in this case we do know that it's going to be 12 frames per second, we check our controller and make sure that it is 2.2 in my clip and that we still have this named my clip, which we do, and we are ready to test. As you can see the streamer does not automatically play once the stage is presented. This is pretty typical for a streaming type environment when you see streamers like real player, windows' media player; they all do the same pre buffering and play back once enough has been loaded. .0] they all do the same pre buffering and play back once enough has been loaded.

Tutorial Information

Course: Macromedia Flash MX Intermediate Developer
Author: Eric Hake
SKU: 33424
ISBN: 1932072292
Release Date: 2003-04-15
Duration: 7 hrs / 93 lessons
Captions: For Online University members only
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available