0 Replies Latest reply on Nov 10, 2010 4:37 AM by D.Rajesh Reddy

    flex pass a uicomponent as canvas backgroundImage

    D.Rajesh Reddy

      Can any one help me with the below mentioned problem?



      Suppose v1 is a Canvas.

      Now we need to set a background image for Canvas 'v1'.


      So we write,



      So, this is the kind of declaration we use generally to set a backgroundImage for  a canvas.


      But, can we pass a UIComponent directly instead of giving the url followed by filename.extension?


      I mean v1.setStyle("backgroundImage","Image Type"); ?



      is this possible?


      Please help me with this?



      Thanks and Regards,