Re: [FlashCoders] Local storage warning
Ok, I found a solution for my problem and I thought I should share it with you, in case someone runs into something similar in the future. These are my findings: 1. Zinc seems to need a few Kbs in the local storage by default. Even if you create the simplest app with 1 line of code, e.g. mdm.Dialogs.prompt(test); or even only mdminit(), Zinc will have to access local storage. Fortunately, it needs less than 10K of local storage, which seems to be the size the flash player allows by default. So, if you have a Zinc application that doesn't save files on the local drive, the 10K limit is enough for you and the Local Storage Dialogs does not popup. 2. The problem comes when the application needs to save more than 10K per session. This means that if you need to save a file larger than 10K the dialog will come up. Of course, there is no way to by-pass this thing if you really need to save more than 10K, since it's a native flash player thing. The only solution would actually be a workaround. 3. Zinc does not only save stuff to the hard drive when saving a file or a folder, e.g. with mdm.FileSystem.saveFile() but also when DECRYPTING a file or a string. In my case, that's what was happening. My application didn't save files larger than 10K, and those that it did save (3K, 2K, 8K etc) didn't cause any issue. But, the application descrypted several files, one of which was larger than 10K (it was 50K). All others didn't cause any issues, but this one was big and Zinc apparently needed disk space to decrypt it, so it actually tried to save data on the hard drive, which was more than 10Kb and this caused the Local Storage dialog to come up, asking for permission to save up to 100K to the local storage. 4. The solution that applied in my case was to divide that file into smaller ones, each one less being than 10K. Kind regards, Dimitrios - Original Message - From: Dimitrios Bendilas [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 1:00 AM Subject: Re: [FlashCoders] Local storage warning Thanks eric, Yes, they only see it for the first time. As this is a downloadable app, it's not about a specific domain but rather Local. The thing is in my case I don't deal with SharedObject at all. I don't use SharedObjects in the whole project. The issue arises because the app is trying to write to the hard drive, using Zinc's mdm.FileSystem.saveFile() method. The result is the same of course - the Settings window appears. Nevertheless I've read again about SharedObject. I don't think there is a way to stop this window from popping up, flash player is too strict about security to allow me do this. Right? If anyone has a solution or workaround it'll be great! Dimitrios - Original Message - From: eric dolecki [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:43 AM Subject: Re: [FlashCoders] Local storage warning You should read the documentation for localSharedObject - you'll find many interesting things. You'll be able to see what the viewer's setting currently is, etc. A user may get that dialog the 1st time data is saved for the domain - and then won't be seen again. I think that is the point of your initial post, right? I can't remember if comes up as a default the 1st time or not, but I think it does just for security reasons. -e.d. On 8/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote: Hi Mike, What do you mean I can query their setting? Thanks, Dimitrios - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:12 AM Subject: Re: [FlashCoders] Local storage warning you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] Local storage warning
- I had a similar problem with the camera security dialog box and Zinc. My app was actually a kiosk, and my workaround was quite long winded - but it might give you some ideas. First I should mention that checking the 'remember my settings' box in the security dialog never worked for me (apparently it's a bug in Zinc), so this is what I had to do: On starting my Zinc application, I launched a macro program (Macro Express - http://www.macros.com/) to move the cursor and 'click' the Allow button. This worked great for a kiosk with an automated startup procedure. I don't know if this will be of any help, but I thought I'd post it anyway. Mike Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor House, Belgrave Lane, Plymouth, PL4 7DA, UK. - I've got a new e-mail address: [EMAIL PROTECTED] Please update your address book. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] Local storage warning
Hello Mike, Thanks for the info. It's not very likely that I'll be able to use this workaround, but it's goot to know anyway. :) Thanks again, Dimitrios - Original Message - From: Mike Cobb [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 11:44 AM Subject: Re: [FlashCoders] Local storage warning - I had a similar problem with the camera security dialog box and Zinc. My app was actually a kiosk, and my workaround was quite long winded - but it might give you some ideas. First I should mention that checking the 'remember my settings' box in the security dialog never worked for me (apparently it's a bug in Zinc), so this is what I had to do: On starting my Zinc application, I launched a macro program (Macro Express - http://www.macros.com/) to move the cursor and 'click' the Allow button. This worked great for a kiosk with an automated startup procedure. I don't know if this will be of any help, but I thought I'd post it anyway. Mike Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor House, Belgrave Lane, Plymouth, PL4 7DA, UK. - I've got a new e-mail address: [EMAIL PROTECTED] Please update your address book. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] Local storage warning
Hi Mike, What do you mean I can query their setting? Thanks, Dimitrios - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:12 AM Subject: Re: [FlashCoders] Local storage warning you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] Local storage warning
You should read the documentation for localSharedObject - you'll find many interesting things. You'll be able to see what the viewer's setting currently is, etc. A user may get that dialog the 1st time data is saved for the domain - and then won't be seen again. I think that is the point of your initial post, right? I can't remember if comes up as a default the 1st time or not, but I think it does just for security reasons. -e.d. On 8/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote: Hi Mike, What do you mean I can query their setting? Thanks, Dimitrios - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:12 AM Subject: Re: [FlashCoders] Local storage warning you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[FlashCoders] Local storage warning
Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] Local storage warning
you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] Local storage warning
Thanks eric, Yes, they only see it for the first time. As this is a downloadable app, it's not about a specific domain but rather Local. The thing is in my case I don't deal with SharedObject at all. I don't use SharedObjects in the whole project. The issue arises because the app is trying to write to the hard drive, using Zinc's mdm.FileSystem.saveFile() method. The result is the same of course - the Settings window appears. Nevertheless I've read again about SharedObject. I don't think there is a way to stop this window from popping up, flash player is too strict about security to allow me do this. Right? If anyone has a solution or workaround it'll be great! Dimitrios - Original Message - From: eric dolecki [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:43 AM Subject: Re: [FlashCoders] Local storage warning You should read the documentation for localSharedObject - you'll find many interesting things. You'll be able to see what the viewer's setting currently is, etc. A user may get that dialog the 1st time data is saved for the domain - and then won't be seen again. I think that is the point of your initial post, right? I can't remember if comes up as a default the 1st time or not, but I think it does just for security reasons. -e.d. On 8/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote: Hi Mike, What do you mean I can query their setting? Thanks, Dimitrios - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:12 AM Subject: Re: [FlashCoders] Local storage warning you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com