all groups > flash actionscript > june 2005 >
You're in the

flash actionscript

group:

Dynamically create video using CreateClassObject


Dynamically create video using CreateClassObject littlephil
6/18/2005 8:13:14 AM
flash actionscript: I am trying to create embedded video objects using CreateClassObject but they
don't even seem to be created. The code I am using is:

testVideo = createClassObject(Video, "testVideo", 5, {x:10, y:10});
// Create a NetConnection object
var my_nc:NetConnection=new NetConnection();
my_nc.connect(null);
var my_ns:NetStream=new NetStream(my_nc);
my_ns.setBufferTime(5);
testVideo.attachVideo(my_ns);
my_ns.play("test.flv");

If I comment out the createClassObject call and create a Video on the stage
and call it testVideo it all works fine.

Any ideas?
Re: Dynamically create video using CreateClassObject littlephil
6/30/2005 12:00:00 AM
AddThis Social Bookmark Button