# NetStream.onMeta data please help

**URL:** <https://forum.kirupa.com/t/netstream-onmeta-data-please-help/277196>\
**Category:** flash\
**Created:** [December 9, 2008, 10:35am UTC](https://forum.kirupa.com/t/netstream-onmeta-data-please-help/277196 "2008-12-09T10:35:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [December 9, 2008, 10:35am UTC](https://forum.kirupa.com/t/netstream-onmeta-data-please-help/277196/1 "2008-12-09T10:35:52Z")

</div>

Hello

I want to use NetStream.onMetaData inside a class. can anyone please tell me where I sould do this because on the main timeline I can just define

```auto

ns.onMetaData = function(info:Object){trace(info["duration"]);}

```

But how or where can I put this function and how it will fire like if I have a function in my class

```auto

public function onData(info:Object){trace(info["duration"]);}

```

Where can or how this function will be called

I am sorry if not making any sense

Thanks in advance
