Monday, 15 March 2010

flex - CSS Background and border support -


Is there a Flex4 skin or Flex 3 programmatic skin that matches the CSS 1, CSS2 or CSS background behavior?

I am trying to add CSS like features for all Flex components. For example, in HTML, you can set the background and range of a button with the following code:

  & lt; Input style = "background: #ffffff url ('Img_tree.png') No repeatable; boundary: border: 5px solid red; border-right-style: none;" type = "button" />  

When you can use CSS with Flex, the effect of the threshold Do not think at least looking for me on the S button.

Example:

  S | Button {background-image: embed (source = "property / img-tree.png"); Background-shaped: "100%"; Limit: 5px solid red:}   

So you need spark skining: A button on the Adobe devnet is a simple example for the skin. For your needs you will need to modify and fill the text color: see the bitmap image for background:

Note that the syntax is familiar with the regular flex syntax.

No comments:

Post a Comment