Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

getURL GET variables passed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mknoche - 19 Jul 2008 14:20 GMT
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;
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.