# Dynamic text box for streaming flv question

**URL:** https://forum.kirupa.com/t/dynamic-text-box-for-streaming-flv-question/137026
**Category:** Uncategorized
**Created:** [February 10, 2005, 5:45pm UTC](https://forum.kirupa.com/t/dynamic-text-box-for-streaming-flv-question/137026 "2005-02-10T17:45:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BuddyD](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@BuddyD](https://forum.kirupa.com/u/BuddyD)
#### Post date: [February 10, 2005, 5:45pm UTC](https://forum.kirupa.com/t/dynamic-text-box-for-streaming-flv-question/137026/1 "2005-02-10T17:45:42Z")

</div>

I have made my own streaming flv player (real streaming not progressive) which has a dynamic text box that shows when the flv is loading and then when it is playing, it counts the seconds playing.

I am looking to know what code I need to make it say when the flv is paused, and also if I can make it say when it is buffering?

here is the script I am using for it.

this.createTextField(“time\_txt”, this.getNextHighestDepth(), 10, 10, 100, 22);  
time\_txt.text = “LOADING”;

var time\_interval:Number = setInterval(checkTime, 500, MyStream);  
function checkTime(MyStream:NetStream) {  
var ns\_seconds:Number = MyStream.time;  
var minutes:Number = Math.floor(ns\_seconds/60);  
var seconds = Math.floor(ns\_seconds%60);  
if (seconds\<10) {  
seconds = “0”+seconds;  
}  
time\_txt.text = “STREAMING “+minutes+”:”+seconds;  
}  
stop();

Any help would be greatly appreciated.
