3 Replies Latest reply on Dec 19, 2008 3:12 PM by tzkhan

    Need a Flex Guru

    tzkhan
      New to Flex, I have been having problems with this code:
      This code runs perfectly from Flash CS3. But from Flex Builder 3 it gives errors, on :


      1120: Access of undefined property _loader.
      1120: Access of undefined property _loader.
      1120: Access of undefined property completeHandler.

      on these lines:
      -----------------

      _loader.load(new URLRequest....
      _loader.addEventListener....

      ---------------------


      Thanks in Advance.
        • 1. Re: Need a Flex Guru
          John Hall Level 4
          One thing that's a little different in Flex is that you don't call scripts inline like you can in Flash frame scripts. So everything's going to be in a function. I'll attach a rough attempt at doing what you're doing below. The other thing is if you're just getting started, one thing that can through you is getting the localhost to work. I'll assume you have that working so you see " http://localhost...." in the browser URL, not file://.. Finally, because I don't have time (or maybe want to take time) to test the code below, I just refer to a file called sample.txt in the same localhost folder as your bin-debug output on the IIS (or whatever) server so we don't get into any cross-domain issues.

          • 2. Re: Need a Flex Guru
            Madhav Subedi Level 4
            try following code:
            • 3. Re: Need a Flex Guru
              tzkhan Level 1
              Sweet! Really really appreciate your help! You guyz both are Guru! – Thanks