Is there a way to apply a cornerRadius to a LinkButton background (opaqueBackground)?

Is there a way to have the static background mimic the cornerRadius that may get applied to the rollover state?
See the attached pictures to see the disconnect - or run this example code and rollover the LinkButton (I'd like the background to be rounded and match the rollover state).
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/09/02/setting-the-corner-radius-of-a-linkbutton-control- in-flex/ -->
<mx:Application name="LinkButton_cornerRadius_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">
    <mx:LinkButton id="linkButton"
            label="LinkButton"
            cornerRadius="10"
            opaqueBackground="0xAAAAAA" />
    <mx:Label text="Roll over the link button to see corner radius - but notice the background still has hard edges" />
    <mx:Label text="I would like to have the opaqueBackground to be rounded as well." />
</mx:Application>

This doesn't quite answer the problem.
I may have not been clear about what I was trying to achieve - I'm changing the background color (opaqueBackground) to show current selection of the selected mode in the LinkButton.  ...but I would like this "selection/background" to be rounded to be consistent with the look and feel (all other elements are rounded).
<?xml version="1.0" encoding="utf-8"?><!-- http://blog.flexexamples.com/2008/09/02/setting-the-corner-radius-of-a-linkbutton-control- in-flex/ --><mx:Application   name="LinkButton_cornerRadius_test"
         xmlns:mx="
http://www.adobe.com/2006/mxml"
          layout="
vertical"
          verticalAlign="
middle"
          backgroundColor="
white">
    <mx:Style source="assets/styles/styles.css">
    </mx:Style>
    <mx:Script>   
    <![CDATA[
          import mx.controls.Alert;
          private function selectionClick(event:Event):void           {
              if(event.target.id == "selectionA")              {
                    selectionA.selected =
true;
                    selectionB.selected =
false;
                    selectionC.selected =
false;
                    selectionA.opaqueBackground = 0xDAD9AD;
                    selectionB.opaqueBackground = 0xFFFFFF;
                    selectionC.opaqueBackground = 0xFFFFFF;
               else if(event.target.id == "selectionB")               {
                    selectionA.selected = 
false;
                    selectionB.selected =
true;
                    selectionC.selected =
false;
                    selectionA.opaqueBackground = 0xFFFFFF;
                    selectionB.opaqueBackground = 0xDAD9AD;
                    selectionC.opaqueBackground = 0xFFFFFF;
               else if(event.target.id == "selectionC")               {
                    selectionA.selected = 
false;
                    selectionB.selected =
false;
                    selectionC.selected =
true;
                    selectionA.opaqueBackground = 0xFFFFFF;
                    selectionB.opaqueBackground = 0xFFFFFF;
                    selectionC.opaqueBackground = 0xDAD9AD;
               else
Got an event from an invalid source: " + event.target.id, "Error");
        ]]>
     </mx:Script>                   
     <mx:LinkButton label="Selection A"           id=" 
selectionA"
          click="selectionClick(event)"
          selected="t 
rue"
          opaqueBackground="0x
DAD9AD" />
     <mx:LinkButton label="Selection B"
          id="
selectionB"
          click="selectionClick(event)"
/>
     <mx:LinkButton label="Selection C"
          id="
selectionC"
          click="selectionClick(event)"
/>
     <mx:Label text="Roll over the link button to see corner radius - but notice the background still has hard edges" />    
     <mx:Label text="I would like to have the opaqueBackground to be rounded as well." />
</mx:Application>           
 </mx:Application>           
</mx:Application>           

Similar Messages

  • Is there a way to apply LUTS to clips while in Adobe Media Encoder

    is there a way to apply LUTS to clips while in Adobe Media Encoder? We have many  camera clips needing luts applied then wrapped to ProRes422 for editing. right now we are using after effects, rendering out then wrapping in Encoder, but this workflow is quite time consuming.We've tried rendering proRes out of AE but the boss isn't happy with the results without also going through Encoder.

    No, there is not a way to apply color changes (e.g., using LUTs) in Adobe Media Encoder. Do this in After Effects, but just add your After Effects compositions directly to the Adobe Media Encoder encoding queue (e.g., by choosing File > Add After Effects Composition in the AME UI).

  • Is there a way to apply LUT's to a photo in Lightroom?  Such as .cube, Vision Color, etc.

    Is there a way to apply LUT's to a photo in Lightroom?  Such as .cube, Vision Color, etc.  I have some film stock and Osiris LUTs I like to use for video that I'd love to apply to RAW still photos in Lightroom.  I know it's possible in Photoshop CC but the process would save me time if it's possible to easily do in Lightroom 5.  Anyone know?

    Unfortunately, you can't do it in LR.  You could add your vote and opinion to this topic in the official Adobe feedback forum: Lightroom: Ability to use 3D LUTs.

  • Is there a way to apply a precise value of how round the STBuffer() applies to a geography?

    Hello,
    I am attempting to work on moving my data into SQL Server spatial geography. I have a valid geography and am able to apply a buffer of (150 feet or 0.3048 meters) as shown below.  
    My question is there a way to apply a precision to how smooth the buffer is made ? I currently have MapInfo software and it allows me to apply "25 segments per circle" where the 25 can be whatever I choose (buffer is the red ring shown below which
    appears not as wide as the SQL server buffer above)  Please ignore the cropped portion of the red-line below; however, I was just trying to give a visual of what the buffer looks like now in my MapInfo format...
    Is this possible with SQL Server Spatial?  
    Thanks in advance.
    Nick

    STBuffer won't do this (it has only one parameter), and after looking at the "BufferWithTolerance" and "Reduce" methods, I don't think they'll do this either. In a single method call. However, you may be able to produce the same results
    with a series of method calls. That is, buffering combined with calls to STCurveToLine/CurveToLineWithTolerence and STIntersection or STDifference. Or one of the spatial aggregates. From your current description it's hard to figure out what you're looking
    to do. You're trying to reverse-engineer something in a specific product, so figure a complete description of how it works.
    But, unless I missed something, it will take multiple spatial library calls.
    Hope this helps, Cheers, Bob
       

  • Is there a way to apply the same transition to many clips at once?

    If there are about 70 clips for a slide show s there a way to apply a crossfade to all of the clips at once?
    Thanks,
    Pete D.

    Make Timeline the active window.
    Press command and A keys to select all clips.
    Press command and T keys to apply the default transition.
    This will usually be a one second crossfade but you can change it to another duration or a completely different effect if you want.
    Link: Changing the Default Transition in FCP

  • Is there a way to apply the same transition between all clips?

    Or is there a way to apply random transitions? Either way I'm too lazy to drag a transition between every clip and hope there's a bulk way I haven't found yet. I'm using iMovie HD 6.0.2 (267).
    Thanks!
    --Daniel

    Daniel,
    To apply the same transition between all clips, select all the clips, select the transition (and timing) then click ADD (at the bottom right of the transitions screen). The transitions will be rendered, one at a time between all the clips. If you wish to change the transition, again select the required clips, select the new transition, then click UPDATE.
    I'm not aware of any way to apply random transitions.
    John

  • Is there a way to apply Time Remapping to multiple clips simultaneously?

    Is there a way to apply Time Remapping to multiple clips simultaneously? I'd like to uniformly speed up and slow down two different clips that are playing in a picture-in-picture setup. I’m hoping there’s a more elegant way to sync them up than just editing their Time Remapping functions individually (I already tried using an Adjustment Layer. It didn’t work).

    you can try nesting the two clips together, then control the time remapping of the nest.

  • Is there a way to apply an equalizer setting to a bunch of songs at one time?

    Is there a way to apply an equalizer setting to a bunch of songs at one time?

    Nevermind...I figured out a way

  • Is there any way to bring back the font type and background of Safari reader from iOS6 in to the iOS7 ? I really miss it, the new design is awful, simple and has now class at all.

    Is there any way to bring back the font type and background of Safari Reader from iOS6 in to the iOS7 ? I really miss it, the new design is awful, simple and has now class at all.

    I agree with you, many things in the ios 6.x were more elegant. The reader was the most one of them. I think the ios7 wants to be the windows 8.

  • Is there a way to apply sound effect to each application?

    Hello, I use x-fi surround 5.1 usb and windows 7-64bit.
    I like to play Elder Scrolls: Skyrim with stone hall EAX effect and winamp playing other mp3s.
    Is there a possible way to apply EAX only to Skyrim game and not winamp?
    It seems that no thread is talking about this issue. I really appreciate if someone gives me directions or hints.

    Hi,
    Sorry I don't think that is possible. EAX effects applies to all sounds when it is enabled.

  • Is there a way to apply the same bumpers to multiple exports automatically?

    Hello smart people.
    I have an ongoing project in which I am creating hundreds of 60–120 second clips, all requiring the same intro-outro bumper. Every month I make about 125 of these.
    Instead of manually applying these bumpers to each and every sequence, I would love to be able to ask Premiere or Media Encoder to find and attach the specified bumpers as a batch.
    Is there a way to do this?
    Working with the current updated version of CC 2014 (on a Mac).

    What work do you have to do to in a Sequence to create the content between the Intro and Outro?
    I assume it varies in length beween 60 secs and 120 secs?
    I assume you have to select a clip or multiple clips and edit them to whatever duration in a new sequence for each?
    If so...I dont see that its many extra steps to drop a 'Bumper' Nest ( fixed asset in Project Bin)  onto Video 1 under the "edit" (Video 2 +) and ripple delete to tighten it up to the content.
    Batch Export the Sequences in a Queue.

  • How can I/Is there a way to: apply a preset effect to multiple clips?

    I will be editing a music video from this weekend in Premiere Pro CS4, is there a way I can paste a custom preset to multiple clips (selecting hundreds) without clicking each one and pasting/dragging?
    If this can be done it's going to save me hours and hours of work!
    If I try at the moment by CTRL clicking a few clips is only pastes/drags into 1 of the clips, not all of them!
    any help would be appreciated

    Yes, see the section
    Copy and paste clip effects and
    Apply effects to clips in the Premiere Pro Help.
    Cheers
    Eddie
    PremiereProPedia   
    RSS feed)
    - Over 350 frequently answered questions
    - Over 300 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Is there a way to apply a master page to even (or odd) pages in a long document?

    I'm taking a very simple, large pdf document and bringing it into InDesign to add some graphics. The pdf is actually a customized 2-page document for a large employee group (i.e. pages 1 and 2 are for employee001, pages 3 and 4 are for employee002, pages 5 and 6 are for employee003, etc.).
    I've found a script that allows me to bring in all the pages of the pdf at one time, provided I've set up the correct number of blank pages in InDesign. What I'm looking for now is a way to apply a master page to all even numbered pages at one time. Or all odd pages. Anyone have any ideas?
    Ideally, an option that would import the entire pdf document, add the appropriate number of pages to the InDesign document, and be able to assign different master pages to even and odd pages would rock! Help!

    for (var i=0;i<= PageLength-1;i++)
    var isEven = function(someNumber){
    return (someNumber%2 == 0) ? true : false;
    if(isEven(newDoc.pages.item(i).name) == true)
              //Apply Master B for right page
              newDoc.pages.item(i).appliedMaster = app.activeDocument.masterSpreads.item("B-Master");
    //Move elements by x, y position, script label ContactEmail
    newDoc.pages.item(i).pageItems.item("ContactEmail").move([0.7292, 6.011]);
    }else{
              //Apply Master A for left page
              newDoc.pages.item(i).appliedMaster = app.activeDocument.masterSpreads.item("A-Master");
    }//for Else
    }//For

  • Is there a way to apply changes in default WAD template to KM Bookmarks?

    Hi gurus.
    WE ran into the following issue. We have bunch of portal favorites and km bookmarks saved by the users from our BEx Web Analyzer reports. Our Bex Web utilizes a default template 0ANALYSIS_PATTERN (renamed to ZZ..).
    We have made some customizations to the default template. New queries show the changes, however km bookmarks and favorites saved with an old version of a template still show the old look of the WAD template.
    Is there a way to somehow update km bookmarks and portal favorites to reflect the changes in the default template?
    Thanks

    This is common issue to customized 0analysis_pattern templates in BI...
    Use program - RSWR_BOOKMARK_ADJUST
    Select your customized web template..
    Web item to be removed - Specify the web item that you changed..
    New web items should automatically appear...
    Try this program on few affected bookmarks first and then run it wide across without bookmark selection. At one of my clients I adjust 200k such bookmarks.
    Use with caution....test properly before you do...You dont want large number of bookmarks becoming useless...

  • Is there a way to apply archive logs, standby DB is opened with 'resetlogs'

    Hi All,
    I have setup a standby database (Oracle 10g SE). I applied hot backup and archive logs to the standby database till yesterday. I have opened the standby database using 'alter database open resetlogs;" and validated the application functionality using the standby database.
    Now I want to regularly apply logs from the Primary database to the standby database, but today I have opened the standby database using 'alter database open resetlogs;"
    Need assistance to know the way to apply archive logs, once the standby database is opened with 'resetlogs' option to keep it in sync with the Primary database.
    Thanks
    Kunal

    Welcome to OTN,
    I have setup a standby database (Oracle 10g SE). I applied hot backup and archive logs to the standby database till yesterday. I have opened the standby database using 'alter database open resetlogs;" and validated the application functionality using the standby database.Standby opened with *resetlogs* ? What you did? have you performed failover of standby database?
    Now I want to regularly apply logs from the Primary database to the standby database, but today I have opened the standby database using 'alter database open resetlogs;"
    Need assistance to know the way to apply archive logs, once the standby database is opened with 'resetlogs' option to keep it in sync with the Primary database.Have you enabled Flashback & created Restore point? If so you can do it.. If not rebuild standby again.
    Check this scenario How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]

Maybe you are looking for