2 Replies Latest reply: Feb 6, 2011 3:52 PM by icecappacino RSS

    SecurityError: Error #2176

    icecappacino Community Member

      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

       

      SecurityError: 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 code

       

      • user clicks upload
      • I encode data
        • when this is finish I send to facebook api

       

      I guess I should note that the encoding process also triggers and event and passes tru several steps again before reaching the facebook api

       

      Is there anyway to keep the mouse event within the calls stack?