diff --git a/src/TUplayer.mxml b/src/TUplayer.mxml index 6f84a0f..1e84a53 100644 --- a/src/TUplayer.mxml +++ b/src/TUplayer.mxml @@ -41,6 +41,7 @@ private var t:Timer; private var scrubbing:Boolean = false; private var tvOverlay:Image; + private var rPlay:Boolean = false; /* Streams */ public var tvNC:NetConnection; // NetConnection For Sync Video @@ -66,6 +67,9 @@ vidHolder.addChild(tvVid); cVid = Number(Application.application.parameters.vid); + if (Application.application.parameters.random == "true") + rPlay = true; + /* if (Application.application.parameters.aS == "true") aS = true; @@ -134,6 +138,8 @@ case "NetStream.Play.StreamNotFound": case "NetStream.Play.Stop": t.stop(); + if (rPlay == true) + gateway.call("tuve.pVid",new Responder(gotVid,null),0); break; case "NetConnection.Connect.Success": if (tvST != null) @@ -159,6 +165,7 @@ curVid = null; curVid = new ArrayCollection(result); vidContainer.title = curVid[0].artist + " - " + curVid[0].title; + cVid = Number(curVid[0].vid); tvNS.play(curVid[0].file); } }