play video
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: play video

  1. #1
    Senior Member
    Join Date
    Aug 2006
    Posts
    122

    play video

    I want to create a swf file to embed on a webpage. I want the swf to play a video at runtime (passed as a parameter). Can this be done ?


    I tried this without success in a FLV object

    var vid:NetConnection = new NetConnection();
    vid.connect(null);
    var vidstr:NetStream= NetStream(vid);
    vidstr.play("fire.flv");
    vFLV.attachVideo(vidstr);

    var dur:Number =0;

    vidstr.onMetaData = function(oMData:Object ):Void {
    dur=oMData.duration;
    };

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Posts
    122
    I can play a video as I loaded a component instead of new vid from library.

    How do you set controls/size of video/pass the video name as a parameter?
    I am looking but if anyone knows of good tutorial .

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

Poll by Flashkit.com