开发者

How to set Security.sandboxType through programming in Flex

开发者 https://www.devze.com 2023-01-20 17:06 出处:网络
I need to call JavaScript for that I need to set flash.system.Security.sandboxType as LOCAL_TRUSTED. Default value is LOCAL_WITH_NETWORK.

I need to call JavaScript for that I need to set

flash.system.Security.sandboxType as LOCAL_TRUSTED. Default value is LOCAL_WITH_NETWORK.

I can change this setting by 开发者_JAVA百科Global setting of Flash player.

Question is how can I set it throguh coding so that my application work on every local system ?


Hmm,

From what I understand, you want your user to launch a swf from their filesystem and access javascript functions. If it's the case, the answer is simple, you can't. It would be a serious security hole.

0

精彩评论

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