开发者

Flex and Javascript security implications

开发者 https://www.devze.com 2023-01-11 21:26 出处:网络
I\'ve been research开发者_运维百科ing about Flex and it seems that it\'s possible to use JavaScript to interact with the Flash component. What I would like to know is if there are any security issues

I've been research开发者_运维百科ing about Flex and it seems that it's possible to use JavaScript to interact with the Flash component. What I would like to know is if there are any security issues when doing this versus just building everything within the SWF?

Thanks


You have to explicitly define in your Flex code which Javascript functions to respond to.

Look at ExternalInterface.addCallback()

As for Security: there are mechanisms in place to keep things 'secure'.

For local content running in a browser, calls to the ExternalInterface.addCallback() method work only if the SWF file and the containing web page are in the local-trusted security sandbox.

For more info, read through the API

0

精彩评论

暂无评论...
验证码 换一张
取 消