haejeanson
September 26th, 2008, 05:49 PM
Hi!
I'm building a flash fullscreen slideshow that populates with an xml file. The flash is parsing the xml by calling a variable in the flashvar of the object tag in the html. Everything works great. I even put it up on my test site and everything is working great. But when I changed the image path in the xml to have full url from a crossdomain, i get a sandbox error. But the strange thing is when i load the site on my server, I can see the images being loaded, but the flash is not seeing my code to resize my UILoader and to position all the thumbnails. You can see my flash site here: my flash sample (http://haejeanson.com/personal/fullscreenTest/FullScreenSlideshow.html)
What I've tried... I tried including the crossdomain.xml.
import flash.display.LoaderInfo;
import flash.system.Security;
var flashVars= this.loaderInfo.parameters;
Security.loadPolicyFile("http://mydomain.com/crossdomain.xml");
photoViewer.loadAllXMLData(flashVars.xmlUrl);
photoViewer.loadAllConfigData(flashVars.configUrl) ;I've also import
import flash.system.LoaderContext;
myContext = new LoaderContext();
myContext.checkPolicyFile = true;
var urlReq:URLRequest = new URLRequest(images[currItemNum]);
mainPicLoader.load(urlReq, myContext);This has not helped! Any ideas? Please help! Thanks so much:D
Haej
I'm building a flash fullscreen slideshow that populates with an xml file. The flash is parsing the xml by calling a variable in the flashvar of the object tag in the html. Everything works great. I even put it up on my test site and everything is working great. But when I changed the image path in the xml to have full url from a crossdomain, i get a sandbox error. But the strange thing is when i load the site on my server, I can see the images being loaded, but the flash is not seeing my code to resize my UILoader and to position all the thumbnails. You can see my flash site here: my flash sample (http://haejeanson.com/personal/fullscreenTest/FullScreenSlideshow.html)
What I've tried... I tried including the crossdomain.xml.
import flash.display.LoaderInfo;
import flash.system.Security;
var flashVars= this.loaderInfo.parameters;
Security.loadPolicyFile("http://mydomain.com/crossdomain.xml");
photoViewer.loadAllXMLData(flashVars.xmlUrl);
photoViewer.loadAllConfigData(flashVars.configUrl) ;I've also import
import flash.system.LoaderContext;
myContext = new LoaderContext();
myContext.checkPolicyFile = true;
var urlReq:URLRequest = new URLRequest(images[currItemNum]);
mainPicLoader.load(urlReq, myContext);This has not helped! Any ideas? Please help! Thanks so much:D
Haej