Flex 4 / Flash Builder 4: baseColor changed to chromeColor
Line Break
Author: Arjan (47 Articles) - Author Website
Arjan is a SAP Consultant specialized in ABAP and Front End development techniques like Web Dynpro, Adobe Interactive Forms, Flex and AIR. In his free time he likes to create examples for Flex-Blog and other applications using Flex, AIR and PHP. Other hobbies are movies and music. He is also the co-owner of Flex-Blog.com.
While I was developing in the new Flash Builder 4 / Flex 4 environment yesterday, I tried to use the baseColor property on the s:Application tag to give it a default color, just like I explained in this example. I noticed however, that Flash Builder gave an error that it didn’t recognize the baseColor property…
So at first I was a bit mad because I was very happy that they added this option to the Flex 4 SDK, and now they took it away from me again! I soon found out that the option is still there, but they changed the property name. You should now use chromeColor to set the “baseColor” of your Flex 4 application….very confusing for all of us that have been developing with the Flex 4 beta SDKs…there’s probable a lot more that has changed with the final release….we just have to wait and see what all the changes are.
So, in source:
1 2 3 4 | <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" chromeColor="0xFF0000" xmlns:s="library://ns.adobe.com/flex/spark" initialize="init()" xmlns:mx="library://ns.adobe.com/flex/mx"> |
Read more Flash Builder Examples.
Related posts:
- Flex 4 / Flash Builder 4: Repeater changed to DataGroup
- Using baseColor to Style Components in Flex 4
- Using ASDoc as an External Tool in Flash Builder 4
- Using States in Flash Builder
- Call Javascript function from Flex / Flash Builder (AS3)
Comments
2 Responses to “Flex 4 / Flash Builder 4: baseColor changed to chromeColor”



(
[...] Note2: found the solution, goto this article [...]
ohh… thanks for sharing. I was having the same problem.