[Flashcoders] Why is my method not firing?

2008-05-22 Thread Ali Drongo
Hiya, I have a custom class with a loadvars object to post to a php script. For some reason my failed method won't fire. Can anyone suggest why? Thanks :) Ali //code from inside my class //this is not firing function failed(){ trace("failure fired") }

Re: [Flashcoders] Why is my method not firing?

2008-05-22 Thread Glen Pike
Hi, Have you tried renaming the function and swapping the order of trace / function call? Glen Ali Drongo wrote: Hiya, I have a custom class with a loadvars object to post to a php script. For some reason my failed method won't fire. Can anyone suggest why? Thanks :) Ali //code fro

Re: [Flashcoders] Why is my method not firing?

2008-05-22 Thread Alistair Colling
cheers for your quick response Greg. Seems to be a scoping problem as it's working now: function sendData() { trace("sendData"); var tmp = this result_lv = new LoadVars(); result_lv.onLoad = Delegate.create(tmp, onXmlLoaded); O