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
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
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