PDA

View Full Version : Code to open URL in the same tab - not a new tab?


rambo_fan
05-22-2008, 10:01 AM
Hi ;)

Im a beginner to flash. Ive created a flash menu for a website, however when a link is clicked it opens up the specified URL in a new tab in Mozilla, rather than load in the same tab.

Example code for a button:

-------------------------------------------
inv_btn6.onRollOver = function() {
this.onEnterFrame = startRoll;
};
inv_btn6.onRollOut = function() {
this.onEnterFrame = stopRoll;
};
inv_btn6.onPress = function() {

getURL("website name/index.htm","_self");
}

-------------------------------


ive used both _self & _blank, can anybody help me with what is probably a very simple problem, however not to me lol

Thanks.

Groady
05-29-2008, 08:37 AM
Have you tried not specifying a target? So

getURL("website name/index.htm","_self");

becomes

getURL("website name/index.htm");

atomic
05-29-2008, 02:33 PM
Have you tested it online?