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.