PDA

View Full Version : [AS2] Very Strange Problem With Remoting/LoadVars


benipsen
05-09-2007, 06:04 PM
I've been using AMFPHP for a few years and it's always worked well. Yesterday my videos stopped loading into my player application o, I tried to make a temporary fix and grab the data in a more traditional way (LoadVars):

var work:LoadVars = new LoadVars();
work.onData = function(loaded:Boolean){
trace("loaded= " + loaded);
trace("object= " + this);
}
work.load("http://studio.legitify.com/video/?id=33");

Oddly enough, the loaded parameter traces the urlencoded string like:

file=video.flv&account=legitify

The variable values themselves do not become properties of the LoadVars object as they have done in the past.

Has anyone seen anything like this? I can get the data in the string and parse the values I need but would rather get to the bottom of this. I am considering re-installing flash at this point!

benipsen
05-09-2007, 06:11 PM
Nevermind.. onLoad handler must get called after data has been loaded into the object. Still struggling with the remoting problem however : /