用Swflash.ocx。
Flash只有与VB完全融合才好玩,用FSCommand
在Flash的按扭中添加
on (release) {
fscommand ("QuitCommand", "Quit_My_App");
}
参照以下VB代码:
Private Sub MyFlash_FSCommand(ByVal command As String, ByVal args As String)
'其中flash中的“QuitCommand”作为command的参数,“Quit_My_App”作为args 的参数
'点击flash中添加了fscommand的按扭时
If command = "QuitCommand" Then
'判断fscommand的值
if args = "Quit_My_App" then
quit
end if
End if
end sub