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

    Problem with a spark textarea over a canvas




      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:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()">
                  import mx.controls.Image;
                  function init(){
                      var maskImage=new Image();
                      maskImage.name = "maskBlocForVisu";
                      maskImage.source ="source of the mask image";
                      maskImage.cacheAsBitmap = true;
                      bloc.mask = maskImage;
                      bloc.cacheAsBitmap = true;
          <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"   >


      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