Home
> FlashEff 2.0 Flex
> Topic
SecurityError - crossdomain policy file is not loading
Posted by soliton
SecurityError - crossdomain policy file is not loading April 17, 2010 12:36PM | Registered: 14 years ago Posts: 8 |
Hi
I'v bought the flex license two months ago
developed an application and want to deploy it soon
when i test the app locally, all is well, when i run it on the server, i get the error message in the bottom
i am running on one domain trying to load images from another domain and apply the flash effects to them
i've made sure my loadings are fully backed up by crossdomain policy files
and in fact, those do not give me any trouble as long as i'm not applying the image effect to them
the error message clearly suggests it has to do with your components
and as i have no access to the code, i can't modify it to load the policy files
does your API include such a command?
your underlying Loader should contain a LoaderContext which tells it to load the file
plus Security.loadPolicyFile("[www.thesourceDomain.com];);
but i assume you already know that
any suggestions?
this is quite urgent for our team
cheers
error message:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: [www.myDomain.com] cannot access [www.anotherDomain.com]. No policy files granted access.
at flash.display::BitmapData/draw()
at com.jumpeye.flashEff2.symbol.brightSquares::FESBrightSquares/createBitmapImage()
at com.jumpeye.flashEff2.symbol.brightSquares::FESBrightSquares/applyTransition()
at com.jumpeye.flashEff2.symbol.brightSquares::FESBrightSquares/show()
at FlashEff2/transitionEffect()
at FlashEff2/draw()
at com.jumpeye.core::JUIComponent/callLaterDispatcher()
I'v bought the flex license two months ago
developed an application and want to deploy it soon
when i test the app locally, all is well, when i run it on the server, i get the error message in the bottom
i am running on one domain trying to load images from another domain and apply the flash effects to them
i've made sure my loadings are fully backed up by crossdomain policy files
and in fact, those do not give me any trouble as long as i'm not applying the image effect to them
the error message clearly suggests it has to do with your components
and as i have no access to the code, i can't modify it to load the policy files
does your API include such a command?
your underlying Loader should contain a LoaderContext which tells it to load the file
plus Security.loadPolicyFile("[www.thesourceDomain.com];);
but i assume you already know that
any suggestions?
this is quite urgent for our team
cheers
error message:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: [www.myDomain.com] cannot access [www.anotherDomain.com]. No policy files granted access.
at flash.display::BitmapData/draw()
at com.jumpeye.flashEff2.symbol.brightSquares::FESBrightSquares/createBitmapImage()
at com.jumpeye.flashEff2.symbol.brightSquares::FESBrightSquares/applyTransition()
at com.jumpeye.flashEff2.symbol.brightSquares::FESBrightSquares/show()
at FlashEff2/transitionEffect()
at FlashEff2/draw()
at com.jumpeye.core::JUIComponent/callLaterDispatcher()
Re: SecurityError - crossdomain policy file is not loading April 27, 2010 02:43PM | Admin Registered: 15 years ago Posts: 310 |
soliton,
I am really sorry for that issue. Unfortunately the flasheff2 component does not contains any loader object. Please try to load the image by specifying the loader context as bellow.
var myLoaderContext:LoaderContext = new LoaderContext();
myLoaderContext.applicationDomain = new ApplicationDomain();
If this does not solves the problem then you should also try to load the image using the loadBytes() method.
I am really sorry for that issue. Unfortunately the flasheff2 component does not contains any loader object. Please try to load the image by specifying the loader context as bellow.
var myLoaderContext:LoaderContext = new LoaderContext();
myLoaderContext.applicationDomain = new ApplicationDomain();
If this does not solves the problem then you should also try to load the image using the loadBytes() method.
Re: SecurityError - crossdomain policy file is not loading April 28, 2010 08:07AM | Registered: 14 years ago Posts: 8 |
Re: SecurityError - crossdomain policy file is not loading April 28, 2010 11:43AM | Admin Registered: 15 years ago Posts: 310 |
Sorry, you do not have permission to post/reply in this forum.