1 Reply Latest reply on Jun 28, 2011 4:59 PM by Energetic Pixels

    Flex Builder 3 - actionScript { placement

    Energetic Pixels

      I am working through Adobe's book Adobe Flex 3 Training from the Source.  Is there a way to tell Flex Builder 3 where you want the curly braces to be placed when building actionscript functions, classes, etc???

       

      I would love to have them appear like this (during an auto-complete):

       

       

       

      private

       

      function dragIt(initiator:Canvas, dsData:Product, event:MouseEvent, format:String):void {

      var imageProxy:Image = new Image();

      imageProxy.load("../assets/"+groceryItem.imageName);

      imageProxy.height=80;

      imageProxy.width=80;

      var ds:DragSource=new DragSource();

      ds.addData(dsData, format);

      DragManager.doDrag(initiator, ds, event, imageProxy);

      }

       

       

      instead of this (where the opening curly is on its own line):

       

       

       

      private

       

      {

      function dragIt(initiator:Canvas, dsData:Product, event:MouseEvent, format:String):void

      var imageProxy:Image = new Image();

      imageProxy.load("../assets/"+groceryItem.imageName);

      imageProxy.height=80;

      imageProxy.width=80;

      var ds:DragSource=new DragSource();

      ds.addData(dsData, format);

      DragManager.doDrag(initiator, ds, event, imageProxy);

      }

       

       

      I used to build flex applications using FlashDevelop, but recently my company went out and bought a copy of Flex Builder 3.

       

      respectfully,

      Tony