getUrl and passing variables.
I wonder if someone would give me a clue here .. none of these pass any variables through.
Not collecting the variables from the frame (which is what I thought happened):
var a=1;
getUrl("page.asp","_blank","GET");
nor appending to url in traditional way, with or without GET:
getUrl("page.asp?a=1","_blank","GET");
or
getUrl("page.asp?a=1","_blank");
The pages load OK, but the name/value pairs disappear.
So I guess I need educating. Anyone willing to give me a clue. :)
The "dark side" of LoadVariables
Hilary is talking from AS dictionary (uncompleted & buggy document,btw).
However,he's right.
But I'm talking from "real life".
To see that I'm right,just do the following:
1) Use KM v3.5 (or v3.6) and make a 1 keyframe movie (no tweens).
2) Inside this movie,make a child-movie called "names".
3) Inside the "names" movie insert 2 dynamic texts called "name1" and "name2".
4) Create a text file called "players.txt" with this line:
name1=OWEN&name2=AUS&name3=HILARY
(the text file must be in the same directory with the SWF file)
5) For the "names" movie add this script:
onClipEvent(load){
this.loadVariables("players.txt","GET");
stop();
}
6) Run the movie and see the "amazing" result !
question: where is the TARGET inside the "loadVariables" command ?
ha ha ha
:mrpimp: