PDA

View Full Version : swf does not work on website.....


rbruhn
12-22-2003, 04:46 AM
hello. wondering if someone has experienced the same problem i'm facing with flash 2004.

i built a program using flash mx and updated to action script 2.0 standards with flash 2004.

this program can be downloaded or watched online from our server. during the movie, it makes several calls to our server in order to load variables at certain points in the movie.

when i play the program in the stand alone player, it performs as expected. however, when watching online, it jumps to a warning frame that i created in case a variable could not be loaded due to the program not being able to access the internet.

i went through debugging and it works as expected from my desktop. for some reason, the swf is not able to access the server when it is on the server.

i'm aware of the cross domain security features that flash has implemented but does this make sense? i mean, it is on the same server and accessing the same folder.

if someone can clue me in it would be nice. thanks.

rbruhn
12-24-2003, 03:15 PM
Just to update:

after more reading, I got the impression that flash 2004 may not access different folders on the same domain without a security file. So, I created one, saved it to the root, and what do you think happened? It worked!!! Yes, it worked fine through 5 different run throughs.

So, overjoyed and thrilled I renamed my test version of the program to the proper name and uploaded it.

Then it stopped working. Same problem occurs. I'm about ready to throw Flash 2004 into the trash and ressurect my Flash MX.

Still looking for suggestions.

rbruhn

rbruhn
12-30-2003, 06:14 PM
For anyone interested....

I was able to get the application working after all. I created a new crossdomain.xml file with domain = "*" since none of my other domain names worked correctly.

As I mentioned before, this is a flash application that needs to access other folders on the same domain. From my reading, it appeared Flash would do this if it resided on the same domain without having to create a crossdomain.xml. Well, it wouldn't work for me until I did the above. Hope this helps someone in the future.