var meta:Object = {};
//при получении метаданных
meta.onMetaData = onMetaData;
//при получении текстовых данных (например субтитров)
meta.onTextData = onTextData;
ns = new NetStream(nc);
ns.client = meta;
//определение обработчика состояния стрима
ns.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
this.dispatchEvent(new Event(EVENT_CONNECT_SUCCESS));
this.attachNetStream(ns)
<?xml version="1.0"?>
<project name="module" default="jar" basedir=".">
<property name="lib.dir" value="lib"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="target"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="target"/>
<mkdir dir="target/classes"/>
<javac srcdir="src" destdir="target/classes" classpathref="classpath"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="target/jar"/>
<jar destfile="target/jar/module.jar" basedir="target/classes">
</jar>
</target>
</project>