This content has been marked as final. Show 4 replies
ctrl+click to trace code.1 person found this helpful
are u sure it's that line giving the error?
recently when I saw someone else post an error of this kind, the code they were exploring with was not actually in a method of any sort but just written straight into the <mx:Script> block. Have you tried putting these lines into a method such as creationComplete() - eg
public function setup_items():void
var contactsXMLLoader:URLLoader = new URLLoader();
It is definately this line.
I'll try your suggestion and see if it works.
Regaring my second point, is there a way to see the code for the URLLoader and URLRequest classes anyway on FlexBuilder 3.0?
Thanks for your quick replies.
Putting the lines into a method solved the problem and the error message no longer appears.