Hello,
I have following code:
function mouseU(m:MouseEvent)
{
if (m.target.text)
{
var target:String = m.target.text.toLowerCase();
for (var i:uint; i<buttons.length; i++)
{
if (target == buttons*)
{
var url:String = "index.php?id=" + target;
var uReq:URLRequest = new URLRequest(url);
try
{
navigateToURL(uReq, '_top');// second argument is target
}
catch (e:Error)
{
trace("Error occurred!");
}
break;
}
}
}
}
As you can see the string used with the “navigateToURL” function should reslove as “index.php?=home” for instance,… however in a browser it appears as:
As you can see, somewhere along the line a forward slash has been added. Why is this happening?