Solved

Default backgound color

Posted on 2008-10-09
1
299 Views
Last Modified: 2008-10-10
Lets say you want to set the background color of your application to this

Application.application.setStyle("backgroundColor",0xFFFFFF);

what what i want to do is also set the background color to the default gradient look how would i do this.
0
Comment
Question by:stargateatlantis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 22684692
Application.application.setStyle("backgroundGradientColors",[0XFF0000,0X00FF00]);

Personally I try to avoid using Application.application:
StyleManager.getStyleDeclaration("Application").setStyle("backgroundGradientColors",[0XFF0000,0X00FF00]);

If you've set the backgroundcolor and just want it back to default, set it all to undefined

Application.application.setStyle("backgroundColor",undefined);
Application.application.setStyle("backgroundGradientColors",undefined);
//or
StyleManager.getStyleDeclaration("Application").setStyle("backgroundColor",undefined);
StyleManager.getStyleDeclaration("Application").setStyle("backgroundGradientColors",undefined);
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flex / Air app - moving the dataservices around 2 341
debugger flash 10 624
Flex Mobile - check current view 2 911
displaying tif image on flex side 1 311
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Building a cohesive image for your brand is vital to making an impression on consumers. When the economy is tough, brands do better than unbranded  products. This can have a huge impact on your long-term profits, as the economy goes up and down.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question