A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loading a video file in flashplayer

  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    24

    loading a video file in flashplayer

    How can I have a swf file load a video file inside the flash player and play it? The video file right now is wmv, but it could be quicktime or anything. Also, what is a flv file? Would that help me some how? I do have a server that the video could be streamed from.

    Please help, thank you.

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    If your using Flash 8 this should help:

    http://www.macromedia.com/devnet/fla...deo_guide.html

  3. #3
    Junior Member
    Join Date
    Feb 2005
    Posts
    24
    thanks. It looks like what I want is an external progressive download of a flv... But what would be the actionscript for that?

  4. #4
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Code:
    vid_btn.onRelease = function() {
    	var myVideo_nc:NetConnection = new NetConnection();
    	myVideo_nc.connect(null);
    	var newStream_ns:NetStream = new NetStream(myVideo_nc);
    	videoHolder_video.attachVideo(newStream_ns);
    	newStream_ns.play("your.flv");
    };
    I also attached a Flash 8 .fla:
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center