A style question, and a Cairngorm question!

Style - When I draw on a component with a backgroundColor, why can't I see it?
Cairngorm -
Sometimes I want to use the result directly in a module that I am showing on the screen. For instance, when I query the server for a group of items in a category. However, I can not add an event listener to the cairngorm result in the module (view) itself. Is the appropriate way to achieve this:
1) Dispatch my Event
2) In the result, populate an arraycollection with the items from the category (using a setter, so I can dispatch event)
3) In module, listen for said event
4) Populate tile from this eventhandler
Is this correct?

Well it's pretty simple:
<mx:Canvas id="mainCanvas" backgroundColor="0x000000">
     <mx:creationComplete>
          <[CDATA[
               var g:Graphics = mainCanvas.graphics;
               g.beginGradientFill( GradientType.LINEAR, [0xffffff,0xffffff], [1.0,0.0], [0,255], verticalGradientMatrix( 0, 0, mainCanvas.width, mainCanvas.height );
               g.drawRect( 0, 0, mainCanvas.width, mainCanvas.height );
               g.endFill();
          ]]>
     </mx:creationComplete>
</mx:Canvas>
If I remove the backgroundColor, I can see the gradient. If I leave backgroundColor, I can only see black.

Similar Messages

  • Import styles question

    Hi,
    How to be more specific while import style from external file? I am talking about method:
    Document.importStyles (ImportFormat.PARAGRAPH_STYLES_FORMAT,
                                            myFile[, GlobalClashResolutionStrategy=GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE])
    The goal is to import chosen styles only (one, few of them) nor all of them.
    thx

    As you found out, the method is called "importStyles" not "importStyle".
    One approach is to use the "properties" property to transfer the essentials of any native object.
    Sub-objects such as the various settings and and options of object styles require extra steps, though.
    E.g.
    myStyle.properties = otherStyle.properties;
    You can also create a blank document, import the styles there and remove the non desired ones.

  • [svn:fx-trunk] 9407: Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties .

    Revision: 9407
    Author:   [email protected]
    Date:     2009-08-19 15:11:34 -0700 (Wed, 19 Aug 2009)
    Log Message:
    Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties.  This states test exposed this.
    We should rethink if we want to clear hostFormat rather than have a hostFormatChanged flag.  If there is no hostFormat at measure then it has to be fixed because there is no line break format to check for auto-size.
    QE notes:
    Doc notes:
    Bugs: SDK-22779
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22779
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

    Oh my god, it is too long! You definitely check out types, casting and especially ODP.Net (it does everything for you)... etc. They can help you to simplify your code. I do not have enough time to copy paste it to Studio and understand and solve your issue, so I got title of your message as your main question.
    In Oracle, you can create an autonumber field by using sequences object. This is really useful when you need to create a unique number to act as a primary key.
    Basically you can create a sequence simply typing;
    CREATE SEQUENCE MY_SEQUENCE;
    now you have a sequence called "MY_SEQUENCE"... Then, I advice you select a number from sequence;
    select MY_SEQUENCE.nextval from dual;
    I said I advice actually kinda must, although it called sequence, I cannot be sequential. Do not even try to predict the value. You can be sure that it is unique number so you can use it.
    Then insert you record and use that number part of your primary key. I think that's it. Have fun.

  • Mapping style templates and properties to Actual Style Sheet Classes

    I got this response to an email regarding creating a customized style sheet and thought others might find it useful following is my initial question and the response from David Phipps. If anyone else has input to this conversation please join in.
    Initial question: I'm trying to create a highly customized style sheet and could use a matrix that maps the various properties to the styles that each property affects. I have had some success determining the specific styles that I would like to change but am unable to use the style mill with any efficacy to make those changes. We are attempting to create a single language style sheet with a unique color scheme that matches our branding. One big problem we have run into is that certain styles are called in multiple places with different backgrounds (i.e. breadcrumbText). Any help along these lines that you could provide would be greatly appreciated.
    Response:The CSS style mapping is not terribly satisfying right now; many objects share common CSS styles, which means if you change one tiny thing the whole page changes. We don't have a matrix or spreadsheet or styleguide that lays out the page itself and defines the styles used in each point. However, the stylesheet mill should work for you, and it's possible that what you have going on is a problem with your mill or an incomplete copy of what it generates.
    There are 18 styles in the portal currently; you can actually create new styles and populate them, which sounds like the option you are interested in. The mill is just an ANT script that uses the template files in the templates directory and combines them with the property files in the prop-color and prop-text directories.
    The prop-text files are per language (10 languages); if you check you'll see the values are all the same right now; the idea is you could change the font names or sizes per-language if you wanted to.
    The prop-color files are per style (18 styles). If you want a new set of property values for, say, style 19, you'd add a file called color.19.properties, and the mill would pick that up and generate 190 files (19 styles x 10 languages). It would then add a new line to community-themes.txt, which has a name of each style for each language, based on data it picked up from your new color.19.properties file.
    The real secret is that you only add color style elements you want to override. If you want a specific set of styles to always be available, just add them directly to the appropriate template file (in your case, the portal50.template file) without using the @variable@ in place of actual values. Then you're just adding new style overrides that apply everywhere.
    Finally, you can add arbitrary new properties to your new prtoperties file and use those in the template:
    in portal50.template:
    ..actionbarPortletBg {background-color: @personal.and.interesting.setting@;}
    in color.19.properties:
    personal.and.interesting.setting=#ff9900
    So the CSS mill is just a glorified text replacement tool.
    Remember that the CSS mill works this way:
    - Run make_all.bat if you're not sure and want to insure you've remilled everything, otherwise use make_community_css.bat or make_menu.bat to remill only community styles or those for the jsportalmenus dropdown, respectively.
    - The resulting files are created in ptimages/tools/cssmill/css
    - You have to copy the resulting files by hand to the imageserver CSS location, which is
    ptimages/imageserver/plumtree/common/public/css
    - You have to forcibly stop and restart your imageserver, be it Apache, Tomcat, IIS, Websphere or whatever; no matter what anyone says the new content won't show up reliably until you restart your imageserver.
    You probably know all this and your real problem is the CSS is not specific enough, that is, you can't get individual items to change like you want. We have been working on this, and the new version of the portal will have much more addressable CSS styles, including the ability to specify styles for individual navigation elements, individual pages, and individual portlets. This basically meant rewriting the HTML we generate, of course.
    Since you can override and rewrite chunks of our HTML as well using View Overrides, if you're in a jam we can walk you through how to rewrite specific bits of the UI that are causing you trouble - for instance, the code that generates the breadcrumbs itself.
    David Phipps
    Senior Engineering Manager
    Plumtree Software

    One way to do this is to give the <body> tag an ID. In a template, you need to make the ID attribute of the <body> tag editable.
    You would then have something like this in your style sheet:
    #home.oneColFixCtrHdr #container #navigation li,
    #services.oneColFixCtrHdr #container #navigation li,
    #about.oneColFixCtrHdr #container #navigation li,
    #contact.oneColFixCtrHdr #container #navigation li,
    #testimonials.oneColFixCtrHdr #container #navigation li,
    #links.oneColFixCtrHdr #container #navigation li
    background-color:
    #66ccFF;
    border-bottom-width: 1px;
    border-bottom-style:
    solid;
    border-bottom-color: #FFFFFF;

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • Is it possible to get the style, font and related info of a paragraph of a in design file and write it on the same in design file  on the  left side

    Is it possible to get the style, font and related info of a paragraph text  of a in design file and write  all the stuff on the same in design file  on the  left side with small fonts 
    as
    Lets  this is a text in in design file    :
    style : abc                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 12                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu
    style : xyz                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 10                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu

    Hi Poojith
    Not sure if this would solve your requirment but just in case might be helpful:
    1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
    [http://www.sapdesignguild.org/resources/htmlb_guidance/]
    2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
    Thanks
    Deepak

  • I've got a payg sim: i've been given an iphone 3g, and when i connected it to my mac and itunes, a message told me that the sim was :not compatible" with the iphone. is this because, as i've been told, my card is an old style sim and i need the newer styl

    i've got a vodsaphone payg sim: i've been given an iphone 3g, and when i connected it to my mac and itunes, a message told me that the sim was :not compatible" with the iphone. is this because, as i've been told, my card is an old style sim and i need the newer style that works In smart phones? if so, how do i go about getting the right card.

    Contact your carrier & get a new sim...they should give you one for free.

  • I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postco

    I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postcode.  What can i do to complete the payment and get photoshop!

    As far as I know, your registered location and your credit card information must match... but,
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • [AS-CS5] Comparison between text style range and character style

    Hi,
    It's been a while since I'm not coming on this forum ...
    I'm looking to make a comparison between a "text style range" and a character style.
    I have no problems, except for the comparison of "fonts".
    myCurrentText = text for char…
    theStyle = character style id…
    I try:
           if (applied font of myCurrentText ≠ applied font of theStyle) then set theCharDifference to 1 
    The selected text give me:
           font "Minion Pro        Italic" of application "Adobe InDesign CS5.5"
    and the character style:
           "Minion Pro"
    I try "set theTextFont to font of applied font of myCurrentText" -> Error
    This is my script (it's too long to post here) <http://db.tt/BLoGPiN>.
    Loot at the "on CheckCharacterDifference(myCurrentText, theStyle)"
    TIA.
    Oli.

    I've written this, but I do not know if it covers all cases ...
    Someone?
    Thanks.
    Oli.
    set theText to item 1 of selection
    set theStyleChar to properties of character style 2
    -- analysis of the properties of the text
    set myTextFontApplied to applied font of theText
    set myTextFontFamily to font family of applied font of theText
    set myTextFontStyle to font style of theText
    -- analysis of the character style
    set myStyleCharFontStyle to applied font of theStyleChar
    if myStyleCharFontStyle = "" then
         set myStyleCharFontStyle to font style of theStyleChar
         if myStyleCharFontStyle ≠ myTextFontStyle then set theDifference to true
    else
         if myStyleCharFontStyle ≠ myTextFontFamily then set theDifference to true
    end if
    Message was edited by: OlivierBerquin

  • FEATURE REQUEST: After Effects style Placeholders and Proxies

    If you feel the needs in efficient proxy workflow, welcome to the club and don't hesitate to submit feature request.
    Here is the adjusted to less than 2000 symbols feature request text:
    ***After Effects style Placeholders and Proxies*** 
    It would be nice if PrPro offered AE style Placeholders and Proxies workflow. There are cases, where they are extremely useful, e.g.:
    1. Huge modern formats and resource hungry codecs. Not all machines can easily handle 2k or 4k footages, some can't get real time playback even with AVCHD. Not to mention that CinemaDNG importer was discontinued partly because of inability to get real time playback in PrPro. The issue can be resolved via rendering previews, but that's not always the most efficient workflow.
    2. In multicam editing issues mentioned above increase dramatically. Rendering preview for every camera angle is simply impossible. Although PrPro offers offline clips workflow, an editor can't easily see if the clip is currently linked to a source footage or a proxy, and switching between sources and proxies involves several steps every time one needs to switch: selecting assets, making them offline, right-clicking again to link to other media, locating files on a disk; while in After Effects it's just one click once a proxy is set.
    3. Adobe Dynamic Link. PrPro communicates with AE projects via single instance of headless AE, which creates a bottleneck and entails the need to render DI for complex comps. Although AE allows to set DIs as proxies and, hence, enjoy the best of both worlds, instantly switching between DI and dynamically linked comp and no needs to replace anything in PrPro timeline, with hundreds of dynamically linked comps PrPro timeline becomes unresponsive and takes forever to render (for my rig test 30 min sequence built out of 935 dynamically linked comps, which are just source footages in their own comps, hence, the equivalent to rendered DIs set to proxies, takes around 27 hours to render, while 30 min sequence built out of the same 935 source footages renders in real time). Meanwhile, PrPro doesn't currently allow to link offline dynamically linked comps to rendered DIs.

    As the person who maintains the feature request database for After Effects, I can confirm that the number of times an item has been requested is a major factor when we consider what to work on next. So are other factors, such as how hard the feature is to implement and maintain, how much testing is involved (often the larger concern than programming time), whether the request conflicts with something else that we are already working on, and so on. It is true that we consider not just raw numbers of requests but the details of who is making the requests---e.g., whether the requests are coming from animators or compositors, beginners or experts.
    I can only speak for the After Effects team, but the Premiere Pro team works much the same way (which is unsurprising, since we are in the same group and have overlapping team members).
    We also try to give some visibility into the most requested items with posts like this:
    http://blogs.adobe.com/aftereffects/2012/12/top-feature-requests-for-after-effects-in-2012 .html

  • Style, technique, and best practices question

    I have a database containing a number of products (say 1000).
    These
    products are categorized into 5 different categories.
    I want to deal with these products in ways that lead me to
    wonder the
    following -
    1. Is it better to have multiple recordsets (one for each
    category), or to
    have a single recordset loaded into an array which can then
    be manipulated
    on the page, e.g.,
    $blah = array();
    do {
    $blah[] = $row_recordset;
    } while ($row_recordset = mysql_fetch_assoc($rsrecordset));
    2. Also, at present I have this method implemented like this
    <?php
    $tester = array();
    $socketTester = array();
    $adapter = array();
    $accessory = array();
    do {
    if (($row_rsTesters['ItemCatID']) == 4) { $tester[] =
    $row_rsTesters; }
    if (($row_rsTesters['ItemCatID']) == 6) { $socketTester[] =
    $row_rsTesters; }
    if (($row_rsTesters['ItemCatID']) == 2) { $accessory[] =
    $row_rsTesters; }
    if (($row_rsTesters['ItemCatID']) == 3) { $adapter[] =
    $row_rsTesters; }
    } while ($row_rsTesters = mysql_fetch_assoc($rsTesters));
    ?>
    Could I do it with a single array key, instead of multiple
    arrays?
    <?php
    $products = array();
    do {
    if (($row_rsTesters['ItemCatID']) == 4) { $products['tester']
    =
    $row_rsTesters; }
    elseif (($row_rsTesters['ItemCatID']) == 6) {
    $products['socketTester'] =
    $row_rsTesters; }
    elseif (($row_rsTesters['ItemCatID']) == 2) {
    $products['accessory'] =
    $row_rsTesters; }
    elseif (($row_rsTesters['ItemCatID']) == 3) {
    $products['adapter'] =
    $row_rsTesters; }
    } while ($row_rsTesters = mysql_fetch_assoc($rsTesters));
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================

    On Wed, 12 Dec 2007 10:15:55 -0500, "Murray *ACE*"
    <[email protected]> wrote:
    >I want to deal with these products in ways that lead me
    to wonder the
    >following -
    >
    >1. Is it better to have multiple recordsets (one for each
    category), or to
    >have a single recordset loaded into an array which can
    then be manipulated
    >on the page, e.g.,
    Manipulated? What is it you want to achieve? Generally, I'd
    say a single
    query, resulting in a single recordset, would be more
    efficient than
    several queries to the database, but how you'd do it would
    depend on
    your goal.
    Gary

  • Indesign Grep style question

    Hello,
    I have a question about Indesign. I want to make the text after a certain character like a hair space for instance bold. This must be set in a paragraph style. I think this can be done with GREP styles. I have tried several things but it doesn't make sense to me.. Does anybody know if this can be done or is there a better way to do this?
    Thanks!

    Apply 'bold' character style to text:
    (?<=~|).

  • Basic font style question

    Generally, would you characterize serif fonts as more traditional, and sans serif fonts as more contemporary?
    Thanks.

    Too general a question and too broad a generalization.
    Get a book (or a few) on typography. There are oldstyle and modern typefaces in both serif and sans-serif.
    JET

  • STYLE="" Questions

    Hi --
    I am attempting to build my first "Flash" Form in ColdFusion
    8
    and I can not figure out how to trim space around items. For
    example, I have an accordion with two pages. I have two
    buttons
    on each page. I want the buttons to be flush with the top and
    left of the accordion page, and I have tried various settings
    in the style="" attribute such as marginLeft, horizontalGap,
    etc. in both the <cfformgroup type="accordion"> and
    then
    <cfformgroup type="page"> but in all cases the buttons
    do not
    move any closer to the left. I have tried negative values as
    well as 0.
    To better demonstrate what I am trying to accomplish, below
    is
    my code with no styles applied.
    <cfform name="myform" format="Flash" width="220">
    <cfformgroup type="accordion">
    <cfformgroup type="page" label="Accordion 1">
    <cfinput type="button" value="button1" name="button1"
    width="180">
    <cfinput type="button" value="button2" name="button2"
    width="180">
    </cfformgroup>
    </cfformgroup>
    </cfform>
    But I can not figure out which (if any) settings in the
    STYLE=""
    tag will create the desired output.
    Any input would be greatly appreciated.
    Thanks
    Rich

    To be certain Contact your local Xperia care
    http://www.sonymobile.com/global-en/support/contact-us/
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Cfselect flash "style" question

    I'm using the <cfselect> tag with Flash formatting. The
    size attribute is set to 3. I'm using whatever the defaults are for
    the style attribute. When the cfselect renders to the screen, the
    spacing between the items in the select control is too much. I
    can't figure out how to make the spacing smaller. I have quite a
    few of these controls in my form, and it's making the overall form
    way too long. Any suggestions?
    Gracias! Pam

    Try a cfformgroup type="horizontal" with horizontalGap=-2 @
    the style"" property, with your cfselect without label"" and
    cfformitem type="text" for the label. OR Try the same
    type="horizontal" and set a width for the cfformitem type="text"
    for the label. Oh, by the way do you know how to make a jump menu
    with a cfselect with a cfform format="flash"? Sorry to ask but I'm
    trying this for 2 days in a row now...thank you

Maybe you are looking for

  • Wi-fi stopped working

    I got my ipod touch last Wednesday and had a bit of trouble trying to get it to connect to my router. After messing around with the IP's a bit I got it to work; but yesterday it stopped working again. I've tried changing the settings again but nothin

  • Clicking noise when opening lid??

    i recently got an incase protective case for my macbook pro that i got back in december. the clicking seems to be coming from the back side (where the lid is attached to the body) and only when i open it from completely closed. did i put the case on

  • Multiple contact lists: how do I merge them into one main list?

    Hi there PLEASE HELP! I travel between two African countries regurlarly, and every time I do, I have to swap simcards (I do not roam). But, everytime I do, I find a new contact list has been created somehow in my Contacts. I have about 7 entries now

  • Problem in length display of the infoobject?

    Good morning Folks, I got an issue with the output length of the infoobject(say - zlmpred - Char(60)). BW Version - 3.5. For this infoobject am using a transfer routine to populate the data from flatfile. Something like this, if TRAN_STRUCTURE-/BIC/Z

  • WRT160N Dropping signal when I connect.

    I have roughly 5-7 things utilizing the router but when ever I connect with my laptop all the devices lose internet for about 2 minutes but then all including my laptop work fine. This is very annoying because it happens whenever I take my laptop out