3 Replies Latest reply on Nov 2, 2010 12:10 PM by gpjax

    'code assist' not working

    gpjax

      Hello -

       

      I have a file in which the 'code assist' popup recently stopped working. The file contains no alert markers and the project compiles cleanly with no errors or related messages. The file is fairly large @ 6700 lines. Code assist appears to work properly in all other project files.

       

      What could be the problem?

       

      Thanks.

       

      gp

        • 1. Re: 'code assist' not working
          gpjax Level 1

          Found the answer. Apparently, there's some syntax the compiler doesn't complain about but that the 'code assist' doesn't like.

           

          In my case, the following syntax broke 'code assist' such that it didn't pop up:

           

          (aDictionary[aInt] as SomeClass).aProperty = ....

           

          and fixed with:

           

          var someObj:SomeClass = aDictionary[aInt] as SomeClass;

          someObj.aProperty = ....

           

          The former syntax compiled fine with no complaints as does the latter but the latter stops 'code assist' working for some reason.

          • 2. Re: 'code assist' not working
            Jason San Jose Adobe Employee

            (array_expression as type).property should work. What version of Flash Builder are you using?

             

            Jason San Jose

            Software Engineer, Flex Mobile

            • 3. Re: 'code assist' not working
              gpjax Level 1

              FB ver 3.0.2.214193

               

              I had to delete chunks of my code until I had isolated the offending code.

               

              Once I changed it, code assist worked fine. What baffles me is that I'm pretty sure I've used the same syntax in other files with no ill affect. Might be a combination of factors in my file. Don't really know.

               

              gp