0 Replies Latest reply on May 30, 2011 6:39 AM by f.jacques1985

    Problem with a spark textarea over a canvas

    f.jacques1985

      Hi,

       

      When i place a spark textarea on a transparent canvas where are mask by an image, the cursor of the textarea become white. It is a problem if the image that are below the canvas is also white. We don't see the cursor.

      here is the code

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:filters="flash.filters.*"
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()">
        
         
          <fx:Script>
              <![CDATA[
                  import mx.controls.Image;
                  function init(){
                      var maskImage=new Image();
                      maskImage.name = "maskBlocForVisu";
                      maskImage.source ="source of the mask image";
                      maskImage.cacheAsBitmap = true;
                      containerVisu.addChild(maskImage);
                      bloc.mask = maskImage;
                      bloc.cacheAsBitmap = true;
                      textareabis.setStyle("contentBackgroundAlpha",0);
                     
                  }
              ]]>
          </fx:Script>
         
          <mx:Canvas id="containerVisu" x="30" y="30">
              <mx:Image id="visuImage" source="source of the visu image" />
              <mx:Canvas id="bloc" width="3000" height="3000" backgroundColor="#FF0000" backgroundAlpha="0"    >
                  <s:TextArea x="330" y="230" width="50" height="50" id="textareabis"   >
                     
                  </s:TextArea>   
                 
              </mx:Canvas>   
          </mx:Canvas>

       

      The problem are if the visuImage is white

      There is no problem if i use a mx textarea in place of spark textarea.

      Can i change the color of the cursor of a textarea ?

       

      Thanks you for your help
         
         
         
         
      </s:Application>