diff --git a/src/TUplayer.mxml b/src/TUplayer.mxml index ac86779..2d9d11b 100644 --- a/src/TUplayer.mxml +++ b/src/TUplayer.mxml @@ -47,8 +47,6 @@ public var tvNS:NetStream; // NetStream For Sync Video public var tvST:SoundTransform; // SoundTransform For Sync Video - private var gE:Boolean = false; - private function initApp():void { /* Initialize the AMF gateway */ gateway = new NetConnection(); @@ -68,6 +66,11 @@ vidHolder.addChild(tvVid); cVid = Number(Application.application.parameters.vid); + /* + if (Application.application.parameters.aS == "true") + aS = true; + */ + tvOverlay = new Image(); tvOverlay.width = 27; tvOverlay.height = 25; @@ -79,10 +82,6 @@ t = new Timer(500,0); t.addEventListener(TimerEvent.TIMER,timerHander); - //Alert.show(Application.application.url); - - if (Application.application.url.indexOf("tuve.tv") == -1) - gE = true; } /* AMF Fault Handlers */ @@ -130,7 +129,7 @@ public function tvNetStatus(e:NetStatusEvent):void { switch (e.info.code) { case "NetStream.Play.Start": - t.start(); + t.start(); break; case "NetStream.Play.StreamNotFound": case "NetStream.Play.Stop": @@ -215,10 +214,10 @@ private function gotoUrl():void { var webPageURL:URLRequest; - if (gE == true) { + //if (aS == false) { webPageURL = new URLRequest("http://www.tuve.tv/watch/" + cVid.toString()); navigateToURL(webPageURL, '_new'); - } + //} } ]]>