flashcoders  

Re: [Flashcoders] Error #2044

Juan Pablo Califano
Sat, 29 Aug 2009 11:55:32 -0700

Your swf's domain in londonstudentbible.com, while the xml's domain is
www.londonstudentbible.com.

The player considers both as differnent sub-domains.

If you run your swf from:

http://www.londonstudentbible.com/slideshow/slideshow.swf

It works. Now the swf is pulling data from its own domain, so access is
granted by the player.

That probably solves the problem. If, for some reason, you need to run your
swf from londonstudentbible.com, you can use a crossdomain.xml policy file.

The easiest way is placing it the document root of your server:

<cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="
http://www.adobe.com/xml/schemas/PolicyFile.xsd";>
    <allow-access-from domain="londonstudentbible.com" />
</cross-domain-policy>

Another easy fix is not hardcoding the absolute url. Just use a relative
path in your xml.

Cheers
Juan Pablo Califano

2009/8/29 Pedro Kostelec <pedrok...@gmail.com>

> Hi list
>
> I am receiving an error 2044 when loading images with absolute URLs. THey
> are correctly spelled.
>
> Here's the error i get (as seen in IE8's flash window that opens as i
> launch
> the swf):
>
> Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox
> violation: http://londonstudentbible.com/slideshow/slideshow.swf cannot
> load
> data from http://www.londonstudentbible.com/slideshow/items.xml.
>  at slideshow_fla::MainTimeline/frame1()
>
> The file i am talking about it this one:
> http://londonstudentbible.com/slideshow/slideshow.swf
>
> And you can downlaod the code here:
> http://londonstudentbible.com/slideshow/error.zip
>
>
> Does anyone know why this error is triggered? Any workaraound?
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders