Home > error 2176 > error #2176 certain actions

Error #2176 Certain Actions

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 Should I workaround Flex security error 2176 up vote -1 down vote favorite I got the following 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. I found a similar thread here and the short explanation of the problem is: Adobe does this as a sort of security measure to ensure users are the ones messing with files rather than potentially harmful code However this thread doesn't answered my questions and that's why I am asking here: 1) Is there a good reason for me getting this error and is it really a security issue (and if so - maybe I shouldn't workaround it?). 2) What are the potential consequences if I do my workaround (I am asking because obviously Adobe decided that it shouldn't be workaround-ed) actionscript-3 security flex share|improve this question asked May 23 '14 at 11:31 s-rusev 85110 1 We don't have many clairvoyants over here, you'll have to show what you are doing to receive that error in the first place, and explain how you're planning to workaround it. –ndm May 23 '14 at 11:39 I will use the workaround with the two event listeners for the events MOUSE_DOWN and MOUSE_UP mentioned in the other thread. I am getting the error when I manually dispatch an MouseEvent

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 be called in a user event handler — http://stackoverflow.com/questions/23828089/should-i-workaround-flex-security-error-2176 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 keypress event). Otherwise, calling this method results in Flash Player throwing http://stackoverflow.com/questions/3301839/flexs-filereference-save-can-only-be-called-in-a-user-event-handler-how-ca 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 doing now is this: I have a function that is registered as a handler for a button click. In this function I make

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. https://forums.adobe.com/thread/787945 This tool uses JavaScript and much of it will not http://www.bogdanmanate.com/2010/05/12/flex-error-2176-when-using-filereference/ 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 3 All CommunitiesAdobe error #2176 Animate CC - HomeActionScript 3 2 Replies Latest reply on Feb 6, 2011 3:52 PM by icecappacino SecurityError: Error #2176 icecappacino Feb 6, 2011 11:33 AM Hey guys,I'm using AS3 and the FB Graph API to upload bitmap data to facebook. However,on a MouseEvent.CLICK event I get the following error #2176 certain errorSecurityError: 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.at flash.net::URLStream/load()at flash.net::URLLoader/load()at com.facebook.graph.net::FacebookRequest/loadURLLoader()[D:\Work\cartoon\com\facebook\grap h\net\FacebookRequest.as:372]

This is weird because it was triggered by an onclick. In psuedo codeuser clicks uploadI encode datawhen this is finish I send to facebook apiI guess I should note that the encoding process also triggers and event and passes tru several steps again before reaching the facebook apiIs there anyway to keep the mouse event within the calls stack? I have the same question Show 0 Likes(0) 3373Views Tags: none (add) This content has been marked as final. Show 2 replies 1. Re: SecurityError: Error #2176 kglad Feb 6, 2011 11:55 AM (in response to icecappacino) copy your real code that executes your pseudo-code steps. Like Show 0 Likes(0) Actions 2. Re: SecurityErr

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 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 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. Leav

 

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 filereference

Error Filereference 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 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