Ledge
09-15-2005, 03:20 PM
SAVVIS seems like an ok approach to general web development. It similar to many other content delivery services, but I am seriously having problems integrating dynamic Flash into it. Here is the scenario:
I have a shell swf that loads local xml. In this local xml there are paths to both the remote swf on Savvis and to the remote XML file also on Savvis. The problem comes when I try to preload the swf. For some reason the preloader isn't detecting the swf at all.
Here is the basic preloader code that I am using:
var bl:Number = holder.getBytesLoaded();
var bt:Number = holder.getBytesTotal();
if (bt > 4 && bl == bt) {
//fully loaded
}
Even weirder is when I test the movie locally, it works and it works everytime. When I upload this same file to a server, doesn't matter what server, I have tried a few, it fails.
I have setup crossdomain.xml files and I have even hardcoded the
System.security.allowDomain("somedomain");
into my file and it still fails, but works great locally.
Does anyone know why when I test the file locally it would work just fine, but when I put it on the server and try to load the swf and the xml from Savvis it fails?
It is really starting to bother me. If I put pointers into the main xml file and have it look locally for all the swf and xml files and put that on the server it works as it should. Any pointers? Anyone ever deal with Savvis?
Sorry, but I can't post the files.
I have a shell swf that loads local xml. In this local xml there are paths to both the remote swf on Savvis and to the remote XML file also on Savvis. The problem comes when I try to preload the swf. For some reason the preloader isn't detecting the swf at all.
Here is the basic preloader code that I am using:
var bl:Number = holder.getBytesLoaded();
var bt:Number = holder.getBytesTotal();
if (bt > 4 && bl == bt) {
//fully loaded
}
Even weirder is when I test the movie locally, it works and it works everytime. When I upload this same file to a server, doesn't matter what server, I have tried a few, it fails.
I have setup crossdomain.xml files and I have even hardcoded the
System.security.allowDomain("somedomain");
into my file and it still fails, but works great locally.
Does anyone know why when I test the file locally it would work just fine, but when I put it on the server and try to load the swf and the xml from Savvis it fails?
It is really starting to bother me. If I put pointers into the main xml file and have it look locally for all the swf and xml files and put that on the server it works as it should. Any pointers? Anyone ever deal with Savvis?
Sorry, but I can't post the files.