swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Security violation issue


From: filip sound
Subject: Re: [Swftools-common] Security violation issue
Date: Wed, 24 Jun 2009 14:21:18 +0200

hi,

have you set the local-with-network priviledge for your generated swf files? it's a switch for pdf2swf (sorry, i don't remember what letter it was).
using that switch i had no problems loading and manipulating the generated swf files.

also, when you're loading those swf you have to make sure you use a LoaderContext for your Loader call (AS3):
yourLoaderObject.load(new URLRequest(url), new LoaderContext(false, ApplicationDomain.currentDomain));

filip

On Wed, Jun 24, 2009 at 2:00 PM, Muhammad Ahmed Ullah <address@hidden> wrote:
Hi,

We have separate servers for swf-files and main-swf. These swf-files are generated using pdf2swf tool. Server with swf-files also has crossdomain file on it.
Now swf-files are loaded into main-swf without any problem, but when we access its contents for text copying or bitmapdata access then it throws security sandbox violation exception.

SecurityError: Error #2121: Security sandbox violation: Loader.content:
http://192.168.0.1/MainSWF.swf cannot access http://192.168.0.2/generated.swf. This may be worked around by calling Security.allowDomain.

Is there any way so that the generated swf calls allowDomain() internally.

Thanks,
Ahmed


reply via email to

[Prev in Thread] Current Thread [Next in Thread]