import win.ui;
/*DSG{{*/
var winform = win.form(parent=...; bottom=227;right=337;border="resizable";text="AAuto Form" )
winform.add( 
btnDump={ dr=1;bottom=205;right=318;left=230;top=178;z=4;db=1;text="显示成员";cls="button" };
btnPlay={ dr=1;bottom=205;right=115;left=27;top=178;z=2;db=1;text="播放";cls="button" };
btnStop={ dr=1;bottom=205;right=219;left=131;top=178;z=3;db=1;text="停止";cls="button" };
static={ dr=1;dl=1;bottom=165;text="static";left=32;dt=1;top=16;right=308;z=1;db=1;transparent=1;edge=1;cls="static" }
)
/*}}*/

//创建控件
flash = com.CreateEmbed( {} ,winform.static,"ShockwaveFlash.ShockwaveFlash") 
var shockwave = flash._object;

callEvent ={
	OnReadyStateChange=function( newState ){
		io.print("OnReadyStateChange")
	}
	OnProgress=function( percentDone ){
		io.print(percentDone)
	}
	FSCommand=function( command ,args ){
		io.print( command , args );
	} 
}
com.Connect(shockwave, callEvent )

shockwave.Movie = "http://www.ecranesoft.com/ape/fap2008.swf"

winform.btnStop.oncommand = function(id,event){ 
	shockwave.stop() 
}
winform.btnPlay.oncommand = function(id,event){ 
	shockwave.play()
}
winform.btnDump.oncommand = function(id,event){
	io.open()
	com.DumpTypeInfo(shockwave) 
	execute("pause") //按任意键继续
	io.close();//关闭控制台
} 

winform.show(true) 
win.loopMessage();
return winform;
