[Flashcoders] Not seeing video on stage
Hi list... I'm not sure why I can't see my loaded flv on the stage. I can hear them, I just can't see them. I have a class that runs the show as follows. Thanks, - Michael M. import flash.external.*; class welcomeWebpage { public var nc:NetConnection; public var ns:NetStream; public var vid:Video; public var ui:MovieClip; public static var currentCategory:String; public static var inst:welcomeWebpage = undefined; private function welcomeWebpage() { // singleton } public static function getInstance():welcomeWebpage { if (inst == undefined) { inst = new welcomeWebpage(); } return inst; } public function init():Void { // create netConnection to import external flv files (sitting next to swf) nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); vid = new Video(); } public function playVid(theVid) { //start to load, then play, the appropriate video.. vid.attachVideo(ns); ns.play(theVid); // tried to set _x, etc. here but nothing works } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Not seeing video on stage
Does it work if you put an Embedded Video instance called vid on stage instead? I don't think you can instantiate one like you're doing (but I could be wrong). Helen -- http://flash-creations.com http://i-technica.com Mendelsohn, Michael wrote: Hi list... I'm not sure why I can't see my loaded flv on the stage. I can hear them, I just can't see them. I have a class that runs the show as follows. Thanks, - Michael M. import flash.external.*; class welcomeWebpage { public var nc:NetConnection; public var ns:NetStream; public var vid:Video; public var ui:MovieClip; public static var currentCategory:String; public static var inst:welcomeWebpage = undefined; private function welcomeWebpage() { // singleton } public static function getInstance():welcomeWebpage { if (inst == undefined) { inst = new welcomeWebpage(); } return inst; } public function init():Void { // create netConnection to import external flv files (sitting next to swf) nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); vid = new Video(); } public function playVid(theVid) { //start to load, then play, the appropriate video.. vid.attachVideo(ns); ns.play(theVid); // tried to set _x, etc. here but nothing works } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Not seeing video on stage
Make sure your Video Player Component has an instance name and is referenced properly. - James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helen Triolo Sent: Tuesday, August 22, 2006 11:59 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Not seeing video on stage Does it work if you put an Embedded Video instance called vid on stage instead? I don't think you can instantiate one like you're doing (but I could be wrong). Helen -- http://flash-creations.com http://i-technica.com Mendelsohn, Michael wrote: Hi list... I'm not sure why I can't see my loaded flv on the stage. I can hear them, I just can't see them. I have a class that runs the show as follows. Thanks, - Michael M. import flash.external.*; class welcomeWebpage { public var nc:NetConnection; public var ns:NetStream; public var vid:Video; public var ui:MovieClip; public static var currentCategory:String; public static var inst:welcomeWebpage = undefined; private function welcomeWebpage() { // singleton } public static function getInstance():welcomeWebpage { if (inst == undefined) { inst = new welcomeWebpage(); } return inst; } public function init():Void { // create netConnection to import external flv files (sitting next to swf) nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); vid = new Video(); } public function playVid(theVid) { //start to load, then play, the appropriate video.. vid.attachVideo(ns); ns.play(theVid); // tried to set _x, etc. here but nothing works } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com