Is there any way to call MouseEvent function in as3 from JavaScript?
I have HTML button and swf object, I need to sent a POST request from swf by clicking on HTML button.
Is there any way to call MouseEvent function in as3 from JavaScript? I have
Share
You can do this with the ExternalInterface api.
In your flash object, make a call like the following.
Then in your JavaScript, You’ll need to get the object of your embedded flash and call the “someAPIMethod” call back you have defined in your flash.
your markup may look something like…
Your JS may then look like…
there will probably be tweaks that you need to make to this code but it should give you some direction to get started.