Is there a way to have getURL pass only the variables I wan?
I am passing the variable 'orgn' from one flash movie to the next, with the
code:
var orgn:String = _root.orgn;
if ( _root.orgn == "you" )
getURL("Jesus2.php", "_self", "GET");
else
getURL("http://www.loveandhope4u.com/Jesus2.php", "_self", "GET");
I was hoping to get:
/Jesus2.php?orgn=you
Instead I get:
/Jesus2.php?orgn=you&width=undefined&height=undefined&focusManager=_level0.focus
Manager&tabChildren=true&tabEnabled=false
Which makes for a mess on my analytics report. Can I get rid of the width,
height, etc.?
:confused;
Noelbaland - 20 Jul 2008 05:39 GMT
Hello,
It looks like the Flash player parameters are being sent along to your PHP
page as well. I think it's the way your syntax in your script has been written.
Try changing your script to match the following. See if that helps.
// I'm guessing _root.orgn is coming from a dynamic textbox Var field.
// If so, you might want to rename it something else.
var orgn:String = _root.orgn; // Rename
// Close your if statements with brackets and you only need to
// refer to the variable orgn not _root.orgn
if(orgn == "you"){
getURL("Jesus2.php", "_self", "GET");
} else {
getURL("http://www.loveandhope4u.com/Jesus2.php", "_self", "GET");
}
mknoche - 20 Jul 2008 21:19 GMT
Thanks for the suggestion, but that didn't help....
The extra variables look like they have something to do with FocusManager...
Could this be happening because the flash movie is playing within a html frame?
I guess this may end up being one of those things I just have to live with -
but I hate not understanding it....:disgust;