PDA

View Full Version : Variables, half of them work :/


Ludatha
07-31-2008, 03:01 PM
Ok, I have a movie clip with these actions applied to it:

onClipEvent (load) {
GID = "frontpage.php?id=01";
url = "frontpage.php?url=01";
}

Inside that is some text inside a movie clip and a button, the text has these actions applied to it:

onClipEvent (load) {
loadVariables(GID, this, "GET");
}

The Button has these actions applied to it:

on (release) {
getURL(url);
}


When I run it, I get no errors, but if I click the button, it will go to the url set in the variable, but the text doesnt show anything, if I change the text to:

onClipEvent (load) {
loadVariables("frontpage.php?id=01", this, "GET");
}

It works fine.. what am I doing wrong? (Im very new to actionscript xD)

If you need any more info or I havnt explained it very well please ask :)

gnomeontherun
08-01-2008, 08:54 PM
onClipEvent handlers don't work for text boxes. Do you have the text box in another movieClip?

Try reading this to make sure you are approaching this correctly.
http://www.actionscript.org/resources/articles/98/1/loadVariables-Interaction-between-Flash-backend-scripts/Page1.html

Ludatha
08-01-2008, 09:28 PM
Yeah I am doing it all right, I am just trying to make it easier because I need to do it about 250 times so I wanted to use variables so i dont have to go an edit the movieclip every time.

ramm19
08-05-2008, 12:13 AM
put your AS in your timeline. That's the easiest way to manage your code, so that way you don't have to dig for it.