Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / June 2005



Tip: Looking for answers? Try searching our database.

Dynamically create video using CreateClassObject

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
littlephil - 18 Jun 2005 09:13 GMT
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?
littlephil - 30 Jun 2005 19:36 GMT
Anyone got any ideas, really stuck with this one.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.