Local Storage popup doesn't popup
Posted on 2010-08-19
I'm coding in AS3, compiling using Flash CS4. I'm testing using IE8.
My code needs to store very large files using sharedObject, and I had it set up and working so that on startup, the program would call sharedObject.flush with a number larger than 10M to get the user's approval. It worked a month ago, but no longer does. Here's the data I've observed so far:
If I use the latest version of Flash player for IE, the local storage pop up never appears. My call to flush returns "pending", and the SharedObjectFlushEvent is instantly dispatched with a level of "error" and a code of "SharedObject.Flush.Failed". If this is the first time I run, my limit is automatically set to the user's global storage setting of default size.
If I uninstall that version, and install the debug player from c:\Program Files\Adobe\Adobe Flash CS4\Players\Debug\Install Flash Player 10 ActiveX.exe, I get different results. The local storage setting pop up does pop up, but the accept/deny buttons don't work. It feels like I can click on them - the skin changes when I push the mouse button, but the pop up never disappears. The help icon works, but the other buttons don't.
I've looked at adobe's page on System.Security, and seeing it, I hooked up showSettings to a button. When I click the button, I get similar results. Using the newest Flash player, the pop up never appears, though trace statements show that I call showSettings. Using the debug Flash player, the pop up appears, but I can't drag the bar to change the size, and I can't click on "never ask again." The close button, however, works.
When I run the sample code from adobe for using showSettings, everything works fine, whether I run standalone or in IE.
I'm sure I'm missing something simple, but what? Is there some setting in the html file that prevents me from using either setting dialog?
Any help would be great!