15 Replies Latest reply on Feb 19, 2010 5:05 PM by Peter deHaan

    FB doesn't recognize variables just declared




      Here's the code in an <fx:Script> tag:


      var myXML:XML;

      var req:URLRequest = new URLRequest("photos.xml");

      var loader:URLLoader = new URLLoader();





      loader.addEventListener(Event.COMPLETE, dataLoaded);


      function dataLoaded(evtObj:Event):void


           myXML = new XML(loader.data);




      This gives 1120 error: access of undefined properties of req, loader, and dataloaded. Can one not declare variables in a script in FB? FB also couldn't recognize an id set in the MXML section.... All this worked fine in Flash Professional CS4.


      I'm hoping that only my version/setup of Flash Builder is totally screwed up. This is build 13875, Mac OS 10.5.6. Made the changes recommended in the library path and in the (don't remember it xml file).


      Anyone else with these problems?