SECURITY ERROR

Monkey Forums/Monkey Programming/SECURITY ERROR

dave.h(Posted 2011) [#1]
IF I RUN MY GAME FROM INSIDE THE COMPILER IT RUNS FINE BUT IF I RUN IT FROM THE FOLDER BY CLICKING ON THE ICON I GET

SECURITY ERROR DOM EXCEPTION 18 AND THE PROGRAM HANGS

THIS IS ONLY IN HMTL5 AND ONLY IF I SELECT A CERTAIN ICON.ANY IDEAS WHAT THIS MEANS.


Soap(Posted 2011) [#2]
Well first this means you need to press the key to the left of the "A" key. Then you need to tell us the name of the file you are clicking. All files have icons of some sort, that tells us nothing. Are you trying "MonkeyGame.html"?


dave.h(Posted 2011) [#3]
yes im trying to run "MonkeyGame.html"


slenkar(Posted 2011) [#4]
I get it too, I think its to do with the new server,

if you upload the html5 game to a website you probably wont get the error

if you want to run a game on the local PC you will have to
go into a command prompt and
set the current directory as the game folder

e.g. 'cd c:\mygame\build\html5'

then

'c:\Monkey\bin\mserver_winnt.exe monkeygame.html'


skid(Posted 2011) [#5]
@dave.h: Why all the SHOUTING? In case you haven't already, perhaps go back to previous version of Monkey and continue your programming.


dave.h(Posted 2011) [#6]
wasnt shouting just forgot capslock was on


dave.h(Posted 2011) [#7]
thanks for the reply slenkar i read something on the internet and they seemed
to be saying the same as you.


dave.h(Posted 2011) [#8]
full explanation here


http://www.monkeycoder.co.nz/Community/posts.php?topic=824&