Flash Player Error 2176
working with claimed his new image save feature worked.  I tried it, and it didn't.  This morning, another developer sings praise in an email chain, and I'm like huh?  I try again, and get the: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. Doh! The converted image received from the server would trigger a FileReference.download.  Adobe did make announcements with commentary, but the unique nature of the change, and the fact that Flash Player 10 didn't have wide adoption when these announcements came out (still doesn't) made them pass through one ear and out the other.  They weren't relevant at the time because Flash Player 9 works, and you move on with life.  Not to mention the fact this is an event driven security change, which makes it not so black and white. Fixing this in our Flex app isn't a big deal, it's just that some of our team is on FP9, including their development boxes.  The con is, we weren't planning on developing for Flash Player 10, but now we have to.  The pro is, we can now leverage FP10 features such as saving images locally vs. using a server to do it. Naturally I'm wracking my brain this morning trying to remember all the applications I've written that utilized FileReference.upload and download.  I'm pretty sure all were initiated by a mouse click.  I just feel bad for all the poor bastards who utilized ExternalInterface to do it on past client websites and are now screwed. Author JesterXLPosted on October 23, 2008October 23, 2008Categories Flex 17 thoughts on “Flash Player 10 Surprise: Error #2176” Mario says: October 23, 2008 at 11:41 am Ha! I feel sorry too for those poor boys complaining at the forums. Fortunately, being the smart ass I am, I've always used a mouse click to initiate FileReference. Jamie Scanlon says: October 23, 2008 at 11:50 am I was bit by 10 as well. Only in my case I was bit by a new security ‘feature' that I don't recall being mentioned anywhere before the release of 10. Apparently, even sending a file in the POST data of a regular URLRequest triggers a security exception if it is not a direct result of a button click. Flash 10 applies these new security restrictions on anything that looks vaguely like an upload, even if it's not through FileReference. What I found even more perplexing is that in the same Tech Note that described the new security restriction, they described how to get around it. Just rename the ‘filename
Note: Visit the Adobe Flash Player Help and Support page for help with top issues. Issue Note: This TechNote is intended for Adobe Flash and Adobe Flex developers who need to respond to changes in Adobe Flash Player 10's user interaction rules. End users with Flash Player install issues should begin troubleshooting at the Flash Player Support Center. With Adobe Flash Player 10, the FileReference.browse and FileReference.download operations may be initiated only through ActionScript that originates from http://jessewarden.com/2008/10/flash-player-10-surprise-error-2176.html user interaction. This includes actions such as clicking the mouse or pressing the keyboard. Reason In Flash Player 9, ActionScript could perform uploads and downloads at any time. Flash Player 10 requires existing content to be updated to comply with stricter security rules.This change can potentially affect any SWF file that makes use of Filereference.browse or FileReference.download. https://helpx.adobe.com/flash-player/kb/user-interaction-required-upload-download.html This change affects SWF files of all versions played in Flash Player 10 and later. This change affects all non-app content in Adobe AIR (however, AIR app content itself is unaffected). Solution Any existing content that invokes a browse dialog box using Filereference.browse, FileReference.download, or FileReference.save outside of an event triggered by user interaction will need to be updated. The dialog box will now have to be invoked through a button, keyboard shortcut, or some other event initiated by the user. For further information see User-initiated action requirements in Flash Player 10. Additional Information One practical consideration that end users may have to make it the way they 'chain' events together.For example, prior to Flash Player 10 you could use URLLoader to upload multiple files by having the onComplete() event of the first URLLoader create a new, 2nd URLLoader instance.In Flash Player 10 this usage will violate the user interaction rules and throw a Security Sandbox Violation which will usually look like this: *** Security Sandbox Violation *** Conne
12, 2010 by Bogdan Manate The flash player 10 has new rules for UIA ( user initiated action ) so when http://www.bogdanmanate.com/2010/05/12/flex-error-2176-when-using-filereference/ I tried to use the FileReference save method I got the following error: Error: Error #2176: Certain actions, such as those that display a pop-up window, may only http://www.adylevy.com/index.php/2009/10/11/bytearray-upload-error-2176-solved/ be invoked upon user interaction, for example by a mouse click or button press. After I made some research I found a very cool article here, but I flash player didn't found any workaround. Dispatching a MouseEvent won't work, because the user must interact with the application by clicking a mouse button or by pressing a keyboard key. I found a way to get rid of this error by displaying a popup and let the user to click a button in order to force the user flash player error to interact with the application.
the last request. now every URLLoader load function must be triggered with a mouse click - initiated by the user.. that fix broke some file uploaders (like Jonathan Marston nirvanix bytearray uploader) (and some other pieces of code) creating an exception on the second request. now - i was looking for a solution that will allow me sending multiple - client side - reencoded images to the server, still showing some progress bar (as i can't use the filereference.upload method). after hours of playing with the 2176 Error, i decided to take another approch, and welp - what do you know - it's possible doing it with the Zend Amf framework for php, using flash's Netconnection Object to send byteArray (‘s) to the server ! I'll upload an example soon - and i'll connect it to the multiple file upload component i have here on the site , so it will show upload progress for each file ! (plus might add mp3 uploading as well) Anyway - solution coming soon ! Tweet Posted in General, as3 urlloader error 2176, Error #2176 5 comments » Vadim said, October 13, 2009 @ 10:44 pm Hi Ady, Great news, I will be happy to test a new version. And as in my previous comment - some feature requests from me. 1. Resized dimensions specified in JavaScript (I've already mentioned it). 2. Possibility to hide uploaded files listing. Just a flag in JavaScript configuration to hide an uploaded files panel. I think that some will want to implement picture browsing by themselves. 3. You wrote about mp3 upload - you can just allow to upload all the files, but if it is an image then resize it. I hope that you will find my proposals useful and implement them sometime. All the best and waiting for the new release, Vadim Albert said, October 17, 2009 @ 3:05 pm Hello Ady! Thank's for your great jobs, I'd like it very much but I'd like some options more if it is posible, I can pay for this if the price is reasonable. I don't have knowlage with flash, and I don't know how to do it: 1. Show more than 3 "stripSelected" to screen. I don't know how to do more big, show for example 7 "stripSelected". It shows 3, and then to appear the scrollbar. 2. Is posible to show te browser with the opcion "miniature view" (I don't know how say in english I have spanish windows) enable for default. I think for the user is more easy to select the image if he can see it before. I know than user can select manual this opcion but there are user I don't know this opcion. 3. I'd like to can limit the picture numbers to upload. For example I can send by php the number picture than It can upload. For example if I send number 6, when the user select 6 picture the