I am working on a couple Flash Banners that are loaded into another swf file.
I have 3 swfs:
BannerLoader.swf
Edmond.swf
SanAntonio.swf
BannerLoader partially loads the SanAntonio.swf and throws an error that reads:
*** Security Sandbox Violation ***
SecurityDomain ‘http://www.weightwise.com/Websites/101/Files/SanAntonio.swf’ tried to access incompatible context ‘file:///Rich%20G5/Users/richjamison/Documents/Flash/WeightWise/Banners/HomePage/Round2/Publish/BannerLoader.swf’
SecurityError: Error #2070: Security sandbox violation: caller http://www.weightwise.com/Websites/101/Files/SanAntonio.swf cannot access Stage owned by file:///Rich%20G5/Users/richjamison/Documents/Flash/WeightWise/Banners/HomePage/Round2/Publish/BannerLoader.swf.
at flash.display::Stage/get stageWidth()
at SanAntonio_fla::MainTimeline/frame1()
I think it has something to do with the URLRequest being a http address instead of a local file on my hard drive.
After the SanAntonio.swf fades out and is removed, the Edmond.swf loads in the same manner BUT it doesn’t throw the error. This is confusing because the Edmond.swf and SanAntonio.swf are the same except for different Doctor photos and background image. Everything else is the same, including the code.
Any Thoughts,