BackgroundColor
Why does Flex change my background color? If I choose a red background, the background appears as: 0xf60909 instead of 0xff0000.
Do I just need to restart my computer or is Flex doing something to change the background color?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="0xff0000">
</mx:Application>
You need to also set the backgroundGradientColors property. The following application shows your problem, but if you add this to the Application tag it goes away:
backgroundGradientColors="[0xFF0000, 0xFF0000]"
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="0xff0000">
<mx:VBox paddingBottom="0" paddingLeft="0"
paddingRight="0" paddingTop="0"
horizontalAlign="center" verticalGap="0"
verticalAlign="middle">
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
<mx:Canvas width="100" height="100"
backgroundColor="0xFF0000"/>
</mx:VBox>
</mx:Application>
Similar Messages
-
Theme Editor: where to change backgroundcolor of editable table cells?
Hi all,
I need to change the color of an editable table cell.
I navigated to the theme editor --> tables.There is a section "Editable Tables". The preview shows an example with three columns and tree rows. I want to change the backgroundcolor of the cell in the first row, third column (in SAP standard it is lightgrey).
The backgroundcolor of the rows beneath can be changed in section "Selected Cells", the backgroundcolor of the first two columns in the first row can be changed by "Background Color of Standard Table Cell" but I can't find the field where I can change the color of the last cell.
Best regards,
SandraHi,
The blue color come from your definitions on "Labels and Fields" to read-only color of input field.
Regards,
F.F -
SpanElement backgroundColor not working as expected
I am adding a simple RichText element with a SpanElement as the content. I am setting the backgrounColor of the span, but rather than highlighting the entire text, it is only highlighting the top few pixels of the first line of text.
Is this a bug or am I doing something wrong?
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/halo"
width="100%" height="150"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Script>
<![CDATA[
[Bindable]
public var imageUrl:String;
[Bindable]
public var caption:String;
]]>
</fx:Script>
<mx:Image source="{imageUrl}" width="210" height="150" x="{(width - 210) / 2}" />
<s:Group>
<s:RichText width="135" height="100%">
<s:content>
<s:span fontSize="16" fontFamily="times, serif" color="#000000" backgroundColor="#ff0000" text="{caption}"/>
</s:content>
</s:RichText>
</s:Group>
</mx:Canvas>Here is an even simpler example to demonstrate the issue.
<?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"
minWidth="1024" minHeight="768">
<s:RichText>
<s:content>
<s:span fontSize="24" backgroundColor="#ff0000" text="Hello, world!"/>
</s:content>
</s:RichText>
</s:Application> -
Dynamic backgroundcolor doens't work
Hello,
How can you set the backgroundColor (of a vbox) to a
data-field ? I tried this, but it stays black ...
backgroundColor="{data.showcolor}"
Best regards,
FrankAndre,
Is there an important reason your are using an alias for that field? Have you tried it without?
I'm not a pro at complex querys like you have here, but from looking at this query I don't see why you need an alias.
From what I know, alias are good for the following reasons:
Avoiding any reserved (used by MySQL) words.
Allowing Multiple Joins to the same table
Allowing Self-Joins
Assigning the result of MySQL function to a temporary column name.
Doing a little googling got me this page:
http://dev.mysql.com/doc/refman/5.0/en/problems-with-alias.html
According to that page:
"Standard SQL doesn't allow you to refer to a column alias in a WHERE clause. This restriction is imposed because when the WHERE code is executed, the column value may not yet be determined."
So I think you'll have to skip using the alias and try something else.
Shane -
Problems with backgroundColor in UI when creating a Solid layer in Timeline
Hi all
When you are running scripts that use the backgroundColor property to draw swatches (like colorLibrary and SwatchYouWant) and try to create a New Solid in TImeline, script panels go gray. This way, you cannot use the color picker to select your Solid's color. This was possible with versions older than Adobe CC. Anyone knows anything about this issue?
Thanks.I have had the same issue but in Solaris 10 platform.
In my case it was a hardened server, I had to use a non-root user with the minimal permissions.
While my user didn't have permissions, DSCC always showed the error message you posted. I debugged for a while and the solution was to grant some permissions to the user that runs DSCC and cacao.
You can navigate in DSCC because most pages in DSCC only depends on DSCC Registry to work. But when you need to register or start a directory server, DSCC executes dsadm and dsconf in the local machine (where common agent and ldap instances run).
In unix, cacao calls suexec function and forks dsadm and dsconf processes with the user configured in each ldap instance. If cacao is not allowed to fork and to suexec, you'll get the error message, therefore I granted the user to execute "su" command and added the attributes "basic" with moduser.
In windows it could be the same thing, but with windows stuff. I don't know how to debug and set permissions in Windows but I'm almost sure that it is the problem in your case.
It could be that you are not allowed to fork programs if you are not registered in the domain. Please just check it and provide feedback.
Regards. -
Gallery widget backgroundcolor full screen
Hello,
I have some different pictures in my gallery widget, but i want to change the backgroundcolor when i touch a picture and this go to fullscreen.
Now is the background black?
Can i change this to a white background?
RobinThe YouTube widget in iWeb no longer functions since the demise of MobileMe. Go to YouTube, get the embed code from the video's page and add it to the HTML snippet in iWeb, not the YouTube widget.
Happy Holidays -
RichTextEditor.TextArea backgroundColor broken in Flex 4.*
I have a simple application which uses a RichTextEditor with a colored background, like so:
richTextEditor = addChild(new RichTextEditor()) as RichTextEditor;
richTextEditor.textArea.setStyle("backgroundColor", 0xAAAAAA);
richTextEditor.title = "Edit Text:";
richTextEditor.htmlText = formattedText;
This works fine when I compile against Flex 3.5.0, but in Flex 4.0 and 4.5, the background color remains white. I've tried setting it before the text, after the text, before and after it is added to the stage - even every single frame with an EnterFrame handler. Nothing - it just stays white.
Has anyone else encountered this and does anyone have a workaround? I don't really want to switch to a Spark component if I can help it, and I can't downgrade the whole application to 3.5.
Any answers much appreciated - as always.
JcFxI have an ugly hack fix for this, but I'm still not sure why it's happening. Here's the workaround:
richTextEditor = addChild(new RichTextEditor()) as RichTextEditor;
richTextEditor.setStyle("backgroundColor", 0xAAAAAA); /* NOT THE TEXT AREA, THE RTE ITSELF */
richTextEditor.title = "Edit Text:";
richTextEditor.htmlText = formattedText;
callLater(hideBackground);
protected function hideBackground():void
//Console.Debug("TextFieldEditor hideBackground");
if (richTextEditor)
if (richTextEditor.textArea)
for (var i:int = 0; i < richTextEditor.textArea.numChildren; i++)
var object:DisplayObject = richTextEditor.textArea.getChildAt(i);
var className:String = getQualifiedClassName(object);
if(className == "mx.skins.spark::BorderSkin") richTextEditor.textArea.getChildAt(i).visible = false;
- You need to callLater(hideBackground); every time the editor's text or htmlText is updated.
Hope this helps someone in future. It has to be good enough for me at the moment but I'd still like to know why the setStyle call is failing.
JcFx -
Revision: 10578
Author: [email protected]
Date: 2009-09-24 15:02:04 -0700 (Thu, 24 Sep 2009)
Log Message:
Fix the SkinTest.mxml in the sparkTest project: use backgroundColor style as we don't have a property anymore.
QE notes: None
Doc notes: None
Bugs: None
Reviewer: Evtim
Tests run: build
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/development/eclipse/flex/sparkTest/src/SkinTest.mxmlI finally found how to set a default skin to a custom component so that users of my component will not have to set again the skinClass value of my component.
You have to create a defaults.css file at the root of your library and tell the compiler to take it into account.
The remaining problem is about the compiler. There are some steps before success and they are a bit mysterious/unclear....
I found 2 or 3 blog articles explaining those steps but the compiler arguments to use are all differents in each article...
Here are the links I found:
http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spark-components/
http://www.betadesigns.co.uk/Blog/2010/05/14/default-skin-for-custom-flashbuilder-componen ts/
http://flexdevtips.blogspot.com/2009/06/default-stylesheet-in-swc-flex-library.html
Following the first article guidelines has been successful for me but I'm not marking this topic as Resolved because I'd like some answers about this whole thing... -
Revision: 8456
Author: [email protected]
Date: 2009-07-08 10:23:46 -0700 (Wed, 08 Jul 2009)
Log Message:
Output the generated info()["backgroundColor"] in a hexadecimal format.
In previous releases the info()["backgroundColor"] was whatever was specified in the Application class of an mxml. For example, now "red" and "#FF0000" will be convert to "0xFF0000".
QE Notes: none.
Doc Notes: none.
Bugs: SDK-21723
Reviewer: Paul
tests: checkintests
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21723
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.javaclfarron4 wrote:
So you have nVidia's Hybrid Graphics system, also known fondly as nVidia Optimus. These links should get you started:
https://wiki.archlinux.org/index.php/NVIDIA
https://wiki.archlinux.org/index.php/NVIDIA_Optimus
The point is that I don't want to install Nvidia drivers. It should be a mobile system, that's why I need Nouveau.
I want it to work with ATI's, Intel's and Nvidia's graphic cards,
The funny thing is that I've already done it before - I've successfully installed Arch on USB with Nouveau drivers, so I know that it is possible. -
Setting backgroundColor to transparent
Hi All,
I'm using the tree component, and wondered if there was a way
to set the backgroundColor style to "none".
I saw one user used this.tree.setStyle("_alpha","0"); This
had some success, but it also removed all color for my depthColors.
Basically, is there a way to remove background color for the whole
component and still have depthColors?
Thanks
Dave
However I also want to haveChris, first off thank you so much for your patience. I really appreciate it.
I opened your sample file and it works perfectly. But when I create something similar myself it simply doesn't work. I created a brand new file, inserted an image, and inserted a textbox on top of it. I gave the textbox a white fill, and I copied and pasted your code into the text field's Exit event. And it just doesn't work.
What's more, I tried copying and pasting your textbox and image into a file of mine, and yours didn't work in my file.
I have uploaded my sample. I don't know how to attach files to these messages, so you can find it at:
If you could just take a quick look at it and let me know what I am doing wrong that would be great. I'm sure it's something minor.
Oh, and for the record, I am using Adobe LiveCycle Designer Version 7, 0, 041126, 0 Cipher: 128-bit, in case that has something to do with it.
This is driving me up a wall. I thought this would take 2 minutes to do and I have literally spent hours trying to make it work. -
No backgroundColor on text for FXG?
when I set background color to a text and i export the text useing FXG format, the property backgroundColor does not exists,
however all the other oroperties do exist like font size, font color, align, enc..backgroundColor is not supported in FXG. Is there a reason you are using FXG instead of TLF markup? TLF markup is a complete rendition of the TLF text model.
Thanks,
- robin -
Change BackgroundColor on Mouseover
I would like to change backgroundColor of an drawn object(square) by mouseover. I acutally found the function for mouseover in action scripts but BackgroundColor("#ccc") does not work.
works fine, but my button has black borders and after using the transform the borders get colored, too.
var myColor:ColorTransform = laden1P.transform.colorTransform;
myColor.color = 0xCCCCCC;
laden1P.transform.colorTransform = myColor;
how do i avoid that? I -
Hello:
I just upgrade from Flash Builder Burrito to 4.5. After importing my Burrito project into 4.5, I got like 30 errors saying the following:
The style 'backgroundColor' is only supported by type 'mx.containers.Box' with the theme(s) 'halo, spark'.
I have been using backgroundColor through the project to set colors ... Is there a new property name? Do I have to start using CSS?
The only option I had for theme was "Mobile Theme".
I would like to be able to use backgroundColor with out rewritting all that code. Is there a way?
Thanks
PaulI used to have the prerelease "burrito" which I coded all the background colors using the "backgroundColor" property. I just bought the release version from the store and after I unstalled it I started getting the compiler errors releated to "backgroundColor".
Where do I locate the "use flex 3 compatability" box? -
Menu, Button, Menuitem backgroundcolor
is there any way to change the menu , button , menuItem background color,
i know there is hastable for maintaing ui component color. and one can get the
that defaults value using UIManager.getDefaults(). which returns a hastable . and you can set the key with corresponding value for some component.
UIManager.getDefaults().put("win.menu.backgroundColor",Color.RED);
but that doesnt work.
but the following line works
UIManager.put("TableHeader.background", Color.RED);
but the following line doesnt work.
UIManager.put("ScrollBar.background", Color.RED);
i dont why swing team exposed the api , and that api doesnt works. :)While it would be nice if we could expect all LookAndFeel implementations to use the same keys in the UIDefaults table, and while most implementations I've seen do make every honest effort to do so, it's not guaranteed. There's no reason why an LAF couldn't use a completely arbitrary set of keys, as long as all its associated UIs were geared for it. So... when you're trying to make changes to the UIDefaults table, it's always a good idea to check the LAF class. For example, let's pretend like we're working with the Metal look and feel (javax.swing.plaf.metal.MetalLookAndFeel class). It subclasses the javax.swing.plaf.basic.BasicLookAndFeel class, so remember to look up the heirarchy.
And we'll see that the key for the background color of a JMenuItem is "MenuItem.background", a JButton is "Button.background", and JMenu is "Menu.background". Those are the keys you set in the UIManager.
Personally, I prefer putting in a javax.swing.plaf.ColorUIResource instead of a straight java.awt.Color. But that's me.
As for why "ScrollBar.background" isn't working for you, well, it seems like it should, but you might double-check the ScrollBarUI for the LAF you're using and see if maybe it's not looking somewhere else. -
Strange tableView behavior with backgroundColor
Hi there.
I decided to add a background image to a tableView using
tableView.backgroundColor = [UIColor colorWithPatternImage:myImage].
It works well as you can see (http://www.pommedev.com/index.php?action=dlattach;topic=4811.0;attach=3287;image).
But when I add some data in a cell, the image is shifted a little bit on the top and a little bit on the right as you can see here (http://www.pommedev.com/index.php?action=dlattach;topic=4811.0;attach=3288;image). You can't really see the shitong to the right cause the image has no vertical lines, but it happens too.
Do you guys have any idea why the tableView behaves like that and how to correct that?
Thanks.Your current configuration where things work as you wanted does seem correct to me. You are not using any System Credentials to accomplish the functionality and that's fine.
Here's some more info to clarify how / why this is working for you and why you had to set "No Access" for the System Credentials:
The System Credential "Authenticated@..." is going to get assigned to any user that goes through your transfer script. Even if you transfer script assigns no credentials to a user, upon entering iTunes U they will have at least 1 - the "Authenticated@..." credential. Therefore, unless you block access using "No Access", any user that passes through your transfer script is going to be able to access the area in question.
When you change values for "Unauthenticated@..." or "All@..." you are defining what someone that DOES NOT pass through your transfer script can do. You want both of those to be "No Access" at the top level of your site if you do not want unauthenticated visitors.
The distinction between "Unauthenticated" and "All" is that "All" applies to all users whether they pass through the transfer script or not.
Here's another way to remember things:
User passes through your transfer script, iTunes U automatically assigns:
Authenticated@....
All@....
User does not pass through your transfer script and instead access your iTunes U site through derivable URL*, they get assigned:
Unauthenticated@....
All@....
*The derivable URL for a site is: http://deimos.apple.com/WebObjects/Core.woa/Browse/site-domain-name
Mac OS X (10.4.6)
Maybe you are looking for
-
System crashing at least once a day with KERN_PROTECTION_FAILURE (0x0002)
Once a day the whole system freezes and can't even close the applications. I connected by remote shell and ran 'top' to see the processes. "Coreservice" was running at 99.9%. After killing the "coreservice" process I then had the error pop-up and tha
-
Anyone know how to create/use particular icons for stack icons?
Hiya! I currently have the following folders as some of my individual stacks in my dock. Pictures Applications Music Movies Home Now if I right-click on any of them and select 'Display as Stack' then the first file in the folder gets used as the dock
-
Down payment request for contract with periodic billing
Hi Friends, Could anyone help me in understanding the configuration settings for down payment / advance payment senario for a CONTRACT which has Order related billing (I have done for Order with milestone billing plan). The contract has order related
-
How to fix shortcuts problems with foreign keyboards and photoshop in english
Some shortcuts won't work with a non english keyboard and you'll have to switch to english keyboard to fix this but it's not always practical You can use a program from Microsoft available here to customize your keyboard http://msdn.microsoft.com/fr-
-
Creation of Account payee keys and Table for House Bank
Hi Gurus, Please tell me how to create a Account payee keys what is transaction code for this.And let me know that what is table to check the house Banks. Thanks