3 Replies Latest reply on Jun 20, 2010 1:26 AM by bernardwhk

    [Flex 4] Css trouble

    bernardwhk

      Hi there, I am trying to use css on VideoDisplay, i have tried using the spark VideoDisplay as well as mx, but I don't seems to be able to get the cornerRadius working, details as below.

      I import the css as:

      <fx source="some.css"/>

      /**

      * Inside the CSS

      */

      @namespace s "library://ns.adobe.com/flex/spark";

      @namespace mx "library://ns.adobe.com/flex/mx";

       

      mx|VideoDisplay {

      cornerRadius: 5;

      }

       

      s|VideoDisplay {

      cornerRadius: 5;

      }

       

      and I dynamically initialize the display like

      var avid:VideoDisplay = new VideoDisplay();

      I wonder if it's just me? or there is something funny about flex 4? I mean I am quite new to flex, but it should work intuitively.

      I also tried

      <mx:VideoDisplay cornderRadius="10"/>