Posted By

chrisaiv on 10/11/09


Tagged

Flex


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Pingpongbal
Tyster


Flex: Adding Compiler Settings using an XML Config File


 / Published in: XML
 

For those of us still using Flex Builder 3, every time we create a new project, we usually need to right-click the Project and add a parameter called -default-background-color=0xffffff into the compiler settings. An easier solution is to create an XML file with a name the same as your MXML file. So for example, if your Flex project is titled barnacles.mxml, then place this config file in the same directory and name it barnacles-config.mxml.

  1. <flex-config>
  2. <default-size>
  3. <width>1000</width>
  4. <height>600</height>
  5. </default-size>
  6. <default-frame-rate>12</default-frame-rate>
  7. <default-background-color>0xcccccc</default-background-color>
  8. <target-player>9.0.28</target-player>
  9. </flex-config>

Report this snippet  

You need to login to post a comment.