Re: [Flashcoders] Error #2044

2009-08-31 Thread Pedro Kostelec
>
>
> Thanks, but it seems to work without it.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error #2044

2009-08-31 Thread Gregory Boland
one addition to this is if you are loading something using a cross domain
policy you might need to tell your loader to check for a cross domain policy
using LoaderContext class..

it would look like this..

_loader = new Loader();
var context:LoaderContext = new LoaderContext();
 // set the check policy flag in the loader context
 context.checkPolicyFile=true;
_loader.load(new URLRequest("image path goes here"), context);


On Mon, Aug 31, 2009 at 12:18 PM, Pedro Kostelec wrote:

> Thanks a lot. Unfortunaltely i can't use relative urls. I am going to try
> the cross domain policy thing.
>
> THanks.
> ___
> 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


Re: [Flashcoders] Error #2044

2009-08-31 Thread Pedro Kostelec
Thanks a lot. Unfortunaltely i can't use relative urls. I am going to try
the cross domain policy thing.

THanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error #2044

2009-08-29 Thread Juan Pablo Califano
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:

http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="
http://www.adobe.com/xml/schemas/PolicyFile.xsd";>



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 

> 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


[Flashcoders] Error #2044

2009-08-29 Thread Pedro Kostelec
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