# NetStream .onStatus

**URL:** <https://forum.kirupa.com/t/netstream-onstatus/275588>\
**Category:** flash\
**Created:** [November 16, 2008, 11:35am UTC](https://forum.kirupa.com/t/netstream-onstatus/275588 "2008-11-16T11:35:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![energy](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@energy](https://forum.kirupa.com/u/energy)\
**Post date:** [November 16, 2008, 11:35am UTC](https://forum.kirupa.com/t/netstream-onstatus/275588/1 "2008-11-16T11:35:49Z")

</div>

I am just getting mad to figure out this:

I just want to trace “which NetStream Object” has called the .onStatus function:  
To put it in a simple way:  
[AS]s\_ns.play(“[http://someURL/game.mp3](http://someURL/game.mp3)”);  
s\_ns.onStatus(infoObj:Object)  
{  
trace(“URL or s\_ns”);

}[/AS]  
Suppose if it found “[http://someURL/game.mp3](http://someURL/game.mp3)” then i want to display “This function is called for [http://someURL/game.mp3](http://someURL/game.mp3)"” or display “s\_ns has called this function”.

Like “infoObj.level” just gives “Success” or “Error” .  
So is there any other infoObj.(something) also which might give me this information?

Thanks very much in advance. I will appreaciate any help.
