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?
LVL 1
merchantwebAsked:
Who is Participating?
 
CyanBlueCommented:
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...

CyanBlue
0
 
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.
0
 
merchantwebAuthor Commented:
Ok, I'll check some things out and come back. Thanks Kravimir!
0
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-
imageXML.load("http://devphotovideo.com/files.asp?00");

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!
0
 
merchantwebAuthor Commented:
oops, cant attach .asp files so here it is...

files.asp
------------
<%
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'?>")
Response.write("<images>")
for each x in fo.files
  Response.write("<image thumb='' caption='' href='' transition='1' src='"&"http://devphotovideo.com/HomeSlides/"&x.Name&"' />")
next
Response.write("</images>")
Response.write("<settings>")
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' />")
Response.write("</settings>")

set fo=nothing
set fs=nothing

%>
0
 
Vee_ModCommented:
merchantweb,

I changed the zones for this question from

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

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


Vee_Mod
Experts-Exchange Moderator
0
 
merchantwebAuthor Commented:
Thanks, I'll try that.
0
 
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]
0
 
CyanBlueCommented:
Awesome...  ;)

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