Get the value of a variable from a flash drive

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.

I tried to use GetVariable, but always returns an empty string. How can I get the value of a variable from flash?

+3
source share
2 answers

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.

+1

Yo 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";
}
0

All Articles