I have an object AxShockwaveFlashin a Windows Forms application and load a movie into it (AS3) using LoadMovie. The movie plays correctly, but I had a problem getting the variable from the flash.
AxShockwaveFlash
LoadMovie
I tried to use GetVariable, but always returns an empty string. How can I get the value of a variable from flash?
GetVariable
I think the new security policy for AVM2 requires that you explicitly display variables / functions in the container application using ExternalInterface.
swf, , . AS2, , , javascript/#/ - swf.
Yo fscommand # :
fscommand
fscommand("sendCmd", arg);
#
flashPlayer.FSCommand += new AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEventHandler(flashPlayer_FSCommand); .... void flashPlayer_FSCommand(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent e) { tbOut.Text += e.command + " (" + e.args + ")" + "\r\n"; }