Can attachedVideo be controlled by a class? I have scrubbed that archives and
Googled... 

Is it possible to do something like this? (This Dosen't work). I don't want to
use a media component because this will be controlled by a keyListener (no on
screen video controls). 

class Foo {
  var video_container:MovieClip;
  var my_video:Video; 
  var my_nc:NetConnection;
  var my_ns:NetStream;
        
  function Foo(target:MovieClip, x:Number, y:Number, depth:Number) {
    var my_nc = new NetConnection();
    var my_ns = new NetStream(my_nc);
                
    video_container = target.createEmptyMovieClip("video_container", depth);
    video_container.attachMovie("video_mc", "video_mc", 1);
    my_video = video_container.video_mc.theVideo ;
    trace("my_video:  " + my_video); 
    //_level0.video_container.video_mc.theVideo

    my_nc.connect(null);
    my_video.attachVideo(my_ns);
    my_ns.play("flvs/preview.flv");
  }
}

On the timeline: var myFoo:Foo = new Foo(this, 4);

Any Thoughts/Ideas Greatly appreciated! 
Thanks! -Steven


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to