Run SWF from file: /// without changing the Flash Player security settings by the user

I have a Flex application that has enough network traffic, it uses ExternalInterface to create some javascript calls (for SCORM), it loads XML files, images, video, audio and has a number of modules that could load into some kind of moment...

So, the problem is that now we have a requirement when the user needs to run this content locally on a machine that is not connected to the Internet (which means that they cannot connect to the Adobe site to change their security settings). As you can imagine, when a user double-clicks on an html page to run this thing, they are greeted by a security warning that swf is trying to associate with a different domain than the one it is in. We cannot wrap it with an exe or an AIR application, so if there is some way to configure some obscure security settings, we may be blocked. Any idea?

+3
source share
6 answers

, , - , AIR. , . AIR ( , , , ), .

"Global FlashPlayerTrust". ( javascript, SWF, html .. ). , . :

  • Windows -% WINDIR%\System32\Macromed\Flash\FlashPlayerTrust
  • Mac -/Library/ /Macromedia/FlashPlayerTrust
  • Linux -/etc/adobe/FlashPlayerTrust

. , , . - CompanyName.cfg. , . SWF , . :

C:\Program Files\MyCompany\CoolApp
C:\Program Files\MyCompany\OtherApp\Main.swf

, , - System.security.sandboxType (ActionScript 1 2) Security.sandboxType (ActionScript 3). "localTrusted"

+6

, " ", , , , . , , .

0

, , , ... ...

Page 20 (/ 26) . . , cfg , , , , . .cfg ( ).

0

, swf -network true, .

-network false? Intranet, LMS?

0

It is possible. Please note that the swfs that you invoke from the main swf have the property "Access to local files" or not.

0
source

You tried to specify the allowed domain with:

System.security.allowDomain("www.yourdomain.com");
-1
source

Source: https://habr.com/ru/post/1697847/


All Articles