Flash Player setting offline

來源:互聯網
上載者:User
I've wasted one day time on why we should manage the Flash Player settings online,the fucking advanced seetings on adobe website,and how to set it offline.
For the first question,I don't quite clear,as the security for that way is useless for hackers.But I got two ways to implement the second thought.
Before I put the ways out,you should know where the Flash Player's global settings store.As a result of detecting,I found it placed in
%userprofile%\Application Data\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\settings.sol
now,one solution can be easily got ...

1.Right,directly edit the file settings.sol using a sol editor and there it is
 http://files.cnblogs.com/bluekylin/SolEdit.zip
 (recommended)
the content of seetings.sol:

For example:
I want to use my html-based FLV Player on local and I should add a trusted paths for that guy.Just right click the trustedPaths,add a Boolean item, edit the New Item's Name with path on the right corner,and select  the Value as True(not necessary).Don't forget to save the modified file to take effect.

2.If you're familiar with ActionScript,you can manage the settings in Macromedia Flash 8.(complex,not recommended)
copy the settings.sol referred above to
%userprofile%\Application Data\Macromedia\Flash Player\#SharedObjects\xxxxxxxx\localhost\
(the  xxxxxxxx of mine is 9AXG2K32.it must be different from yours.)
the root of the ShareObject while debugging on local.
Now,create a new Flash document,and open the actions panel(F9).I'll show you the steps to edit the settings.sol file with the follow example:var my_so = SharedObject.getLocal("settings", "/");
//"settings" is the file name
var i = 0;
list_prop(my_so.data);

function list_prop(object:Object) {
    for (var prop in object) {
        if (typeof (object[prop]) == "object") {
            trace(mark_level(i)+prop);
            i = i+1;
            list_prop(object[prop]);
            i = i-1;
        } else {
            trace(mark_level(i)+prop+":"+object[prop]);
        }
    }
    function mark_level(i) {
        for (j="_", k=0; k<i; k++) {
            j = j+j;
        }
        return j;
    }
}
//a function I created to list the properties of an object

/*you will get the follow info at output window after Ctrl+Enter

_domains
_trustedPaths
__F:\ :true
__E:\ :true
_allowThirdPartyLSOAccess :true
_crossdomainAlways :true
_crossdomainAllow :false
_autoUpdateLastCheck :1177681914609
_autoUpdateInterval :30
_autoUpdateDisabled :false
_windowlessDisable :false
_defaultalways :false
_defaultklimit :100
_defaultcamera :3L PC Camera
_defaultmicrophone :
_echosuppression :true
_gain :100

it is similar to the SOL Editor listed above
*/

my_so.data.trustedPaths["D:\\"]=true;
//example to add trustedPath

delete my_so.data.trustedPaths["F:\\"];
//example to delete trustedPath

my_so.flush()
//immediately write my_so to the settings.sol.
//not necessary,the change will be automatically  saved after the debugging session over.

copy the settings.sol in
%userprofile%\Application Data\Macromedia\Flash Player\#SharedObjects\xxxxxxxx\localhost\
back to
%userprofile%\Application Data\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\settings.sol
after all of the jobs Done!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.