开发者

Flex and Javascript security implications

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜