flash actionscript:
[quoted text, click to view] "j_rudy" <webforumsuser@macromedia.com> wrote in message
news:dnsdnl$f71$1@forums.macromedia.com...
> Ok, this is probably a stupid question, but I'm pulling my hair out.
> I have a
> movie that's loading images through an xml file. When I test it on a
> local PC
> in the flash environment, it works fine. On my mac, it gives me a
> failed to
> load (image name) message in the ouput dialog box. When I test the
> movie
> through a browser on my local, it also fails. But, I have been able
> to upload
> it through the server and it works when it's by itself. But then I
> try to load
> it into the website on the server, it fails. I have the file if
> anyone can help
> me out on this.
You didn't say specifically what the error message is but just wanted
to mention that the onLoad event has become a real pain in the butt
lately. It doesn't fire on some systems, especially FireFox. For a
test, if you want to find out if the onLoad function is the problem,
substitute the onLoad function with a delay (give it plenty of time to
actually load the file). After the delay then proceed as if the load
was successful and see if it works. If it does work, that means that
the xml loads just fine but never fires the onLoad event. In that
case you can replace the onLoad event with a different scheme. What I
have used before is to set the final value in the XML to number 999.
Then I use a setInterval to keep checking for that last value to
become 999. When it does, it is done loading. I also use a time-out
just in case it never loads so that it won't get hung up. None of
this applies if you are trying to load from another domain. Are you?
tralfaz