all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Strange problem with a link button


Strange problem with a link button Goalie35
5/28/2004 6:55:54 PM
flash actionscript:
hi guys.
I created a simple little link on one of my flash symbols. My actionscript
code is:
on (release) {
getURL("../index.asp");
}
Notice the "../" in my url? This is where my problem is coming from.
The page this flash file is in is located in a different directory from that
of my home page (index.asp), actually I just placed it in a subfile of the
directory that index.asp is located in (ex:
www.mysite.com/subfolder/myflashpage.swf )
So since this file is located 1 level down from index.asp, I use "../". Now,
here's the strange part...when I click on this link button the first time, my
browser simply looks for the index page within the subfolder.(i.e. instead of
going to "www.mysite.com/index.asp, it looks for
www.mysite.com/subfolder/index.asp, which doesn't exist).
Then when I click my browsers "Back" button, and try clicking the link button
a 2nd time, everything works fine and I'm directed to the proper page.
I'm using Internet Explorer 6 as a browser.
Any idea why this may be happening?

Thanks in advance.

-Goalie35
Re: Strange problem with a link button kglad
5/29/2004 2:58:54 AM
Re: Strange problem with a link button fasterthanlight
5/29/2004 3:28:17 AM
AddThis Social Bookmark Button