Mask clipping only works with absolute widths and heights

Hi all for some reason this works:
<s:BorderContainer height="404" width="504" borderColor="0x000000" borderWeight="2" backgroundColor="0x000000" filters="{[dsf]}" cornerRadius="10">
                <s:Group id="mask">
                    <s:Rect width="500" height="400" radiusX="10" radiusY="10">
                        <s:fill>
                            <s:SolidColor/>
                        </s:fill>
                    </s:Rect>
                </s:Group>
            <s:BitmapImage width="100%" height="100%" source="/assets/images/logo.jpg" maskType="alpha" mask="{mask}"/>
        </s:BorderContainer>
But if i change the clipping rect to:
<s:Rect left="0" right="0" top="0" bottom="0" radiusX="10" radiusY="10">
OR
<s:Rect width="100%" height="100%" radiusX="10" radiusY="10">
It does not work as a mask and only displays the background color of the BorderContainer.
I'm using flash builder 4.5
Any reason for this inconsistency?

Say thanks to Shongrunden and use binding for this: <s:Rect width="{bc.width}" height="{bc.height}" radiusX="10" radiusY="10">
where bc is your BorderContainer's id.

Similar Messages

  • Does airplay mirror only work with the ipad2 and not ipad1

    does airplay mirror only work with the ipad2 and not ipad1

    But can it still stream video wirelessly?
    For example, with the Digital AV Adapter I can watch video on my TV, but obviously it's wired.
    I'd like a wireless option.

  • Ipad air will only work with email address and not phone number

    Nobody can FaceTime me or message me using my telephone number, they can only do it using my email address, how do I get my phone number to work on ipad air

    Do you have an iPhone?
    You can only associate a phone number to messages and facetime if you have an iPhone.
    The iPhone will associate the number it has to your Apple Id which in turn will make it available to Facetime and Messages on the iPad, assuming it uses the same Apple ID.
    If you do have an iPhone, make sure you've activated Facetime and Messages on it so your Apple ID links to your number.

  • My I pod only works with double click and I can't  drag the screen with my finger?

    Hi,
    My i-pod doesn't work very well at the moment.
    I can't drag over the screen en have to double click on my screen. I can't drag the screen from left to rigth and not from above to below.
    The hard reset didn't work and i can't reach the menu where i can restore all setting. My son alternated one of the direction.
    who can help me?
    thanks
    gtz Ton

    You have the accessibility VoiceOver feature turned on.
    Triple click the home button and try going to Settings>General>Accessibility and turn VoiceOver off. You may have to use three fingers to scroll the screen to get there. If problems see the following for how to turn off via iTunes:
      iPhone: Configuring accessibility features (including VoiceOver and Zoom)

  • How to make panel collection with auto width and height in popup dialog ?

    Hi,
    I have ony af:popup in that I have added af:dialog. And in this af:dialog I have added af:table which is surrounded by af:panelCollection.
    Means my popup structure is like as below
    af:popup
    af:dialog
    af:panelCollection
    af:table
    If I set resize="on" in af:dialog then I can able to resize my popup dialog but the panelCollection inside the af:dialog is not become auto adjusted.
    I am able to make panelCollection width auto adjusted by using AFStretchWidh style class but not able to adjust its height.
    Hope you can understand my problem and pls try to provide me its solution if you have already implemented this.
    Regards,
    DevD

    I believe you are using af:panelGroupLayout because there are some other components except af:panelCollection, so try this combination
    <af:popup id="p1">
      <af:dialog id="d2" resize="on" stretchChildren="first">
        <af:panelStretchLayout id="psl2">
          <f:facet name="bottom"/>
          <f:facet name="center">
            <af:panelCollection id="pc1">
              <f:facet name="menus"/>
              <f:facet name="toolbar"/>
              <f:facet name="statusbar"/>
              <af:table var="row" rowBandingInterval="0" id="t1">
                <af:column sortable="false" headerText="col1" id="c1">
                  <af:outputText value="#{row.col1}" id="ot5"/>
                </af:column>
                <af:column sortable="false" headerText="col2" id="c3">
                  <af:outputText value="#{row.col2}" id="ot4"/>
                </af:column>
                <af:column sortable="false" headerText="col3" id="c2">
                  <af:outputText value="#{row.col3}" id="ot3"/>
                </af:column>
                <af:column sortable="false" headerText="col4" id="c4">
                  <af:outputText value="#{row.col4}" id="ot2"/>
                </af:column>
                <af:column sortable="false" headerText="col5" id="c5">
                  <af:outputText value="#{row.col5}" id="ot1"/>
                </af:column>
              </af:table>
            </af:panelCollection>
          </f:facet>
        </af:panelStretchLayout>
      </af:dialog>
    </af:popup>Put only af:panelCollection in CENTER facet of af:panelStretchLayout and use other facets of af:panelStretchLayout for other components.

  • Why does a pdf document created in Adobe XI give my used an error message that should only occur with Adobe 8 and 9?

    why would my customer reading my pdf file get this message: 'Licensing for this product has stopped'?
    The message goes on to say, 'you cannot use this product at this time. You must repair the problem by uninstalling and then reinstalling this product or contacting your IT administrator or Adobe customer support for help.'
    As recommended, I downloaded the 'License Recovery' program only to find that the program only works with Adobe 8 and 9.

    Hi sivey@pdx,
    Can you please let us know the following:
    - Operating System installed;
    - Name and version of the Adobe Product (Adobe Reader or Adobe Acrobat);
    - Screenshot of the error message.

  • I need version 3.6.16 for an at home online job. I am unable to find it anywhere from a secure source. Is there a way to get a link to download it? The ChaCha Toolbar only works with this older version. Thanks!

    I need the older version 3.6.16 for my at home based job for ChaCha. Their toolbar only works with this version and they say it is more compatible with this. And I have not been able to find a secure link to download this older version. Can you give me a secure link or is it possible to download this older version securely?

    If you only need Firefox 3.6 for just one thing then you may be better off using a portable version of Firefox as it will not impact your Firefox 6.0.2 install. You can install it on hard disk or on a usb flash drive. Firefox 3.6.22 is the current security update as 3.6.16 is old.
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Does Mighty Mouse only work with desktop Macs??

    I just bought an Apple Wireless Mighty Mouse, assuming it'd work with my new Leopard OS X Macbook. I followed the instructions on the Mighty Mouse booklet...but no installation start-up window ever appeared. I'm a beginner with Apple, so I figure I've done something wrong....does the Mighty Mouse only work with desktop Macs and not MacBooks?
    Please help if you can.

    Ah! sorry, my mistake! "wireless" was the key word. And yes, prior to my new mighty mouse, I also used the wireless one. And you need to do the following:
    1) Turn bluetooth ON (either from finder icon (you can have it placed on your finder bar by tick box in sytem preferences/bluetooth.
    2) Then, you need to "pair" your mouse via bluetooth setup assistant.
    3) once "paired" off you go.

  • Mag safe adapter only works with certain macbook pros

    My Adapter is only working with other macbooks and not its own, It sometimes flics on for a second and then No go..
    I can charge with others...
    Solutions?? HELP PLEASE!!!!
    thanks!
    Dee

    Try SMC Reset
    http://support.apple.com/kb/HT3964
    PRAM reset
    http://support.apple.com/kb/HT1379

  • Rotating and scaling a movieclip withing only its parent width and height

    Dear friends,
    I'd like to rotate a movieclip within specific area (its parent width and height) and it can't rotate out of it.
    How can I achieve that.
    When I say for exampe:
    mc.rotation = 10;
    it rotates also outside the parent area.
    How can I restrict it to only parent area.
    Thank you in advance.

    [OTTOMH]
    With each rotation step you could check the bounds of the rotating MC. If it's greater than the containing MC, you can calculate the scale factor and apply it to the x- and y-scale of the rotating clip.
    The clip would have to be deadcentre in the containing clip for this to work though.
    I suppose there would be some mathimatical way with most primitive shapes to calculate the width and height with a certain rotation, but I suppose this would be easiest.

  • Hello. Layer masks aren't working with Photoshop CC... The brushes gave out, and now the gradients too. Anyone else have this problem?

    Hello. Layer masks aren't working with Photoshop CC... The brushes gave out, and now the gradients too. Anyone else have this problem?
    Will someone from Adobe please answer if this is a bug.. as I've seen other users post the same issue.
    thanks!

    I'm experiencing the same issue too. I can't see to use the brush in my clipping mask the same way. It works for a moment, then several minutes in to production it ends up crashing.
    I hope this issue is resolved soon. It's definitely frustrating and delaying my production time.

  • How to calculate actual selection or group width and height with clipping

    If a group has clipping paths then the height and visible bounds will include the dimensions of all paths selected including the clipped or hidden paths.
    However, the width and height shown on the width and height of the AI detail boxes for the selection shows just the visible dimensions.
    I want to retrieve the same values that is shown on the screen when a group is selected.
    It is somewhat counterintuitive that the "visiblebounds" property does not show just what is visible.
    I'm scaling the visible content of a selection to fit within another path but I need to be able to calculate the dimensions of the only what is visible after clipping.
    What do you have to do with scripting to get these values? Go through all of the path items in a group recursively and save the min and max values of any visiblebounds for clipping paths? Any better alternatives that I don't see?
    Thanks for any help!

    I ended up using the visible bounds for both scale and position as I also discovered that attempting to position a group with the position method would also result in missing the mark. The top and left (x,y) bounds I calculated without the clipped dimensions needed to be used to offset the actual position where I wanted the visible paths to be displayed.
    The functions I used ended up looking like so:
    function GetPoints(dblInch)
         var dpi = 72;
         return dblInch * dpi;
    function getRealVisibleBounds(grp) {
         var outerBounds = [];
         for(var i = grp.pageItems.length - 1; i >= 0;i--)  {
              var bounds = [];
              if(grp.pageItems[i].typename == 'GroupItem') {
                   bounds =  getRealVisibleBounds(grp.pageItems[i]);
              else if((grp.pageItems[i].typename == 'PathItem' || grp.pageItems[i].typename == 'CompoundPathItem')
                   && (grp.pageItems[i].clipping || !grp.clipped)) {
                   bounds = grp.pageItems[i].visibleBounds;
              if (bounds.length > 0) {
                   outerBounds = maxBounds(outerBounds,bounds);
         return (outerBounds.length == 0) ? null : outerBounds;
    function positionVisible(grp,x,y)
         var bounds = getRealVisibleBounds(grp);
         var newX = GetPoints(x) + (grp.left - bounds[0]);
         var newY = GetPoints(y) + (grp.top - bounds[1]);
         grp.position = [newX,newY];
    function maxBounds(ary1,ary2) {
         var res = [];
         if(ary1.length == 0)
              res = ary2;
         else if(ary2.length == 0)
              res = ary1;
         else {
              res[0] = Math.min(ary1[0],ary2[0]);
              res[1] = Math.max(ary1[1],ary2[1]);
              res[2] = Math.max(ary1[2],ary2[2]);
              res[3] = Math.min(ary1[3],ary2[3]);
         return res;
    and were called like so:
    var doc = app.activeDocument;
    if (doc.selection.length > 0) {
         var grpOriginal = null;
         if(doc.selection.length == 1 && doc.selection[0].typename == 'GroupItem') {
              grpOriginal = doc.selection[0];
         else {
              grpOriginal = doc.groupItems.add();
         doc.selection = null;
         if(grpOriginal.layer.name != 'approval') {
              grpOriginal.move(doc.layers['approval'],ElementPlacement.PLACEATEND);
         var artBounds = getRealVisibleBounds (grpOriginal);
         var artWidth = artBounds[2] - artBounds[0];
         var artHeight = artBounds[1] - artBounds[3];
         var imprintHeight = GetPoints(0.625);       // 0.625 is new height, hardcoded for demonstration
         var imprintRatio = imprintHeight / artHeight;
         var section = doc.layers['sectionLeft'];    // section where I placed the art
         var grpArt = grpOriginal.duplicate(section,ElementPlacement.PLACEATEND);
         grpArt.resize(100.0 * imprintRatio,100.0 * imprintRatio);
         grpArt.move(section,ElementPlacement.PLACEATBEGINNING);
         grpArt.selected = true;
         positionVisible(grpArt,0.0,16.75);          // x & y hardcoded for demonstration
    else {
         alert('artwork needs to be selected');
    I'm new at this so are there any better options to do these things?

  • I am using Windows 7 64-bit on a partitioned hard drive on a MacAir.  The trackpad will only work with a click.  How do I get the full function of tap and scroll?

    I am using Windows 7, 64-bit on a partitioned hard drive on a  2012 MacAir.  The trackpad only works with clicking.  How do I get the full function of tap and scroll? (I have this on a 2011 Mac Pro with 32 bit Windows 7 and it works properly.)

    Windows Control Panel>Boot Camp Control Panel>Trackpad.

  • I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for

    I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for Premiere. I dont have any other serial numbers. What do I do???

    Static_Unit
    I am getting a bit concerned about what is happening in your situation. Yesterday you posted your question in at least two different forums, one of them being here in the Premiere Elements Forum.
    Don't Have Serial Number for Premiere, Only Photoshop?
    Wherever you posted, the reply was to contact Adobe via its Adobe Chat. It is the only one who can sort out this matter for you.
    In the thread cited above I offered to help you with the difficulties that you were having visualizing the Adobe Chat in its web page. I was waiting for your follow up on that in the above thread. Instead, I find your same question in a new Adobe Premiere Elements Forum thread this afternoon with no refer the prior threads or prior recommendations given you.
    I will also mention again...when you buy the Photoshop Elements and Premiere Elements bundled in one packaging and with installation files for each on the same installation disc, each program has its own serial number. The Photoshop Elements serial number does not work for Premiere Elements and vice versa. The serial numbers are on labels on a box which houses the installation disc envelope(s). So, if you purchased both programs and found the Photoshop Elements serial number, then the Premiere Elements serial number should be in a label right underneath the label with the serial number for Photoshop Elements. I recall writing this in your yesterday's thread on this matter.
    The moderator will no doubt be along shortly to close or delete this thread. So, just in case, please bookmark your yesterday's thread cited above so that we can continue this communication which is trying to help you.
    Thanks.
    ATR

  • I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with

    I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with my apple ID.   Please Help me I speak Spanish so  if my English is not ok  I´m sorry about it.
    Do you think that apple has to   reset in their database of the old serial number attached with my phone number and that’s why I can´t activate imessage and facetime with my number in the new iphone 4s?? 

    I understand all of this Meg; that is why I bought an Iphone; but never expected my phone not even give a at least a 24 or even 12 hours....I work 12 hour shifts and also would expect to have to charge each night but not twice a day or more.  I am not always somewhere I can charge my phone.
    Your points are true; however it doesn't help me......

Maybe you are looking for

  • Validation expression for Comparitive check

    Hi, My scenario is to fire a validation error when, Field A is filled and Field B is not filled. If Field A and Field B is filled there should not be any validation error. Can any body send the validation expression to achieve this? Best regards, Aru

  • RE: R : RE: Domain Classes

    I think Kal's point was that you shouldn't follow the advice in the "Customizing Forte Express Applications" manual on page 90, which suggests creating a DBSession service object and putting a method on a domain with a SQL call that uses that session

  • PDF Attachement in RFC Function Module

    Hi Experts, We are going to send the PDF format of Purchase Orders to other Non-SAP System through RFC Function Module. Please suggest, is there any RFC function module to send PDF file as the attachment. Or is there any other way to send the PDF fil

  • How to tigger automatic sale order

    Hi all, Can you pl guide me for tiggering auto sales order in R/3 after transfer of forecast to R/3 from from demand planning..............pl reply if some body knowing the same....... Best Regards, Sharad

  • My iPod 4g is stuck on the lock screen is there a way to fix it without deleting everything?

    Please Help!!!! I was typing in my password to my iPod & it just froze & it's been stuck like that for hours and I don't want to delete all the apps and pictures on it. I NEED ADVICE!!!! ASAP