FORUMS: list search recent posts

open video in new window as3.0

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Joe Landon
open video in new window as3.0
on Aug 15, 2016 at 4:54:12 pm

Hey ya I created new window using code like this ->
var options:NativeWindowInitOptions = new NativeWindowInitOptions();
options.transparent = false;
options.systemChrome = NativeWindowSystemChrome.STANDARD;
options.type = NativeWindowType.NORMAL;
var win2:NativeWindow = new NativeWindow(options);
win2.title = "Second window";
win2.width = 600;
win2.height = 400;

win2.stage.align = StageAlign.TOP_LEFT;
win2.stage.scaleMode = StageScaleMode.NO_SCALE;
win2.activate();

Its all ok. But now I want use this window for playing some embedded video in new window...
I am doing things like this ->

var video:Video = new Video();
addChild(video);

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
ns.client = {onMetaData:ns_onMetaData, onCuePoint:ns_onCuePoint};

video.attachNetStream(ns);
ns.play("video1.flv");

And video starts playing on Main window...what I should to do?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]