How does one define a default style for a custom Flex component?

How does one define a default style for a custom Flex component?
hello
I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
How can it be achieved?
As follows
slib.swc contains a CLabelEx components, and a defaults.css file
defaults.css source file as follows:
@ namespace s "library :/ / ns.adobe.com / flex / spark";
@ namespace mx "library :/ / ns.adobe.com / flex / mx";
@ namespace cn "http://os.slib.cn";
cn | CLabelEx
        styBackgroundAlpha: 1;
        styBackgroundColor: # 569CC0;
        styBorderAlpha: 1;
        styBorderColor: # 569CC0;
        styBorderWeight: 1;
        styCornerRadius: 3;
In slib.swc the application MyLabel.mxml of the source file as follows:
<? xml version = "1.0" encoding = "utf-8"?>
<s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                           xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                           xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                           xmlns: cn = "http://os.slib.cn
                           the minWidth = "955" The minHeight = "600">
        <fxeclarations>
        </ fxeclarations>
        <cn:CLabelEx x="67" y="112"/>
</ s: Application>
I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
I refer to above approach, but failed to achieve. Can you please re-Detailed
Thanks!

dj is right. Any Folder can be a picture folder.
Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
Message was edited by: Rikk Flohr forgot the instructions...

Similar Messages

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • How does one give out enough spaces for a column in SQL report ?

    How does one reserve enough spaces for a column in SQL report ?
    Ex: 2 columns defined as the following
    projectNo varchar2(10)
    ProjectName varchar2(50)
    When create an sql report, the report heading will show below. If my project name is " Tire Strength Test At Site R987654" . I need to get it to show in one line since it was defined as varchar2(50)
    projectNo     ProjectName
    A0001         Tire Strength
                  Test At Site
                  R987654 There got to be a way to get around here . Thanx in advance.
    tai

    I noticed the CSS Style settings only seem to work if using a "Standard Report Column". Unfortunately I have the need to define some report columns where undesired wrapping occurs as "Display as Text (based on LOV, does not save state)" and tried to avoid wrapping, but no luck - is there a way around this (other than performing the report query using a huge DECODE clause, which somewhat renders the LOV useless except for data entry)?
    Thanks in advance for any ideas,
    Holger

  • How can one set a default location for the pictures on the hard drive?

    Since Windows normally places the pictures on a typical drive as "My Pictures" about four or five levels down from the root, any effort to import picture files into Lightroom requires multiple clicks to drill down to the "My Pictures" then (for example) year, month, date, etc.
    Can I define a location as the default starting point to find the pictures?  I don't see how to put that into presets. Or can a key shortcut be created to go straight to c:/users/name/mypictures/2013/April15 etc?
    Steve Board

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • Where does one change the default formatting for a URL (href)

    I want to have change the appearance of my href="#" tags so that they are not blue and underlined
    Want to do that with a CSS
    Do not know where to find and change the default setting in DW CS5 so that I make the changes globally
    Could I have different styles of href="#"?
    In the property list under what name is it in?
    Thanks
    erik

    Best practice would be to create an external style sheet and link to it in the <head> like this:
    <link rel="stylesheet" media="all" type="text/css" href="style_sheets/main_styles.css" />
    of course edit for your folder structure and file names.
    But you could test various styles by placing them in the <head> directly, like this:
    <style type="text/css">
    <!--
    a:link {
    color:#ffffff;
    text-decoration: none;
    a:visited {
    color:#ffffff;
    text-decoration: none;
    a:active {
    color:#ffffff;
    text-decoration: none;
    a:link:hover {
    color:#ffffff;
    text-decoration: none;
    a.home:link {
    color:#0099FF;
      text-decoration: none;
    a.home:visited {
    color:#0099FF;
      text-decoration: none;
    a.home:hover {
    color:#0099FF;
      text-decoration: none;
    a.home:active {
    color:#0099FF;
      text-decoration: none;
    -->
    </style>
    More info on how to include CSS:
    http://www.w3schools.com/css/css_howto.asp
    Best wishes,
    Adninjastrator

  • How does one specify command line switches for a Helper Application in Mozilla Firefox?

    Greetings,
    I would like to have a certain batch file to be executed when downloading torrent files unfortunately the Select Helper Application dialog does not allow to add command line switches. I did find a workaround to achieve this. In the Select Helper Application dialog browse to the folder which contains the batch file, type the file name including the file extension of the batch file and click on Open.
    Though, this is not the way I would like to execute the batch file. I need to pass some additional command line switches to the command interpreter but I cannot seem to find a way how. Any suggestions or clarifications would be much appreciated.
    Thanks for your time,
    Joeri

    Hi Joeri,
    This is possibly slightly off topic for this forum as it relates to something more than the standard use of Firefox. Although I do not know the answer myself someone else may post later. Otherwise try somewhere else my suggestions are:
    *The mozillazine fora tend to discuss a wider range of subjects and technical details <br/> http://forums.mozillazine.org/index.php
    *Also it may be worth asking on the Add-on forum <br/> https://forums.mozilla.org/addons/
    *Note a general information kb relating to downloads is
    ** http://kb.mozillazine.org/File_types_and_download_actions
    ** and for anyone with simpler questions [[Unable to download or save files]]
    If you do solve this I hope you post back with the answer and a link to the relevant information.
    Good luck with finding a solution, John

  • How does one change the date format for PlayMemories Home folders?

    I am using PlayMemories Home Version 2.0.00.11271 and have many folders within it which contain only photographs imported from my Sony DSC-H9.  Unfortunately, PlayMemories Home insists upon dating all folders in a month/day/year manner; and this makes little sense if one wishes to have the folders listed in logical chronological order.  How can I change the date format to year/month/day?  Changing the name of each folder, one by one, will take a very long time!  Your helpful advice in this matter will be greatly appreciated.  Thank you. System information:
    Operating system: Microsoft Windows XP Professional
    Service pack : Service Pack 3
    Memory: 1.5 GB
    Processor:         Intel(R) Pentium(R) M processor 1.86GHz
    Max. clock speed: 1.86
    Manufacturer: IBM
    Model: 1847W76
    System language setting: English (United States)
    User language setting: English (United States) 

    I too thought that the folder naming format was obviously wrong and couldn't find a way to change it. I do agree that placing photos in folders according to when they were taken is a great idea. I had been considering writing some software to do just that. After discovering that PlayMemories does it, I had it re-import all my photos. Then I wrote a small Perl script to rename all of the folders into year-month-day format. Included here is the Perl script. It only acts on a single folder - use it on the root folder where all the PlayMemories folders are. It will rename all folders currently in a month-day-year format. I used it without problems but of course there is no guarentee that it is error free. This should work with any common version of Perl. Tom # There should be one command line argument: the directory to act upon
    if ( scalar(@ARGV) == 0 ){
     print "Usage: RenameDirs <dir>\n";
     print " Where dir is the directory containing the directories to rename.\n";
     exit;
    $mydir = $ARGV[0];
    chdir $mydir or die "Couldn't chdir to $mydir: $!";
    opendir(ROOTPHOTODIR, ".") or die "Failed to open the pictures directory $mydir: $!";
    @allphotodirs = readdir ROOTPHOTODIR;
    closedir ROOTPHOTODIR;
    foreach $dir (@allphotodirs) {
     if ( -d $dir ) {
      print "$dir is a directory";
      if ( $dir =~ /^(\d{1,2})-(\d{1,2})-(\d{4})$/ ) {
       print " and has the proper format: month $1 day $2 year $3 and will be renamed to ";
       $newname = sprintf "%4u-%02u-%02u", $3, $1, $2;
       print "$newname\n";
       rename $dir, $newname or die "failed to rename $dir to $newname: $!";
      else {
       print " but is not of the proper format\n"
     elsif ( -f $dir ) {
      print "$dir is a file\n";
     else {
      print "$dir is neither a directory nor a file\n";
    }

  • How does one change the default iMessage font?

    from Helvetica 12 to anything else other than going to format>show fonts which seems to only temporarily alter the font?

    Hi,
    You cannot access the two settings indicated ?
    The Font Option allows choice of Font
    You can colour the "Balloons" as in my Pic and you can also colour the Font.
    I am trying to think of any reason why you may not be able to change but cannot think of any.
    Possibles
    Parental Controls does exclude you from changing some things in the Preferences (mostly in the Accounts pane and Privacy for AIM names).
    If you did not own the .plist this info is kept in there might be issues but I cannot say I have seen them before.
    8:36 PM      Monday; October 22, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How does one update original airport card for WPA?

    Hi, I've an earlier AX, and an original airport card that I understand can be updated to be able to be WPA compatible. How do I do this? The AX is setup for WPA/WPA2 personal, and I have no trouble joining the network from other macs, and I just learned that the original airport card is supposedly able to be updated to also handle WPA. This card is installed on a g3 imac 700 se with os 10.4.11.
    I also posted this question in the airport express forum, but thought it may have a better chance of being answered here after I thought about it a bit.
    Thank you,
    ez

    You can't get it to do WPA2.
    You can get it to do WPA if you have the right software installed, which you probably already do:
    AirPort Card: When You Can Join a WPA Network
    The base station or equivalent has to be set up for 802.11b/g that is BOTH b and g, since the \[original] Airport card is 802.11b.

  • How does one do this banner style in flash?

    http://www.billabong.com/au/
    Love it how they do that, are there websites where you can get a template and just insert your own pics? Or is there anyone who can help!?
    Cheers

    Try active den. very cheap and a bunch to choose from
    http://activeden.net/searches?term=banner+rotator&type=files

  • How does Apple define a "New User" for iCloud?

    I have iCloud on my computer, on my iPad2 and on my iPhone4 since it existed. And now I get a message saying that "Due to high demand, iCloud is not available for new users. Try again later."

    That's fixed it
    T code SA03
    Thanks & points awarded...
    Steve

  • How does one create a photo book of a custom size? Only option available is 11x 8.5 inches

    Please help me with the basic steps for creating a photo book in pse12 of a custom size e.g. 12x15
    I want to create design using pse12 and get the album printed by a local vendor. Please help. I am stuck with the fixed size offered by Adobe.
    I want to create Photoshop photo book in order to spread out few single images on 2 sheets. I won't be able to do the same if I create pages separately.
    Thanks in advance.

    Aha. You can't have two different page sizes in one single document.
    You are right, you could do it with three separate documents, and 'glue' them together using a Book document. It's far easier to place a blank placeholder page in your actual document, and create a new doc just for the oversized page.
    When the time comes to produce a final file (hopefully, a PDF), you can leave it as is -- two separate documents --, or use Acrobat to stitch the larger page into the main document (at the request of your printer).

  • Safari on Windows. How does one change default spelling dictionary?

    How does one change the default spelling dictionary for Safari on Windows? For the Mac, it changes in response to the default locale, but on Windows, it just sets to American English and you cannot change it anywhere I can see. All my locale information in Windows is set to UK English.
    In fact on some websites, like this one, the spelling checker seems to be disabled! I'm on Windows 7 64-bit, BTW, running Safari 5.1.7
    Message was edited by: Grant Wray

    I think I just found the answer (though I don't know why the interface is buried this way). Find a word that the American spell check is flagging, right click on it, select Spelling and Grammar, and then select Show Spelling and Grammar. Make sure that the language listed at the bottom says British English (not my choice of what to call it, so please don't blame the messenger).

  • How does one install non-English character sets for use with the "find" function in Acrabat Pro 11?

    I have pdf files in European languages and want to be able to enter non-English characters in the "find" function. How does one install other character sets for use with Acrobat Pro XI?

    Have you tried applying the update by going to Help>Updates within Photoshop Lightroom?  The update should be using the same licensing?  Did you perhaps customize the installation location?  Finally which operating system are you using?

  • How does one find one's securuity code?

    How does one find their security code for purchasing with their I Pads?

    I assume that you mean the security code to go with your credit card, in which case it's the 3 or 4 digit code that is quite often on the back of the card on the signature strip : card security code.

Maybe you are looking for

  • Macbook Pro and Multiple Monitors

    Hi, I was considering on making the move to apple and getting the macbook pro.I multi-task a lot with my machine and was thinking of buying 2 20" apple cinema display's.Is their a way of connecting my macbook pro to the 2 cinema displays and to a 32"

  • Problem in bios update lenovo g580(20150)

    i installed windows 8 and install drivers and download bios update from lenovo support . After run bios update , my laptop restarting automatically . After restart bios nor running and try to booting from network by IPV6 and IPV4 , and after seconds

  • Error in Display Fields

    A New issue arised. We have successfully executed an input schedule on our side. Here, the values entered in Display field Areas cannot be send and we get a Popup saying that "There is no data to refresh" But surprisingly, the same input schedule exe

  • FAQ: Installing Elements 10, or What do all these disks do?

    When you purchase Photoshop and/or Premiere Elements 10 as a boxed product, you get a fair number of disks. The main reason for this is that a boxed product purchase of Elements is dual platform, that is, it's for both Windows and Macintosh. When dea

  • Is it possible to redirect to same port two NICs

    Dear members, I have to setup my Solaris10/Apache server with two NICs, then I want to redirect the 80 port to another port like 777 for both of NICs. I mean, all the NICs should listen the 777 port and redirect incoming packets to 80 port. I tried t