Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve variable value from flash

I have an AxShockwaveFlash object in a Windows Forms application, and load a (AS3) movie into it with LoadMovie. The movie plays correctly, but I am having a problem getting a variable from flash.

I have tried using GetVariable but it always returns an empty string. How can I get the value of a variable from flash?

like image 740
Seth Carnegie Avatar asked Jan 25 '26 18:01

Seth Carnegie


1 Answers

I think the new security policy for AVM2 requires you to explicitly expose the variables/functions to the container application using ExternalInterface.

If you can't edit the swf, I can't think of a way to get access to them. It was really easy with AS2 though, if you defined it, you could get and set it via javascript/C#/whatever without any extra code in the swf.

like image 196
Flassari Avatar answered Jan 27 '26 07:01

Flassari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!