Navarone
06-11-2004, 11:25 AM
I am trying to get my flv to play in my video object. So I have been following the Help files and I must not be doing something correct cause nothing is playing.
I added a new video object to my Library and renamed it "my_video" . I then draged it to the stage, set the size properties I needed 320x240 and gave it an instance name of "my_video". Then I attached this code straight from the Help file and changed the file name to play my flv.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(ns); // my_video is a Video object on the Stage
ns.play("Videos\Intro.flv");
When I test the movie in flash I don't see my video. I also published my flash project and tried playing the swf file but it still doesn't work.
What am I doing wrong? :)
I added a new video object to my Library and renamed it "my_video" . I then draged it to the stage, set the size properties I needed 320x240 and gave it an instance name of "my_video". Then I attached this code straight from the Help file and changed the file name to play my flv.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(ns); // my_video is a Video object on the Stage
ns.play("Videos\Intro.flv");
When I test the movie in flash I don't see my video. I also published my flash project and tried playing the swf file but it still doesn't work.
What am I doing wrong? :)