package { import com.ndsas.NdsConnection; import com.ndsas.NdsEvent; import flash.display.Sprite; import flash.events.IOErrorEvent; public class NdsasDemo extends Sprite { public function NdsasDemo() { var nds:NdsConnection = new NdsConnection(); nds.addEventListener(IOErrorEvent.IO_ERROR, trace); nds.addEventListener(NdsEvent.CONNECT, trace); nds.addEventListener(NdsEvent.KEY_A_PRESS, trace); nds.connect(); } } }