PDA

View Full Version : getURL



dnlawyer
11-24-2006, 05:01 AM
My site is here - http://www.cognusgroup.com/

If you click on one of the square buttons, say "web", it should take you to my web.htm page. Instead it gets an error because it tries to take you to this funky URL - http://www.cognusgroup.com/www.cognusgroup.com/web.htm.

It duplicates the domain name?????

The script on the button is this:
on (release) {
getURL("http://www.cognusgroup.com/web.htm");
}

Can someone please provide some helpful suggestions on how to fix this? Thanks. :( [/url]

muthe_ashok
11-24-2006, 11:42 AM
Hello friend,

write like this

getURL("web.html");

no need of full path bcoz all files are already in same folder

ashok..............

dnlawyer
11-24-2006, 03:26 PM
Yes - I tried that. I clicked on each button and changed the url in the action panel to read just the page as you have stated - i.e. web.htm, process.htm, etc etc. It is still trying to take me to:

http://www.cognusgroup.com/www.cognusgroup.com/process.htm

Why does it keep doing this? There is nothing in the code to tell it to duplicate the url?? Help!

papudo
11-24-2006, 09:23 PM
Check out this Flash Technote (http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_04157)from Adobe. It maybe related to your prob.

dnlawyer
11-25-2006, 06:26 AM
I tried adding the base attribute as the article stated with the base="www.cognusgroup.com/" and it still kept doing it.

Is this problem strange or what?

papudo
11-25-2006, 11:19 AM
Yes - I tried that. I clicked on each button and changed the url in the action panel to read just the page as you have stated - i.e. web.htm, process.htm, etc etc.

Did you also try it with "www.cognusgroup.com/web.htm" (including quotes)?

If you tested it offline, try online.
Else, I have no idea. :(

NTD
11-25-2006, 06:41 PM
Hi,

This is an odd error. The posted code looks correct. Try creating a test movie with a single movieclip and giving it the same posted code. Basically, try to reproduce the error in another file. The issue could be a couple of things. Frame code and object code on the same button or possibly overlapping buttons. It could be that when the release event occurs, it is calling the getURL method twice somewhere. Maybe post a demo file.