Groups | Blog | Home
all groups > flash actionscript > may 2007 >

flash actionscript : Bug with Video object and attachMovie


Xx)MaveriK[X]
5/28/2007 8:23:14 PM
I created a MC with a video object inside named "video".
This MC is associated with the class "Vid", in its linkage property. The class
Vid is quite simple,
it creates a NetConnection and a NetStream objects to play a FLV file. But, it
doesn't play...

class Vid {
public var video:Video;
public function new() {
var nc = new NetConnection();
nc.connect(null);
var ns = new NetStream(nc);
this.video.attachVideo(ns); // I can even trace the video: trace(this.video);
-> _level0.instance0.video
ns.play("http://www.helpexamples.com/flash/video/water.flv");
}
}
Xx)MaveriK[X]
5/29/2007 7:34:26 PM
Any idea on how to dynamically create a usable video object on stage?

Thanks,
AddThis Social Bookmark Button