Mask appears correct in design view but not runtime

I have a component that the designer did as an elaborate thermometer in photoshop, I am trying to replicate it in flex so that I can set the size of the thermometer with code. I have it set up as a custom component (code below), in design view looks like (enlarged):
But when I run the app where I am using the component, the green bar is missing:
Here's the code. Why would this be?
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
           xmlns:s="library://ns.adobe.com/flex/spark"
           xmlns:mx="library://ns.adobe.com/flex/mx" width="180" height="20">
     <s:Group top="0" left="0" right="0" bottom="0" >
          <s:Rect top="0" left="0" right="0" bottom="0" radiusX="8">
               <s:fill>
                    <s:SolidColor color="#fbe5a1"/>
               </s:fill>
               <s:stroke>
                    <s:SolidColorStroke id="bdr" weight="2" color="#ffffff"/>
               </s:stroke>
          </s:Rect>
          <s:Group top="0" left="0" bottom="0" right="0">
               <s:Rect id="thermo" top="0" left="0" bottom="0" width="80">
                    <s:fill>
                         <s:SolidColor color="#bfe994" />
                    </s:fill>
               </s:Rect>
               <s:mask>
                    <s:Group>
                         <s:Rect top="2" bottom="2" left="2" width="178" radiusX="8" radiusY="8">
                              <s:fill>
                                   <s:SolidColor color="#000000"/>
                              </s:fill>
                         </s:Rect>
                    </s:Group>
               </s:mask>
          </s:Group>
     </s:Group>
     <s:Rect top="2" left="2" right="2" bottom="2" radiusX="8" radiusY="8">
          <s:filters>
               <s:DropShadowFilter alpha=".3" blurX="12" blurY="12" distance="2" inner="true" knockout="true" />
          </s:filters>
          <s:fill>
               <s:SolidColor color="#fbe5a1"/>
          </s:fill>
     </s:Rect>
</s:Group>

FWIW, setting it like this seems to work:
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
           xmlns:s="library://ns.adobe.com/flex/spark"
           xmlns:mx="library://ns.adobe.com/flex/mx" width="180" height="20" creationComplete="group1_creationCompleteHandler(event)">
     <fx:Script>
          <![CDATA[
               import mx.events.FlexEvent;
               import spark.components.BorderContainer;
               protected function group1_creationCompleteHandler(event:FlexEvent):void
                    var bc:BorderContainer = new BorderContainer();
                    bc.width = ds.width;
                    bc.height = ds.height;
                    bc.setStyle("cornerRadius", 8);
                    bc.y = 2;
                    bc.x = 2;
                    bar.mask = bc;
          ]]>
     </fx:Script>
     <s:Group top="0" left="0" right="0" bottom="0" >
          <s:Rect top="0" left="0" right="0" bottom="0" radiusX="8">
               <s:fill>
                    <s:SolidColor color="#fbe5a1"/>
               </s:fill>
               <s:stroke>
                    <s:SolidColorStroke id="bdr" weight="2" color="#ffffff"/>
               </s:stroke>
          </s:Rect>
          <s:Rect id="bar" top="0" left="0" bottom="0" width="80">
               <s:fill>
                    <s:SolidColor color="#bfe994" />
               </s:fill>
          </s:Rect>
     </s:Group>
     <s:Rect id="ds" top="2" left="2" right="2" bottom="2" radiusX="8" radiusY="8">
          <s:filters>
               <s:DropShadowFilter alpha=".3" blurX="12" blurY="12" distance="2" inner="true" knockout="true" />
          </s:filters>
          <s:fill>
               <s:SolidColor color="#fbe5a1"/>
          </s:fill>
     </s:Rect>
</s:Group>

Similar Messages

  • How come I can see my div in design view but not in live view

    Hi,
    I have a div ID called "portfolio" that I can see in design view but not live view or on a browser. It's a little pink square and I want that square round also.
    I ran it through validator. It picked up some things in the style.css which I changed and the boilerplate.css that I did not. Because I thought DW auto creates code for boilerplate because I don't enter that code myself.
    It's also rejecting a lot of webkit code but this seems like standard webkit code that works elsewhere on the page.
    BTW: at what point does this brutal hand coding pay off in money and less heartache when Wordpress looks cleaner and is so much easier to use? I feel like I barely know HTML or CSS in terms of translating vision to reality and with all-browser functionality after months and months of on-line classes. How long are the pros at it till they reach a watershed point?
    here's my address: http://www.adjacentdimensionsmedia.com/home.html
    Here's my html:
    <body>
      <div class="gridContainer clearfix">
        <div id="div1" class="fluid"><img src="adtitle2.png" width="700" height="80" alt=""/></div>
      <div class="fluid"><div class="box-shad"><a href="index.html"></a></div>
      </div>
        <div id="portfolio">Portfolio</div>
    </body>
    Here's my CSS:
    .box-shad {
      margin-top: 200px;
      margin-left: 100px;
      width: 900px;
      height: 700px;
      display: block;
      background-image: url("images/Big-tree-trans1.png");
      background-size: 900px 700px;
      -webkit-box-shadow: 15px 15px 15px #000000 inset;
      box-shadow: 15px 15px 15px #000000 inset;
      -webkit-border-radius: 50%;
      border-radius: 50%;
      position: fixed;
    .box-shad a {
        display:block;
        width:900px;
        height:700px;
    #portfolio {
      width: 100px;
      height: 100px;
      margin-top: 0px;
      margin-right: 200px;
      margin-left: 200px;
      margin-bottom: 0px;
      border-radius: 75%;
      -webkit-border-radius: 75% 75%;
      background: pink;
      top: -300px;
      position: relative;

    The top:-300 is putting that div above the top of the browser viewport. Fix that and you'll see the div.

  • Websafe fonts changing in design view, but not in browsers

    ive currently got a website with font thats extremely hard to read for my real estate company.  I can change it in dreamweaver just fine and it shows in design view, but upon previewing in a browser it does not work, just reverts back to the old horrible font.  Any suggestions here??
    im trying to change the font family to
    Tahoma, Geneva, sans-serif
    thank you in advance!

    There's only one h2 heading on each of those pages e.g. 2001 Update: Banks Charging....
    The other subheadings (What is the payout penalty...) are a mishmash of <p> tags, <span> tags and CSS styles.
    However, the font appearance and word spacing in those subheadings is controlled by the extensive use of the Cufon font replacement technique.
    In the Cufon Javascript file,
    http://www.definitiveinvestments.ca/js/cufon-replace.js
    the <h2> font is replaced with Bebas http://www.dafont.com/bebas.font
    Cufon.replace('h2, h3, .title3', { fontFamily: 'Bebas' });
    By hard to read, are you referring to the word spacing?

  • Why page looks fine in Design view but not live view?

    I am new to DW. I created a page that looks fine in design view but now I cant get it to show up in live view or the browser preview. Can some one give me some areas to troubleshoot. Most of the code is from a previous page I created that still looks fine in every view. I am not sure what I could be doing different in setting up this site.

    Thanks for taking the time to reply to question. Aftr taking a break. I came back realized I inserted the stylesheet before I changed site settings. I just needed to remove the forward slash from my stylesheet declaration. FYI for anyone else new to DW: if stuffs not showing  in Live View and Browser Preview eg background images, Go to Manage Sites and check your site setting for Links relative to: You may have switched between document and site root. Thus breaking your links to images or in my case the entire style sheet.

  • Why is Image in design view but not in browser?

    Why when I insert an image from root folder it shows in design but not in live view or browser? I have opened a new blank html page and still no image will show up.

    Do you have an editable region in your main Template head tags?
    Just so you know.  Making a template out of an HTML document is just about the last step in your design process.
    First build your prototype.html page so that everything performs well in all browsers.  When you're completely satisfied with how it looks, then Save As Template.dwt.
    Add editable regions for content that will change from page to page.
    Spawn New page from template and save as index.html for your home page.  Repeat for other site pages.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Cross Reference Sources appearing in Story Editor view but not appearing in the Cross Ref pane

    I have imported a Word document containing working cross references into an InDesign document. The vast majority of these cross references import correctly and link to their destinations within the document, however there are some that are not working. If I view the text frame in the story editor view, I can see these "broken" cross reference sources that came in from the Word doc but on selecting them I can see that there isnt a corresponding entry for it in the cross reference pane. As said, there are only a few that are behaving like this.
    What could be causing these not to appear in the cross reference pane?
    Obviously as they are not appearing in the list of cross references I can't update them, and also, as they are technically broken cross references, because a source exists for them but there is no corresponding entry in the pane, then on export to epub, InDesign crashes (If there is one broken cross reference in a document, export to Epub will crash indesign).
    Also, to clarify, in the Word doc if I navigate to a cross reference that is failing once in InDesign, I can update it properly, and also navigate to its destination in the Word doc, so it's not as though these cross references are broken before coming into InDesign. Also I believe the destinations for these "broken" cross references are coming across properly to indesign too as I can see them in the story editor view.
    Supposed Cross Reference source selected in Story Editor view on left, but no corresponding cross reference highlighted in pane on right:
    Technical Details:
    InDesign CS5.5 - Version 7.5.3
    Microsoft Word 2010, File type .docx

    I have found the possible cause of this problem!
    If a table is used within the Word document somewhere between where the cross reference source is and its destination then that particular cross reference will be broken as described above in my initial post.
    So the "fix" is to remove any occurances of a table in the Word document and the cross references come into InDesign perfectly. This is actually not a fix at all. I need to use tables in the Word document for layout purposes so if they break cross references if they stand between them and their destinations then I have to compromise, i.e. use tables but with no cross references in the document or vice versa.
    I found a similar issue recently with index markers in Word causing a shift on the cross reference tags when bought into InDesign. The "fix" again for that was to remove all index markers from the Word document. See post about this here: http://forums.adobe.com/thread/1043981
    InDesign really needs to sort out the issues with importing of Word documents with cross references in them. If I can't use index markers and tables in a Word document without breaking its cross references then they can't claim to have the ability to import a Word document while maintaining its cross references into an InDesign document. It just doesnt work as ive painstakingly proven.

  • My web page centers in the design view, but not when viewed on line.

    I am new to web design and of course, to this forum.  I had some background in VBA and Fortran, so when the original designer left, I was the only one in the organization willing to tackle the website and try to teach myself how to make it work and keep it current.  We were financially in the red at the time, so hiring outside help would have been almost impossible.  We are finally breaking even now, which was our goal as a non-profit.
    So I inherited the computer and the responsibility for maintaining the website at a non-profit organization for kids in Florida a couple of years ago, and I am doing pretty well with it so far, even though my depth of knowledge is very shallow.  AsI said before, I am entirely self taught, mostly by the trial and error method, so please excuse what is probably a very basic question. 
    My website is FloridaBandTournament.com.
    The site is working pretty well for my users, but from an appearance standpoint, the pages always are on the left side of the screen.  I would like to center the page(s) in the screen so that it looks a little better.  They are on a black background - not sure how the background got there, but it is working fine for me.  When I tried to center the pages, I googled my way to the statement text-align: center, and after placing it a couple of different places in the code, it suddenly seemed to work, at least in the in Dreamweaver 8 (I also inherited the software, which is I know is old, but so am I - will be 70 soon, and do my work for free for the organization).  But when I went to a couple of different browsers, it still displayed the website on the left.  I tried Firefox and IE.  I am at a loss as to what to do.
    When I found this forum, I thought maybe somebody could help me know what to do to make this centering of the page happen in a simple way for this old geezer.  I would sure appreciate it.
    I do not know what I should be communicating to you, but I thought if I sent the code in the body, it might help.
    The body code is as follows;
    body  [
        background-image: url(file:///C|/Documents and Settings/user/Application Data/Macromedia/Dreamweaver 8/configuration/ServerConnections/www/images/background.gif):
       background-color:  #000000;
       margin-top:  0px;
       margin-left: 0px
       margin-bottom: 0px
       margin-right: 0px
      text-align:center
    None of the pages in the active website have this code yet - I have a trial page that I am testing.  The trial page can be accessed from the link at the bottom of the 'links' page for 'Show Host Infoormation' (the mis-spelling is temporary and intentianal so I can find the darn test link myself when I want to).
    I would be glad to provide any information that might help someone understand what I have and what I am trying to do, but again, I am self-taught so I have little understanding of the technical terms.  I would sure appreciate any help.  Thanks in advance.
    Bob

    First obviously make a back-up of the pages/s.
    Go into code view in Dreamweaver and find the below html. Its near the top of the page after the css. You don't need to first table <table> </table> so you can delete that. It's the second table that we are interest in. See below I have added id="pageWrapper" to the opening <table tag.
    <table width="795" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="795" height="19" valign="top" bgcolor="#000000"><!--DWLayoutEmptyCell--> </td>
      </tr>
    </table>
    <table id="pageWrapper" width="795" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
    Then add this to your css styles in the head setcion of the page.
    #pageWrapper {
        margin: 0 auto;
    You'll have to do this for each page of the site you want centered, which could be a pain if you have many pages.
    Also your background image is linked to your local computer thats why you are not seeing it but have a black background instead:
    body {
        background-image: url(file:///C|/Documents and Settings/user/Application Data/Macromedia/Dreamweaver 8/Configuration/ServerConnections/www/images/background.gif);
        background-color: #000000;
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    If you want the image to appear amend the link to as below:
    body {
        background-image: url(images/background.gif);
        background-color: #000000;
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;

  • My mac mail inbox is acting funny.  I receive an email from today and the window shows me an email from a different person and topic from 2011.  How can I fix this?  The mail appears correctly on my phone but not on my computer.

    I receive an email from today March 13, 2013, but my inbox displays an email from a different person on a different topic received in 2011.  It seems like some type of corruption but I don't know how best to fix it.

    Hi.  I checked on the order and it says the order is currently being processed and I should check back tomorrow. I'm mostly just concerned because I got an email saying the order was on hold, and I want to make sure it actually does go through and I'm not just waiting for a delivery that's not going to come. I'm still confused as to why I'd get an email saying I had to call the fraud department only to be told I shouldn't have called the fraud department.

  • CSS rules show up in design mode, but not in live or in browser.

    So some rules work in the browser some appear when in design mode, but not in live mode or in the browser. 
    In one case there is no competing rules I applied background color and border color to a dynamic table and I see the colors in design view.  In another there is a competing rule, but the one that wins is #content, when the rule I want #content #footer p is (obviously) a compound and at the bottom of the rules.
    Any thoughts?
    Thanks
    Gregg

    AH In preparing my stylesheet to show you, I noticed the rule above those two was missing it's ending curly brace. Problem solved! That's what I get for checking code when I am sleepy!
    Thank you SnakeEyez02
    Gregg

  • TS1702 my ibooks are appearing on my music playlist, but NOT on ibooks for me to view...how do I resolve this issue?

    my ibooks are appearing on my music playlist, but NOT in ibooks for me to read, how do I resolve this issue?

    This is a concern amoung many corporate users.  It's going to take somekind of policy change with apple.
    Enterprise support:
    Call enterprise support  (866) 752-7753  to create  a case ID number

  • Text from Design view is not visible on View

    I converted a project from RoboHelp 9 to 11, and discovered that several of my topics were changed.  Most of the changes were minor, e.g. spacing, bold type, bullets, etc., but I'm still having to go through each page, to make corrections.  Oftentimes, the "problems" don't show up until I View the topic, but up to this point I've been able to fix them.  However, one topic looks fine in Design view, but when I open it in View, almost all of the text is gone.  I've tried retyping portions, to see if it reappeared, but not all of it does.  Do you have any idea what is happening and how I fix it?

    LOL, you should probably check out my dear friend Peter Grainge's site
    RoboHelp Tour
    Here's the deal. In times past, the eHelp corporation had RoboHelp. And they created RoboHelp HTML long before HTML really was wildly popular. In those times it was necessary to implement some rather arcane workarounds to allow editing and a WYSIWYG environment.
    Time moves forward and Adobe are now the owners of the venerable RoboHelp. They modified the editor to be more standards compliant. And as you might imagine, that has the real possibility of somewhat munging things. Not that RoboHelp is munging code, but browsers are now a bit more persnickety about things. For example, that transparent thing was likely there in earlier browser versions and was ignored. So it's a combination of things.
    Cheers... Rick

  • RH8 - HTML Design view is not displaying what the HTML specifies.

    I recently edited a template (Master page) that includes tables. Now the design view of the master page does not correctly display the HTML for that page
    and the design view of each page that uses that Master Page displays blank tables. The HTML view includes the content, but the design view does not.

    I understand the use of Master Pages. The topics were already associated with the Master page that included tables and the
    Design view displayed the content perfectly. It wasn't until I edited the color of the cell borders in the Master page that everything went haywire.
    As it is now, the design view is completely unusable for me. This adds a layer of inconvenience that is time consuming. I'm just trying to get the design view back to what it was earlier today.

  • Terrible..Links appear on the Design View

    Dear webmates: I have updated my DW with some new extensions,
    but .. oh surprise !! when I open my DW with a new projetc that
    contains links, these links also appear in the Design View and
    don't let me, for example justify Centered the whole page... Beside
    it, it is unconfortable to have such links on the Design View...
    they never appeared before... Please help me.. My nose say that it
    is something up to the setup.. but don't know where exactly it is
    supposed to be fixed,.... Appreciate your answers,

    You can try this simple fix -
    Quit DW.
    Find this folder -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    and delete it.
    Restart DW. Works better?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Sw Jiten" <[email protected]> wrote in
    message
    news:e9kpod$ks$[email protected]..
    > yes , it is true, Alan. I have posted a differente
    page... Why ? because
    > it is
    > happening with any page that contains popup menus....
    so... I am 99.99%
    > sure
    > that it is because of the extensions that a friend gave
    me to install on
    > my
    > PC.. since then many thigns have changed...
    >
    > So. the point is: What should I do if I want to
    reinstall DW ??? I already
    > did
    > it, but it always calls the "new extensions" I
    installed.... where am I
    > supposed to delete those extensions? or in other
    words... what is the best
    > way
    > to uninstall and reinstall DW in order to start over
    again ? Thanx a lot,
    >

  • HT204088 i have a charge from apple and i did not authorized it and it appears in my bank account but not in my recent purchases i want to know whats going on

    i have a charge from apple and i did not authorized it and it appears in my bank account but not in my recent purchases i want to know whats going on

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple
    How much is the charge ? Have you added or changed your credit card details on your iTunes account ? If you have then each time that you do so a small temporary store holding charge may be applied to check that the card details are correct and valid and that it's registered to exactly the same name and address as on your iTunes account - it should disappear off your account within a few days or so.
    Store holding charge : http://support.apple.com/kb/HT3702

  • MC.9 - Material Number appears for period 06/2007 but not 07/2007

    Hi Experts,
    Have you encountered the situation whereby in MC.9(S039), the data of a certain Material Number appears for period 06/2007 but not 07/2007
    This material# has no stock & movements for 07/2007, but for another material# with the same conditions, there is no problem.
    Thanks & Regards
    Lawrence

    Hello Experts,
    i´m having the same issue at my system.
    Does anyone know why for a certain material report MC.9 shows balance at some Store Location although it doesn´t have any movements, while for other Store Location it isn´t showed any line, not even with zero values.
    I hope somebody can answer this issue.
    Thank you very much in advance.
    Regards,
    cecil

Maybe you are looking for

  • How to upload win 8.1 from my external to my new ssd on a hp pavillion g-6 2200us

    need instructions on how to upload win 8.1 from my external to my new  ssd on a hp pavillion g-6 2200us.  My hd got fried and I bought an SSD to replace it. I  got the recovery downloads from hps website and dowloaded them to an external.  Now I need

  • What is the name of Illustrator COM/DCOM Service?

    Hi, I have installed Adobe Illustrator 6 on my PC (Windows XP Pro), have an issue in creating the application instance from the code that I deployed in my local IIS, but it works great in Visual Studio 2010. Per some suggestions on MS forums, I am tr

  • Nokia and Windows apps error code c101a006

    Just got a Lumia 920 and it is fantastic! But when you get a new phone you need those apps. I got a couple of apps downloaded and then bang! Error code c101a006 - please try again or try later. It's been 24 hours now and have tried rebooting, clearin

  • Best settings for highest quality for exporting a .mov  file to h.264

    Hi, I want to know what the best settings are for the highest quality for exporting a .mov file (720p50) to h.264. I want the same quality as the original. I want to know the data rate etc. regards, Jeroen Message was edited by: Woudgraaf-AV

  • A KISS systray pacman/aur updates checker for KDE

    I have created a simple python-QT script that places an icon in the system tray and informs you when updates for both pacman and AUR are available. Also I created a bash script that does the real package updates checking. The python script depends on