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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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!
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!
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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
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...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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...  ;)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.