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":104 8576,"fragmentationThreshold":16384,"maxMessageSize":8388608,"closeTim eout":5000,"assembleFragments":true},"debug":true,"extensions":[],"rea dyState":0,"bufferedAmount":0,"resource":"/1.0.0/events/annotation.OQB 15MCCCLO49620VHC4R8C8D/","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.
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
hi kglad
Yes its loading data from Desktop application. We are connected to the Desktop application thru localhost.when we use only SWF directly in the application we are able to connect the websockets. One we wrapp it in HTML and then try to connect, the websockets fails showing the security error 2048.
Hi wugidugi,
Do you know how to check whether the securtiy file (Tags) is loaded or not? I mean is there any way to check if its loaded at runtime. Somehow its giving a miss to that file in my CPP code (server side).
Thank you.
North America
Europe, Middle East and Africa
Asia Pacific