Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Flex 4.5 - Title Window CSS

Posted on 2011-10-27
2
Medium Priority
?
1,649 Views
Last Modified: 2012-08-14
I'm trying to style the title\header of a TitleWindow, without any success.

Currently converting from 3.5 SDK to the 4.5.1 SDK and the style isn't working.

I had the following CSS in the 3.5 version:

.TitleWindowPopUp {
      modal-transparencyBlur: 0;
      modal-transparency: 0.85;
      modal-transparencyColor: black;
      corner-radius :10;
      border-color :#666666;
      title-style-name : "TitleWindowPopUpTitle";
}

.TitleWindowPopUpTitle{
      font-family :Arial;
      font-size :14;
      font-weight :bold;
      color :#ffffff;
}


The following is the new CSS for the 4.5.1 version:
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

s|TitleWindow {
      title-style-name: "TitleWindowPopUpTitle";      
      fontSize: 12;
      fontFamily: Arial;
      backgroundColor: #c8c8c8;
      cornerRadius: 10;
      borderColor: #666666;
      modalTransparencyBlur: 0;
      modalTransparency: 0.85;
      modalTransparencyColor: black;
}

.TitleWindowPopUpTitle{
      fontFamily: Arial;
      fontSize: 14;
      fontWeight: bold;
      color: #ffffff;
}

For some reason the "title-style-name" is not recognized. Something is obviously different when it comes to the Title Window Title\Header.

Thanks in advance.
0
Comment
Question by:nbtnotes
2 Comments
 
LVL 29

Accepted Solution

by:
dgofman earned 1500 total points
ID: 37042900
Why are you not uding mc:TitleWindow? For spark component you should create a skin is not CSS base
0
 

Author Closing Comment

by:nbtnotes
ID: 37044527
I actually just figured out how to make a skin. I'm playing around with it and it seems very powerful.

As of right now I have a combo of a skin and css.

Thanks for the help.
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

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

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…
Dropbox has a relatively new feature called Smart Sync.  This feature allows Dropbox Professional (not plus) and Dropbox Business (if enabled) users to store information in Dropbox WITHOUT storing any files on their computer.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

564 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