3 Replies Latest reply on Sep 15, 2009 2:57 PM by Peter deHaan

    Basic Flash properties - pop-ups instead of compiler?

    BKold

      I find it EXTREMELY annoying that in order to set the most basic properties in Flash Builder - stage size, frame rate, background color - I have to use the oh-so cryptic compiler settings, buried in the project properties. Could we have a "basic" properties tab at the top level, and fields/color chips to set this stuff, like in Flash, as an alternative to the compiler settings? It would be much more user friendly, especially to beginners (I teach intermediate ActionScript programming at the undergraduate level, and it's stuff like this that turns students off of Flash Builder). Me, I forget the proper compiler settings if I haven't used Flash Builder in 2 or more weeks and have to look it up online, or else a previous project. Not a major problem at all, but it is a constant thorn in my side, especialy knowing how easy it would be to fix it...

        • 1. Re: Basic Flash properties - pop-ups instead of compiler?
          Peter deHaan Level 4

          bmeisler,

           

          Cant you set the stage size, frame rate, and background colors in the <s:Application> or <mx:Application> tags directly?

           

          <?xml version="1.0" encoding="utf-8"?> 
          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                         xmlns:s="library://ns.adobe.com/flex/spark" 
                         xmlns:mx="library://ns.adobe.com/flex/halo"
                         frameRate="29"
                         backgroundColor="black"
                         width="640"
                         height="480">
          

           

           

          Peter

          • 2. Re: Basic Flash properties - pop-ups instead of compiler?
            Jason San Jose Adobe Employee

            It sounds like bmeisler is using a pure ActionScript project, not a Flex project. Please file an enhancement at http://bugs.adobe.com/flex.

             

            Jason San Jose

            Quality Engineer, Flash Builder

            • 3. Re: Basic Flash properties - pop-ups instead of compiler?
              Peter deHaan Level 4

              Ah, true.

               

              For ActionScript I typically just use SWF metadata, but I agree, file an enhancement request:

               

              package {
                  import flash.display.Sprite;
                  import flash.text.TextField;
                  import flash.text.TextFormat;
              
                  [SWF(backgroundColor="#000000", width="200", height="400", frameRate="29")]
                  public class HelloWorldAS extends Sprite {
                      protected var tf:TextField;
                      public function HelloWorldAS() {
                          init();
                      }
                      protected function init():void {
                          var fmt:TextFormat = new TextFormat();
                          fmt.color = 0xFF0000;
                          tf = new TextField();
                          tf.defaultTextFormat = fmt;
                          tf.text = stage.frameRate.toString() + "\n" + stage.stageWidth.toString() + "x" + stage.stageHeight.toString();
                          addChild(tf);
                      }
                  }
              }
              

               

              Peter