I'm trying to get the new API working with Flex (not as straight
forward as flash with just adding two lines to frame 1 - as there is
no timeline - but involves setting up a Preloader class etc.), and
running into a bit of trouble accessing the api swf.
In the first line of the load_service_complete function I get the
following error when testing locally:
"SecurityError: Error #2121: Security sandbox violation:
LoaderInfo.content: file:///C|/game/mindjolt.swf cannot access
http://static.mindjolt.com/api/as3/api_local_as3.swf. This may be
worked around by calling Security.allowDomain."
I tried changing the url of the local test swf from the new one
"
http://static.mindjolt.com/api/as3/api_local_as3.swf" to the old one
"api_as3_local.swf" and it loads fine; I can access the content etc,
although I get obvious errors due to the wrong api.
This is perhaps only a problem due to the way I am doing it with Flex
(adding a MovieClip to the stage, from my Sprite extended Preloader,
to use as the clip).
Although I haven't looked at it much, from what I understand the
allowDomain("
static.mindjolt.com") call is allowing access to my swf
from the mindjolt api, not visa versa.
Perhaps the old api had a allowDomain("*") that the new one doesn't?
And that was only needed in this sort of circumstance?
I haven't tested the live version yet as I want to get it working
locally first.
Thanks for any help.