- Write the Action Script function
- Use ExternalInterface.addCallback to register the function for scripting
- Get a handle on the Flash player
- Call the function
However, this is not the case when using IE. Because of a timing issue, the Action Script function is not being registered within IE; therefore producing a Javascript error. The workaround for this issue is to manually register the ActionScript function by calling __flash__addCallback(<Flash object>, <name of Action Script function>).
No comments:
Post a Comment