I've made an empty AS 3 .flv document that has one keyframe on position 1 with this action:
on(load)
{
var req:LoadVars = new LoadVars();
req.x = "y";
req.load("http://localhost/file.php");
req.onData = function(src:String) {
req.x = src;
req.send("http://localhost/send.php", "_self", "POST");
};
}
I'm receiving numerous errors such as the on(load) is invalid. I'm trying to run the code in the beginning of the movie.
on(load)
is AS1 or AS2, but it's definitely not AS3onData
-onData
is fired only after you have send it and received the response back from server.