Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/07/2010, 11:08
Avatar de superscully
superscully
 
Fecha de Ingreso: febrero-2009
Mensajes: 56
Antigüedad: 15 años, 3 meses
Puntos: 0
Sonrisa Respuesta: Estilos no Skins en botones

Pues ahi varias maneras ...

1.- es poniendo el estilo en el mismo codigo de la aplicacion...
Código MXML:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  3.  
  4. <mx:Style>
  5.         Application {
  6.             backgroundImage: Embed(source="assets/book.jpg");
  7.             backgroundSize: "100%";
  8.         }
  9.         LinkBar {
  10.            fontFamily: Trebuchet MS;
  11.         }
  12.         Panel {
  13.            roundedBottomCorners: true;
  14.            cornerRadius: 12;
  15.            headerHeight: 23;
  16.            backgroundAlpha: 0.64;
  17.            backgroundColor: #ffffff;
  18.            shadowDistance: 4;
  19.            shadowDirection: left;
  20.         }
  21.        
  22.        
  23.     </mx:Style>
  24. ...

y ahi ya puedes aplicar los estilos a los diferentes componentes de tu aplicacion ...

si quieres diferentes estios pues no pones el nombre del componente sino el nombre del id del componente ....

Código CSS:
Ver original
  1. Button {
  2.    cornerRadius: 12;
  3.    textIndent: 0;
  4.    paddingLeft: 5;
  5.    paddingTop: 20;
  6.    paddingBottom: 20;
  7.    letterSpacing: 2;
  8.    highlightAlphas: 0.4, 0;
  9.    fillAlphas: 0.48, 0.49, 0.67, 0.65;
  10.    fillColors: #3366ff, #999900, #009966, #000099;
  11.    textRollOverColor: #00ffff;
  12.    textSelectedColor: #ffff00;
  13.    borderColor: #009966;
  14.    themeColor: #003366;
  15.    fontFamily: Georgia;
  16.    fontSize: 16;
  17.    fontWeight: bold;
  18. }

espero te sirva....

saludos!