View Full Version : Link not working when www?
PayStairs
10-21-2008, 05:34 AM
Hey guys, I am currently making a flash menu and I am experiencing a very strange phenomenon. I am not sure what’s causing it, but for some reason, the links of the flash menu does not work when you type the www to access to website.
Does not work: http://www.paystairs.com
Works: http://paystairs.com
I don't get it ... It's the same thing ... Tested with IE, FF and Safari ... same problem. Did any of you experience that before? I don't get it lol
(Also tried changing the code using the remanded AC_RunActiveContent.js and I have the same problem.)
The strange thing is the flash works when you type in the address directly...
http://paystairs.com/swf/21204-menu.swf
CyanBlue
10-21-2008, 11:34 AM
Howdy and Welcome... :)
Flash treats www.domain.com and domain.com as two different domains which invokes security sandbox where you cannot communicate from one domain to another via ActionScript... Make sure that you are sticking with one domain name inside your script and you should be fine...
PayStairs
10-21-2008, 01:51 PM
Howdy and Welcome... :)
Flash treats www.domain.com and domain.com as two different domains which invokes security sandbox where you cannot communicate from one domain to another via ActionScript... Make sure that you are sticking with one domain name inside your script and you should be fine...
I am. all my website uses http:// for every links the problem is when you type the www to acess the website. Go test it your self and take a look at the flash and html source.
atomic
10-21-2008, 02:14 PM
Most likely because you're not using the www in your flash menu...
...
on (release)
{
if (_root.link != num)
{
_parent["item" + _root.link].gotoAndPlay("s4");
_parent["line" + _root.link].gotoAndPlay("s2");
_root.link = num;
this.gotoAndPlay("s3");
_parent["line" + num].gotoAndPlay("s1");
_root.pic_movs(0, 52, 95, 138, 181, 15, 93, 135, 178, -15);
} // end if
getURL("http://paystairs.com", "_self", "GET");
}
As CyanBlue said, Flash sees http://www.domain.com and http://domain.com as two different domains...
When called from http://paystairs.com the above would work, but from http://www.paystairs.com, it wouldn't...
CyanBlue
10-21-2008, 02:18 PM
Can you post the script you are using???
PayStairs
10-21-2008, 03:00 PM
onClipEvent (load)
{
num = 1;
this.title1.gotoAndStop(num);
this.title2.gotoAndStop(num);
this.title3.gotoAndStop(num);
this.title4.gotoAndStop(num);
this.title5.gotoAndStop(num);
this.title6.gotoAndStop(num);
}
on (rollOver)
{
if (_root.link != num)
{
this.gotoAndPlay("s1");
} // end if
}
on (releaseOutside, rollOut)
{
if (_root.link != num)
{
this.gotoAndPlay("s2");
} // end if
}
on (release)
{
if (_root.link != num)
{
_parent["item" + _root.link].gotoAndPlay("s4");
_parent["line" + _root.link].gotoAndPlay("s2");
_root.link = num;
this.gotoAndPlay("s3");
_parent["line" + num].gotoAndPlay("s1");
_root.pic_movs(0, 52, 95, 138, 181, 15, 93, 135, 178, -15);
} // end if
getURL("http://paystairs.com", "_self", "GET" );
}
If i change
getURL("http://paystairs.com", "_self", "GET" );
to
getURL("http://www.paystairs.com", "_self", "GET" );
Will i have the same problem but when a user types http:// with out www?
EDIT: Looks like it changed nothing. First time i enconter that problem. Kind of weird ... What am i missing?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.