5 Replies Latest reply on Oct 25, 2012 11:47 AM by Amy Blankenship

    Generating event handlers

    community help Level 1
        • 1. Re:  Generating event handlers
          Amy Blankenship Level 4

          How do you change where the event handler is generated in the file? I find that the default (right after the method where you've typed the name) results in messy, disorganized code. By the time I move the code so it is organized, I could have just typed in the code myself.

          • 2. Re:  Generating event handlers
            jrunrandy Adobe Employee

            Hi Amy,

            I looked into this a little bit and don't have much for you. Sorry.

             

            I found that you can change the contents of the generated Event Handler via Preferences>Flash Builder>Editors>Code Templates>Flash Builder. Interesting, but probably not helpful.

             

            Also, when I generated an event handler, it went above my code as a new protected function in an <fx:Script> block.

             

            I'm using version 4.6. What version are you using.

             

            Regards,

            Randy Nielsen

            • 3. Re:  Generating event handlers
              Amy Blankenship Level 4

              Hi, Randy;

               

              How are you?

               

              I've already customized about everything I can find (I'm a bracket cuddler, so I combed through everywhere to remove the uncuddled brackets Adobe uses by default), so I already had my event handler itself customized. I once pinked out my interface to have a pink background and preppie code colors, plus pink and purple rounded tabs--it's pretty labor-intensive. That doesn't travel with workspaces or machines, so I only did it the once.  If I could have found a way to get unicorns in there as well, I probably would have.

               

              That's how obsessive I can be about customizing my interface, so don't worry too much about it.

               

              I'm on 4.6 as well.

               

              Regards;

               

              Amy

              • 4. Re:  Generating event handlers
                Guriya Kalyani

                Hey Amy,

                Currently there is no way in Flash Builder to customize where the event handler should be generated.

                I've raised an ECR on your behalf to be considered  for future releases. Thanks.

                 

                • 5. Re:  Generating event handlers
                  Amy Blankenship Level 4

                  Thanks . That's fantastc!