3 Replies Latest reply on Jun 2, 2011 1:31 AM by allaHelgon

    ActionScript file using TextArea component

    allaHelgon

      I have been developing applications in Flash CS5, but I coudn't stand the completely useless code editor any more, so I have installed the Flash Builder instead.

       

      The problem I'm having now, is that I have an AS3 class that uses the TextArea component. But if I make an ActionScript project, I cannot import the TextArea class as FB doesn't seem to know about it. And I know nothing about Flex, so if I make a Flex project, I have no idea of how to combine my AS3 class with the TextArea component.

       

      I am amazed - I thought that would be ridiculously simple, but I have been browsing Adobes sites for days now, and I'm not an inch closer to any solution.

       

      Anyone knows something to help me?

        • 1. Re: ActionScript file using TextArea component
          Anirudh Sasikumar Adobe Employee

          TextArea is a Flex component. Flex components are usually accessible from Flex projects only (unless you tweak the build path setting yourself).

           

          If you just want to show text without Flex, TextField might be the component you are looking for. (you'll have to set a few properties on it to be multiline and word wrap, etc.

           

          -Anirudh

          1 person found this helpful
          • 2. Re: ActionScript file using TextArea component
            allaHelgon Level 1

            Thank you Anirudh,

             

            I have been using the TextArea component because it has code to handle scrollbars, and in Flash this component is a wrapper for a TextField object. As far as I can see this is not the case in Flex, and my AS3 code sets almost all of the TextField attributes, so I probably can't use Flex and the Flash Builder anyway. At least not without throwing all my code away.

             

            Besides, the .swf file generated seems to be much bigger than in Flash.

            • 3. Re: ActionScript file using TextArea component
              Anirudh Sasikumar Adobe Employee

              I think TextArea internally uses TLF in the case of Flex 4. The mx:TextArea flavor uses TextField internally.

               

              If you're interested in the internals of these components, the Flex general discussions forum will be able to help you more.

               

              -Anirudh

              1 person found this helpful