ProblemYou want to open the user's Flash Player Settings dialog box to prompt her to allow greater access to her local system. SolutionUse the flash.system.Security.showSettings( ) method. DiscussionThe flash.system.Security.showSettings( ) method opens the Flash Player Settings dialog box, which includes several tabs. You'll pass a string as a parameter to indicate which tab you want it to open. These strings have been made static properties of the flash.system.SecurityPanel class, to avoid typographical errors. The possible values are:
If you don't pass any parameters to the showSettings( ) method, it uses SecurityPanel.DEFAULT. Here, we open the Settings dialog box to the Local Storage tab by explicitly specifying a value of 1. // Open the Settings dialog box to the Local Storage tab. flash.system.Security.showSettings(SecurityPanel.LOCAL_STORAGE);
|