Skip navigation
Currently Being Moderated

Style Warning when using a custom theme

Aug 17, 2011 9:32 AM

Hi,

 

I'm have a Flex application project and a Custom Flex Theme project. I'm with latest Flash Builder and with latest Flex SDK

 

I am using -theme "path-to-.swc" to apply my custom theme to my app

 

I get various warnings like this:

 

El estilo 'backgroundAlpha' sólo es compatible con el tipo 'mx.controls.ToolTip' con tema(s) 'halo, spark, mobile'.

 

translated:

 

The style "backgroundAlpha" is only compatible with the type 'mx.controls.ToolTip' with theme(s) 'halo, spark, mobile'.

 

If I remove all backgroundAlpha from my theme default.css, it continues to show me the warning

 

Moreover backgroundAlpha is used in spark theme. Example:

 

Application

{

    backgroundColor: #FFFFFF;

    skinClass: ClassReference("spark.skins.spark.ApplicationSkin");

}

 

So, it's a bug in Flash Builder or I'm doing something wrong?

 

Thanks

 

Carlos Rovira

 
Replies
  • Currently Being Moderated
    Aug 19, 2011 4:02 AM   in reply to Carlos_Rovira

    Hi Carlos,

    You might be using the 'background Alpah' property with your 'mx.controls.ToolTip' somewhere in your mxml.

    Delete it from there and that should work

    Cheers,
    Guriya

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 5, 2011 5:53 AM   in reply to Guriya Kalyani

    Hi Carlos,

    When applying the themes via the compiler option, use -theme+=<path to the theme.swc>
    instead of -theme=<>

    That should get rid of the warnings. Thanks.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points