[ Team LiB ] |
Recipe 2.8 Prompting the User to Change Player Settings2.8.1 ProblemYou want to open the user's Flash Player Settings dialog box to prompt her to allow greater access to her local system. 2.8.2 SolutionUse the System.showSettings( ) method. 2.8.3 DiscussionThe System.showSettings( ) method opens the Flash Player Settings dialog box, which includes four tabs. The number in parentheses is the value you pass to showSettings( ) to open that particular tab.
If you don't pass any parameters to the showSettings( ) method, it opens the Settings dialog box to the tab that was opened the last time the Settings dialog box was used. 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. System.showSettings(1);
2.8.4 See Also |
[ Team LiB ] |