0 Replies Latest reply on Jan 2, 2008 6:13 PM by Flex-Issac

    How to read file in sync.?

    Flex-Issac Level 1
      Hi all,

      I am using URLLoader to read file, but it has trouble/problem that is need to wait the load complete event to finish read file action. So i cannot use it to load file to read some configuration file to assign to the class variables.

      I want to use as follow:

      var config:ConfigFile = new ConfigFile();
      var file:String = "data.ini";
      var x:int = config.X;
      var y:Strin = config.Y;
      If I use URLLoad that cannot implement to get properties directly, I need to wait complete event then I need to dispatch my own event again to tell the caller is allow to get properties.

      Anyone has other method to help me to implement these usage way?