You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Isabelle LOYER <i....@intersystemes.fr> on 2024/01/31 15:24:12 UTC

How to change
Hi,

I'd like to change the background image of a <s:BorderContainer on loading.

I try to do something like that but it doesn't work :

*/var imgFond:spark.components.Image=new spark.components.Image;/*

/*var pathToImg:String = new
urlManager().urlOEMYSQL()+"/Custom/Borne/"+sFondBorne;
  imgFond.source = pathToImg;
  bcFond.setStyle('backgroundImage', imgFond);*/

(bcFond is the id of the <s:BorderContainer)

Could you help me to find the best solution to do that.

Many thanks in avance.

Best regards.

--


      IsabelleLOYER