Flex 4 lacks the default-background-color compiler option?
Hello,
started converting my Flex 3 applications to Flex 4 and noticed that Flex 4 lacks the default-background-color compiler option.
Flex 3 has it: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
Flex 4 doesn't: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
This raises a question: how am I supposed to keep my background from flashing from grey to white when the RIA is loaded? Is it possible to use preloader with background set to whatever color I like to see? Any easier solutions?
Best regards,
Jukka
This works for me:
@namespace mx "library://ns.adobe.com/flex/mx";
mx|Application{
background-color:#ffffff;
Of course if you have changed the Application element to spark equivalent, you have to change the namespace.
Regards,
Jukka
Similar Messages
-
Flex 4.5.1 SDK & default-background-color Compiler Argument
Hey guys,
I was scanning the available compiler arguments list (http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html) for Flex 4.5 SDK and noticed that the -default-background-color argument is gone (I realize it's been gone since 4 just haven't used the SDK much lately). My background shows up as black when I run my app (it's an AS3 app with the new Away3D 4.0 Broomstick library) and there is no Flex code in my app so I was depending on this compiler argument to set my background color to white.
How can I achieve this now that the argument is no longer available? I just simply want to have a white background without physically having to create a white sprite in the back of my scene. Is this possible anymore?
MattSimeon,
Thanks for that, I had a brainfart and forgot you can have the properties defined in that manner. I changed it but it still wasn't working which made me realize I had to change the backgroundColor property on the view in Away3D. I realized this after trying the params for the class and then not adding the view (which had a white bg) and then i looked at the docs and bam, there it was. Thanks!
Matt -
What is the default background color of flex canvas?
Please tell me what is the RBG code for the default flex
canvas?It the Flex Style Explorer is correct, it is: 869ca7
Look at the Style Explorer if you have not yet.
Tracy -
Default background color issue
Hi,
I am trying to change themes at run-time using
StyleManager.loadStyleDeclarations(). Whenever I switch to a theme,
the default theme's background color shows up for a fraction of a
second. I tried using the "StyleEvent.COMPLETE" event handler but
it doesn't seem to work. Is there a way to remove this? I want the
transition from my current theme to the next theme to be smooth
without the default background color appearing. If anybody can
please provide a solution for this, It would be a great help.
Thanks,
Jaiquote:
Originally posted by:
LuigiL
Project -> Properties -> Flex Compiler -> add the
default color:
-default-background-color 0xFFFFFF
That's not what he's talking about... He's saying if you load
a CSS file with loadStyleDeclarations(), it will momentarily flash
the default, green Halo theme before switching to the new style...
If I load up my white theme (White.swf -- compiled to swf from css)
and then I want to change to my red theme (Red.swf) like:
StyleManager.unloadStyleDeclarations("White.swf");
StyleManager.loadStyleDeclarations("Red.swf");
At the * point in the execution, it will flash the green Halo
theme instead of just making a smooth transition from white to
red... It doesn't look so professional...
I have the same problem when switching themes, and it's very
annoying... Guess I'll keep an eye on this thread... -
Print outs have thin border when -default-background-color is set
Hey everyone. In my application the print out have this very thin border. The -default-background-color is set to #333333 (dark grey) and this is the problem. When I set the color to #FFFFFF (white), the thin borders go away.
When I set the default-backgroun-color to #FFFFFF, my loading screen is white. I don't want that.
Does anyone know how I can have my loading screen with a #333333, but not have the thin border lines around my print outs? Setting the border properties on the printed component doesn't work. The problem is with the background color.
Thanks for reading.
TomStill hacking away at this problem.
I thought I had the fix until I deployed the AIR application. Setting the -default-background-color to white worked fine when running from flex builder, but when I installed the application. The "borders" are still showing.
Has anyone had any experience with this? I'm printing Point of Sale receipts and they look like crap with these lines around them. On top of this, some printers print differently. The HPs print a border around the whole component. The Brother printers just print the left and right. One of my customer's printers just prints the bottom and right borders. -
What is the purpose of the foreground/background color?
I want to know what is the purpose of the foreground/background color in photoshop, am knew to PS, so am just trying to figure what are the purposes of some of these stuff.
Regards,
Jamaine SemplePlease read the Help files. Start with "Creating, Opening and Importing images".
• Select a canvas color option.
White Fills the background or first layer with white, the default background color.
Background Color Fills the background or first layer with the current background color.
Transparent Makes the first layer transparent, with no color values. The resulting document has a single, transparent layer as its contents.
The Foreground Color is chosen for the brush, shapes, etc.
Eventually, you want to read the entire content of the Help files, and maybe, hopefully, a book like " Photoshop Classroom in a Book".
Photoshop is a professional level application that makes no apologies for its long and steep learning curve.
Take a class at a community college. Teaching you Photoshop from the ground up far exceeds the scope of the forum. -
Default background color and Focuslistener disapair on table?
When I imp. TableCellRenderer on my table the default background color and Focuslistener disapair. What can I do to get it back and still keep TableCellRenderer on my table? This is how my TableCellRenderer looks:
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
JFormattedTextField beloeb = new JFormattedTextField();
beloeb.setFormatterFactory(new DefaultFormatterFactory(new NumberFormatter()));
beloeb.setBorder(null);
beloeb.setHorizontalAlignment(JTextField.RIGHT);
if (value != null) {
if (value instanceof Double) {
Double val = (Double) value;
beloeb.setValue(val);
if (val.doubleValue() < 0) {
beloeb.setForeground(Color.RED);
beloeb.setFont(new Font("Verdana",Font.PLAIN, 11));
beloeb.setOpaque(true);
return beloeb;
}I'm sorry to say this is a terrible example of a renderer. The point of using a renderer is to reuse the same object over and over. You don't keep creating Objects every time a cell is renderered. In your example your are creating:
a) JFormattedTextField
b) NumberFormatter
c) DefaultFormatterFactory
d) Font.
So you start by extending the DefaultTableCellRenderer. A JLabel is used to display the text. There is no need to use a JFormattedTextField. All you want to do is format the data. So in your constructor for the class you would create a NumberFormatter that can be reused to format your data. Then your code in the renderer would look something like:
if (value instanceof Double)
Double val = (Double)value;
setText( formatter.format(val) );
if (negative)
setForeground(Color.RED)
else
setForeground(table.getForeground());
}Here is a really simple [url http://forum.java.sun.com/thread.jsp?forum=57&thread=419688]example to get you started -
Change default background color in Dynamic pages
Anyone knows how to change the default background color of a
dynamic content page in WEBDB 2.2?.
I want to display some information with a query in a Dynamic
Content Page but the background color is, by default, beige.
I try to force the the background color placing the html tag
<td bgcolor=#FFFFFF> but there is still a beige strip at the
left side of the table.
ThanksHi Richard,
For about how to inspect page element, you can use IE Developer Tools:
https://msdn.microsoft.com/en-us/library/ie/bg182326%28v=vs.85%29?f=255&MSPPError=-2147217396
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How do I change the workspace background color?
Hi all,
I need to change the workspace background color from the
default mid grey. But I can't find how to do this!
Any ideas!
Thanks in advance, Pedro.Sorry, but there's no way to change it from the default gray.
Linda Rathgeber [PVII] **Adobe Community Expert-Fireworks**
http://www.projectseven.com
Fireworks Newsgroup:
news://forums.projectseven.com/fireworks/
CSS Newsgroup: news://forums.projectseven.com/css/
Design Aid Kits:
http://www.webdevbiz.com/pwf/index.cfm -
Setting a default background color
Hi All,
I would like to set a default background color for all the
components that I'm going to draw. What is the best
way to achieve this?
Thanks.
SyedYou can set using UIManager of the Look and Feel.
UIManger.put("Button.background", Color.blue);
will set the color of all the JButtons to blue. Like that you can change for all the components you need.
Mohan -
Setting the Border background color
Post Author: gravy
CA Forum: .NET
Hi,
Using the API I'm trying to set the Border background color to transparent but I can't. I want to set the background color to match what the designer does when you uncheck the Background option on the Border tab of a TextObjects properties.
Can anyone help?What release are your using?
do you want to set this dynamically, for one portlet or all. you may what to use
'Themes'
"Jorgeana" <[email protected]> wrote:
>
Does someone have a sample of setting the portlet border and background
color ?
I´m having problems using "setPortletBGColor" !! Tks -
Is there any way to get the black background color back in fullscreen mode?
The current background color in fullscreen mode is grey and it's distracting. It used to be black. Is there a way to change the color outside of the document boundaries?
AndyboyMac wrote:
The only way you can get themes for your ipod is by a jailbrake, jailbraking is illegal, and yes,, you can downgrade your iOS.
Jailbreaking is actually not illegal due to exemptions in the DMCA documentation (http://en.wikipedia.org/wiki/IOS_jailbreaking#cite_note-22).
I've got no explanation on to why the trusty interface for the old iPod style app was butchered, unfortunately (I think we're all at a loss, besides someone being given too much free reign). I came here to supplement the original question with, another alternative question:
Is there a way, similar to downgrading 3rd party apps, downgrade the Music app or restore the old iPod app as an additonal app? Without jailbreaking?
< Edited By Host > -
How do I change the default window color?
Having white screens is too bright for my eyes!! I always change the default window color in Windows (hiss hiss) to a light shade of gray and that setting carries thru to all windows (i.e. Word, Excel, notepad....). Is it possible to do a similar thing with Tiger? I see that I can choose between a couple of "schemes" from a "Desktop and Dashboard Settings" area (or similar - i don't have my mac here now so can't look to see the proper name) but I see no way to alter colors within those schemes. If you can tell me how to change the default color for my windows I will be awfully happy. thanks.
Personally, I wouldn't trust it, and I don't hesitate to try these things most of the time even though they sometimes cause problems. But I've used Unsanity products before and they all require installing a preference pane called APE; Application Enhancement module, and that thing caused me lots of problems for my system, lots of crashes and flakiness. I won't use it again.
But I'm sure there are lots of people using it happily, but if you don't feel confident in dealing with system problems stay away from anything that adds a system preference pane or goes up in the top menu bar at the top (Apple icons excepted) or has to start up with the system. -
How do I change the tab background color in Firefox 4?
I just upgraded to Firefox 4. Tabs are now fine black font on dark grey background -- very hard to read. How do I change the tab background color?
I have searched and the closest I can come is some instructions for modifying .css files, and it is not clear that those instructions will impact the tab background color.
Thanks in advance for your help.Similar question asked by TH received another response.
Here is the address of that question and answer:
https://support.mozilla.com/en-US/questions/804464?s=change+tab+color+firefox+4&as=s
I like the solution recommended there.
Added information - after several days experience, I notice that some tabs occasionally revert to the original dark grey. So I am still looking for a better solution, ideally within Firefox rather than via add on. This seems like a basic setting for the browser that should be easy to change, rather than something so complex that I need an add on to change it. Or just build it without such a dark grey background to begin with and I would not need to change it. -
Y Axis label color inherits Pen color and not the default Label color.
Hi,
How do I enforce my Y Axis Label to taken the default color specified in the iChart Y-Axis Label Color property instead of picking it from the Pen color selected from the legend? I have a Y-Axis Label called "Total Stock", I can very well change the Label text using method
document.TestChart.getChartObject().setYAxisLabel("Label from code");
But when I use a similar
document.TestChart.getChartObject().setYAxisLabelColor(Color);
property, I dont see the color change on the screen. But when I get the color using a getYAxisLabelColor() method , the specified input Color is set. My Label in the Y-Axis, always inherits the Pen color of the selected Legend Item, by default the first Item color on Page Load.
Settings done in the iChart:
Use Selected Pen for label : Unchecked
Y Axis Label Color: #000000
Y Axis Label : Total Stock
Show Y Axis Label: Checked.
I appreciate your help,
AjithaJeremy,
I tried the method you mentioned...
document.TestChart.getChartObject().setYAxisLabelColor(document.TestChart.createColor("#000000"));
But I still dont see a change in the Label color.
Another finding is, when I try to alert the Label color on load of the page or during the creation of the applet, I see the label color on the alert is not the pen1color but the default Label color that is set in the display template. I assume that the legend's default selection, overwrites the Label color with the first pen color, but I could not get it with the getYAxisLabelColor() method, even though I see it on the screen.
Thanks!
Ajitha
Maybe you are looking for
-
I downloaded Firefox 4.o exe. When I tried to open it I got an error message stating that it was not a valid Win32 application. I am using windows XP SP3. How do I get it to open?
-
How to get the list of SAP Servers defined in xMII?
Hi, We have a requirement to get the list of SAP Servers defined in xMII and show them in a html dropdown field? We know that we could achieve this by using a custom action block. Is there any way to get this list of SAP servers without using custom
-
Syncing a mediathek between a MAC and a WIN-PC possible with Dropbox?
Hi everybody, Is this a WIN or a MAC question? I try it here first... X) I have a MAC at one place - and a WIN-PC at another place. Both have a Drobox-folder (Dropbox = a sync tool) to keep the data on them in sync. That works like a charm, besides i
-
Replacing the background in a cartoon movie
I have a cartoon that shows the famous Hollywood sign in the background, and I want to replace "Hollywood" with someone's name. Is this possible? I can easily do one frame in photoshop, but does that mean I need to replace every frame or is there an
-
I have created process flow and created and schedule and attached it to the process flow thru configure and refferred calander and depoyed the process flow again. But the flow doesnt start. Is there anything else to do. I read in form that some _job