The namespace for spark.components.Alert is "http://flex.apache.org/experimental/ns" ;
That's what you should set in the namespaces of your css. Maurice -----Message d'origine----- De : Frank Dahmen [mailto:[email protected]] Envoyé : jeudi 3 octobre 2013 13:30 À : [email protected] Objet : Re: s|Alert{} in css but in the docs there is a spark.components.Alert? ----- Original Message ----- From: "Miguel Ferreira" <[email protected]> To: <[email protected]> Sent: Thursday, October 03, 2013 1:21 PM Subject: RE: s|Alert{} in css ALert is not in the namespace spark so you have to use this For example:mx|Alert{ title-background-skin: Embed("assets/skin/alert_title.png"); background-image: Embed("assets/skin/alert.png");....} > From: [email protected] > To: [email protected] > Subject: s|Alert{} in css > Date: Thu, 3 Oct 2013 13:16:58 +0200 > > throws > > Warning: Cannot resolve namespace qualified type 'Alert' in CSS selector > 'Alert' > > how can i set skinclass for spark alerts globally? > > or how can i get a new instance and show it? > > var alert:Alert=new Alert(); > alert.skinClass="alertSkin"; > alert.show(.....); <- does not work, static mehod > > thanks >
