Skip to main content
Participating Frequently
May 17, 2012
Question

Getting Security Error# 2048 while working in Flash 11.2

  • May 17, 2012
  • 1 reply
  • 23471 views

Hi all,

Greetings to all. Well So i prepared a widget written in Action Script 3. Here are my system configurations:

OS: Windows 7

Flash: 11.2

Now when i make a SWF file and open it in my local host i can see the widget running with no problems.

But when i wrapp the SWF file/ Flash Widget in HTML and then try to run it in my local host it is giving me security error 2048. Below is the error i am getting:

Error 2048
Error Security: 0:[SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048"] - {"config":{"fragmentOutgoingMessages":true,"maxReceivedFrameSize":1048576,"fragmentationThreshold":16384,"maxMessageSize":8388608,"closeTimeout":5000,"assembleFragments":true},"debug":true,"extensions":[],"readyState":0,"bufferedAmount":0,"resource":"/1.0.0/events/annotation.OQB15MCCCLO49620VHC4R8C8D/","port":25899,"useNullMask":false,"host":"127.0.0.1","protocol":null,"secure":false,"uri":"ws://127.0.0.1:25999/1.0.0/events/annotation.OQB15MCCCLO49620VHC4R8C8D/","connected":false}

After some googling and visiting some forums/websites on the internet i also included the following cross domain parameters in the root location of my source code:

<?xml version=\"1.0\"?> <!DOCTYPE cross-domain-policy SYSTEM \"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\"> <cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="localhost" to-ports="*" secure="false" />
<allow-access-from domain="*" secure="false" to-ports="{0,number,#}"/>" <allow-http-request-headers-from domain="*" headers="*"/>" </cross-domain-policy>

Apart from the above settings i also made a mms.cfg file to include the DisableSocket=0 but still not working.

I am using websocket connections in my widget and using open source lib AS3Websocket library.

Can you guys anyone here can shed some light on this.It will be a huge help.

Thank you and have nice time people.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 17, 2012

what does your widget do?

mayanks20Author
Participating Frequently
May 17, 2012

Hi kglad,

  Thanks for your reply. Actually the widget is used to do simple math additions for one digit. Like a UI is shown and questions are asked for eg: how much is 2+3? and when the user puts the answer as 5, the scores are updated and the next question is shown to the user.

Simple math addition for kids basically.

Thank you

kglad
Community Expert
Community Expert
May 17, 2012

is it loading data?  from where is it loading data and what kind of data?