Sign In Register

How can we help you today?

Start a new topic

Cannot connect to Web Socket server from SWF on Browser

Connects without problem from Flash IDE debugger and Android. Isn't connecting from SWF on browsers (Chrome, Firefox).


Is there something to add into html embed code?


Log:

error:cannot connect to Web Socket server at wss://preview.gamesparks.net/ws/{GAME ID} (SecurityError: Error #2048)

make sure the server is running and Flash socket policy file is correctly placed 

error:Error: Error #1009 


Temporary embed code:

 <div id="flashContent">

   <object type="application/x-shockwave-flash" data="TesterGS.swf" width="450" height="800" id="TesterGS" style="float: none; vertical-align:middle">

    <param name="movie" value="TesterGS.swf" />

    <param name="quality" value="high" />

    <param name="bgcolor" value="#333333" />

    <param name="play" value="true" />

    <param name="loop" value="true" />

    <param name="wmode" value="window" />

    <param name="scale" value="showall" />

    <param name="menu" value="true" />

    <param name="devicefont" value="false" />

    <param name="salign" value="" />

    <param name="allowScriptAccess" value="always" />

    <a href="http://www.adobe.com/go/getflash">

     <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />

    </a>

   </object>

 </div>


Hi Irakli,

Do you still need help with this issue?
Were you able to solve this?


Thanks,


Oisin

Hi Oisin,


Yes I have fixed it but I don't remember how.


Thanks,

Irakli

Login to post a comment