Flash not working on web page sometimes... need help!

Ok, here it goes. I helped a photographer with a website and added a flash slideshow to his homepage. The slides are pulled from a folder that he uploads to. For some reason when I type the url with www in it the slideshow does not play on the homepage. When I type the url without www the site will load and play normally. Any ideas how to solve this?
Who is Participating?
No, it's just the way it is...  Flash takes www.site.com and site.com as two separate domains where the security stuff kicks in to prohibit the loading the data from other domain unless the other domain has crossdomain.xml file specified...

The easiest solution would be to forward the traffic on site.com to www.site.com by using something like URL rewriting and have your ActionScript only use www.site.com to get the data...

See if that works for you...

David S.Commented:
Joey, this doesn't sound like an HTML issue.  It sounds like the flash file is either locked to the domain or doesn't allow accessing files from the raw domain when the subdomain is used.
merchantwebAuthor Commented:
Ok, I'll check some things out and come back. Thanks Kravimir!
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

merchantwebAuthor Commented:
Ahh ha! Ok so the url in my actionscript was pointing to an asp file used in getting the images. The url link did not have ww in it. I changed the link and gave it the full http://www.sitename.com/whatever.asp and not the slides only appear if I use www in the link. HO can I represenrt a url so that if someone types www or not it will still display the slideshow.

Here is the line in my AS3 where the url reference is-

I  have also attached files.asp

If I change that to http://www.devphotovideo.com/files.asp?00 then the site will only work correctly if I include www. As of now I am not including it becasue I want to face out its use in general.

We have other domains that redirect to our site but that produces the same problem. The site loads, but the slideshow that is suppose to appear on the homepage will not play.

VIsit http://devphotovideo.com vs. http://www.devphotovideo.com. Could this be a hosting issue?

Thanks for your help!
merchantwebAuthor Commented:
oops, cant attach .asp files so here it is...

dim fs,fo,x
Whichfolder=server.mappath("\") &"/HomeSlides/"
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder(Whichfolder)
Response.write("<?xml version='1.0' encoding='iso-8859-1'?>")
for each x in fo.files
  Response.write("<image thumb='' caption='' href='' transition='1' src='"&"http://devphotovideo.com/HomeSlides/"&x.Name&"' />")
Response.write("<slideShow width = '300' height = '200' background = '#ffffff' border = '2' borderColor = '#ffffff' />")
Response.write("<autoPlay playOption = '1' delay = '5' showButton = '1' />")
Response.write("<caption capOption = '2' />")
Response.write("<buttons styleOption = '2' />")

set fo=nothing
set fs=nothing


I changed the zones for this question from

--Miscellaneous Web Development
--Hypertext Markup Language (HTML)
--Adobe Flash

--Miscellaneous Web Development
--Hypertext Markup Language (HTML)
--Adobe Flash
--Active Server Pages (ASP)
--Extensible Markup Language (XML)

Experts-Exchange Moderator
merchantwebAuthor Commented:
Thanks, I'll try that.
merchantwebAuthor Commented:
I used this rule in my .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^DOMAIN\.com [NC]
RewriteRule ^(.*)$ http://www.DOMAIN.com/$1 [R=301,L]
Awesome...  ;)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.