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