[php] Can't get variables into flash

Ok, I’ve tried and tried for a very long time now. I’ve searched the forums and all threads are saying the same, but I can’t get it to work. So maybe you could help me a little bit.

I’ve got a menu with a submenu, and I want to know which submenu the user last clicked. So I’ve got this script on the submenubuttons:

on (release) {
 getURL("index.php?plats=1", "_self");
}
on (release) {
 getURL("index.php?plats=2", "_self");
}

where the variable “plats” is a number.

I can easily write this number on my php-page. It clearly says: *&plats=1 *or &plats=2 depending on what button I pressed.

But now to the thing. I can’t get flash to understand that I’m trying to load this variable into flash again to set some _y-values on a MC.

This is the script I’m using on the MC:


onClipEvent(load) {
 loadVariables("index.php", 0, "GET");
 if (_root.plats == 1 || _root.plats == null) _root.newpos = 155;
 else if (_root.plats == 2) _root.newpos = 130;
 else if (_root.plats == 3) _root.newpos = 104;
 else if (_root.plats == 4) _root.newpos = 77;
}

But as I said, I can’t get flash to understand what value the variable “plats” has. So please. Help me…