This content has been marked as final. Show 11 replies
no panic, (you cant hot link images from other webpages into your swf application, common now :) swf does not know if thats you site or not :) and their is not verbal way you can change its mind unless 1) defiend policy file swearing that all images from that domain are ok , or 2) get image and embed it into your app (easiest way) .
I don't get it, the image for which i get that error is loaded and displayed just fine in HorizontalList and how come that was possible in previous release (Flex Builder 3 Beta 2) where this worked just fine without error? :(
I believe all you need to do is create a cross domain file in the root directory of your web server. Call it crossdomain.xml and put the following xml in it:
<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM " http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<allow-access-from domain="*" />
The other way around this is a proxy of sorts. Not sure how to set that up but it's in the documentation I believe.
You should be able to run your app from within Flex Builder 3 as its security sandbox is different than if you deployed it. You should get a warning in Flex Builder 3 (probably only in debug mode) but it should not prevent you from doing it. Now if you've told FB to launch your app from a local webserver, that's a different story. The Flash Player doesn't know that your SWF came via Flex Builder at that point.
We probably didn't complete the security work in Beta 1. You will definitely need a crossdomain.xml file on your sabljic-apartment.com domain for actual distribution UNLESS the SWF is served from the same domain.
I got the following reply at flexcoders list regarding my problem:
That's a bug in the beta. A workaround is to subclass SWFLoader,
override notifyStyleChangeInChildren and regenerateStyleCache and have
them just return w/o doing anything.
So i guess that's something that can be solved but i don't know how can i do that? I mean how can i subclass SWFLoader and override notifyStyleChangeInChildren and regenerateStyleCache to have them just return w/o doing anything? Can someone please be kind enough to explain this to me a little bit further?
thanks in advance
I am facing the same problem. I am using Weblogic8.1.
I have created a development server instance on my machine.
In which folder of weblogic can I place the crossdomain.xml file?? is it under userprojects\\domains\\xxdomain ??
What ever the root folder is for that instance of the webserver.
That will route the request to default port: 80 on which my server is not running.
Hmmmm then I'm guessing the path you have is not your root path.