Welcome Guest, Not a member yet? Register   Sign In
[Solved] flash not working without www..please help
#1

[eluser]Zeeshan Rasool[/eluser]
hi guys Here i have a problem the website below is simple flash site on which im passing param and xml which contains images for flash. But if we access web site
http://www.inspiredretreats.ca/executive it works well its menus in header "Inspirations" works well on click
But if we remove www
http://inspiredretreats.ca/executive then its not working .

What i have done in current situation:

- there is a single flash file for these 3 galleries (executive retreates, Luxury, Dream..)
just im passing different xml which contains images path
- we have fixed the base url to http://www.inspiredretreats.ca/ where ever we are calling flash or xml etc so that it doest make problem if some one write without www, but no effect.

very thank full in advance.
#2

[eluser]Boris Strahija[/eluser]
Create a file called crossdomain.xml and put in the same folder as the file in which you include the SWF.
The file shoud contain this:
Code:
<?xml version="1.0"?>
<cross-domain-policy>
    <allow-access-from domain="*.your-domain.com" />
</cross-domain-policy>
#3

[eluser]renownedmedia[/eluser]
What Boris said should work... You have absolute URLs to your flash which include the www. and www.example.com and example.com are two separate domains. The crossdomain.xml is a security thing flash implements.

An alternative would be to make the URLs relative instead of absolute.
#4

[eluser]Zeeshan Rasool[/eluser]
i have already checked this thing with relative path but same result.
#5

[eluser]InsiteFX[/eluser]
Try this.

Code:
# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) http://www.domain.net/$1 [R=301,L]

Of course put in your domain name.

Enjoy
InsiteFX
#6

[eluser]Zeeshan Rasool[/eluser]
O thank guys !
thanks InsiteFX You have removed a lot of tension
This code really work
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) http://www.domain.net/$1 [R=301,L]
#7

[eluser]InsiteFX[/eluser]
Your very Welcome.

Enjoy
InsiteFX
#8

[eluser]iFadey[/eluser]
@zEsHaN:
Just wanna ask you something related Flash. How did you make your swf file to span the whole browser window? I am not talking about the fullscreen. What I mean is that your website's covering all the area below browser tabs to the status bar.
Wherever I search I find that html percentage method (height:"100%" and width:"100%"). I don't want to do it that way.
#9

[eluser]Zeeshan Rasool[/eluser]
[quote author="iFadey" date="1251291470"]@zEsHaN:
Just wanna ask you something related Flash. How did you make your swf file to span the whole browser window? I am not talking about the fullscreen. What I mean is that your website's covering all the area below browser tabs to the status bar.
Wherever I search I find that html percentage method (height:"100%" and width:"100%"). I don't want to do it that way.[/quote]
I do this by doing height width of flash to 100% i-e in design view click on flash and set height/width to 100%. try this dude.
#10

[eluser]iFadey[/eluser]
You mean the height and width in design view of Dreamweaver?




Theme © iAndrew 2016 - Forum software by © MyBB