Home > error 2176 > error #2176 filereference

Error #2176 Filereference

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to get around Flash error 2176 up vote 2 down vote favorite 1 In my Flex application, users need to be able to upload and download content. However, this content is access restricted, and I need to do a permissions check before allowing the upload/download. The user clicks a link, and then selects a file using the FileReference class. The FileReference class doesn't attach cookie information, so I can't use a session. I want to implement a 2 step process where the client first pings the server to get a one-time-use token, and then does the upload or download with the one-time-use token as a parameter. However, this plan is being foiled by error #2176, which is apparently a security fix to FP10, that only allows uploads/download to be triggered during a MouseEvent propogation. Anyways around this? flex flash share|improve this question asked May 18 '10 at 16:52 limscoder 1,8821223 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted I got workarround for this here.

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Flex's FileReference.save() can only http://stackoverflow.com/questions/2859336/how-to-get-around-flash-error-2176 be called in a user event handler — how can I get around this? up vote 12 down vote favorite 5 I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or http://stackoverflow.com/questions/3301839/flexs-filereference-save-can-only-be-called-in-a-user-event-handler-how-ca keypress event). Otherwise, calling this method results in Flash Player throwing an Error exception." (from the documentation here) This restriction is a bit vague. Does it mean that I can only call the FileReference.save() method from within an event handler function that is registered as a listener for certain types of user events? If so then exactly which user events are valid? (Perhaps there's an event that will never be dispatched by user interaction with my application and I could register an event handler function for that event type and make the save() call from within that function?) My difficulty is that I can't safely call the FileReference.save() method until my web service returns with the data that will be used as the argument of the FileReference.save() method call, so the event that triggers the FileReference.save() call is actually a ResultEvent rather than a user event, and I'm leery of dispatching a new (faux) user event type in order to be able to trigger the FileReference.save() call unless it's definitely a user event that would never be dispatched as a result of actual user interaction with my application. In a nutshell what I'm do

12, 2010 by Bogdan Manate The flash player 10 has new rules for UIA ( user initiated action ) so when I tried to use the FileReference save method I http://www.bogdanmanate.com/2010/05/12/flex-error-2176-when-using-filereference/ got the following error: Error: 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. After I made some research I found a very cool article here, but I didn't found any workaround. Dispatching a MouseEvent won't work, because the user must interact with the application error #2176 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 to  interact with the application. This entry was posted in Flex and tagged error #2176, FileReference.save. Bookmark the permalink. ← Adobe developer day 10-14 May Create OS native installer with ADT for AIR applications → 4 Responses to Flex error #2176 when using FileReference Anonomyous says: March 22, 2011 at 10:04 pm Great info. This was exactly what I was looking for. Irek says: August 31, 2012 at 11:34 am Thx man! works perfect! Voctrals says: March 30, 2015 at 6:14 am Thanks a lot. Fix my problem. KallidaiRavi says: January 25, 2016 at 10:28 pm Thanks a lot. Was looking something like this for a while. Appreciate your support. Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Website Search for: Archives March 2011 November 2010 July 2010 May 2010 March 2010 February 2010 Meta Log in Bogdan Manate Proudly powered

 

Related content

error #2176 actionscript

Error Actionscript p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about relatedl Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up Should I workaround Flex security error up vote -

error #2176 swfupload

Error Swfupload p it to users using Flash Flash changes relatedl how javascript and flash are allowed to interact thus breaking the html upload button that calls javascript to present the file choosing dialog box If you run SWFUpload in debug mode you will get Error To fix Download SWFUpload v Beta Core zip optional Backup your swfupload js and your swfupload swf file Unzip and overwrite your existing swfupload js and your swfupload swf file You might need to rename the swf to match your swf name If you try the uploader at this point you will receive a

error #2176 certain actions

Error Certain Actions p here for a quick overview of the site Help Center Detailed answers to any relatedl questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up Should I workaround Flex security error up vote

error 2176 access

Error Access p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About relatedl Us Learn more about Stack Overflow the company Business Learn more about ms access runtime error hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges run time error Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each bitcasa error other Join them it only takes a minute Sign up

error 2176 magento

Error Magento p here for a quick overview of the site Help Center Detailed answers to any questions you relatedl might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up How to get around Flash error up vote down

error 2176 as3

Error As p here for a quick overview of the site Help Center Detailed answers relatedl to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up How to get around Flash error up vote down

error 2176 flash

Error Flash p ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError You don't have JavaScript enabled This tool uses JavaScript and much of relatedl it will not work correctly without it enabled Please turn JavaScript back on and reload this page Please enter a title You can not post a blank message Please type your message and try again More discussions in ActionScript All CommunitiesAdobe Animate CC - HomeActionScript Replies Latest reply on Feb PM by icecappacino SecurityError Error icecappacino Feb AM Hey guys I'm

error 2176 the setting for this property is too long

Error The Setting For This Property Is Too Long p soon Ruby coming soon Getting Started Code Samples Resources Patterns and Practices App Registration relatedl Tool Events Podcasts Training API Sandbox Videos Documentation Office Add-ins Office Add-in Availability Office Add-ins Changelog Microsoft Graph API Office Connectors Office REST APIs SharePoint Add-ins Office UI Fabric Submit to the Office Store All Documentation https www yammer com http feeds feedburner com office fmNx Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by Error The setting for this property is too long

error 2176 vba

Error Vba p soon Ruby coming soon Getting Started Code Samples Resources Patterns and Practices App Registration Tool Events Podcasts Training API Sandbox Videos Documentation Office Add-ins relatedl Office Add-in Availability Office Add-ins Changelog Microsoft Graph API Office Connectors Office REST APIs SharePoint Add-ins Office UI Fabric Submit to the Office Store All Documentation https www yammer com http feeds feedburner com office fmNx Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by Error The setting for this property is too long Microsoft Office for Developers Access for Developers

error 2176 flex

Error Flex p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more relatedl about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up Should I workaround Flex security error up vote -

error 2176

Error table id toc tbody tr td div id toctitle Contents div ul li a href Security Error a li li a href Filereference Error a li li a href Actionscript Error a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn relatedl more about Stack Overflow the company Business Learn more about hiring runtime error developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question