Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 在Flex 4.7 DateSpinner上是否有一种方法可以只在月份和年份之间进行选择_Actionscript 3_Apache Flex_Mobile_Flex4.5_Flex4.7 - Fatal编程技术网

Actionscript 3 在Flex 4.7 DateSpinner上是否有一种方法可以只在月份和年份之间进行选择

Actionscript 3 在Flex 4.7 DateSpinner上是否有一种方法可以只在月份和年份之间进行选择,actionscript-3,apache-flex,mobile,flex4.5,flex4.7,Actionscript 3,Apache Flex,Mobile,Flex4.5,Flex4.7,我只允许在DateSpinner上选择月份和年份。这在Flex SDK 4.7中可能吗? Thx这不是一个可以启用/禁用的设置 一种方法是使用喷丝头列表,其中包含您想要的年份值 但是您也可以扩展DateSpinner并隐藏您不想看到的组件。 如果查看DateSpinner源,您会看到三个属性: /** * The SpinnerList that shows the year field of the date. */ protected var yearList:S

我只允许在DateSpinner上选择月份和年份。这在Flex SDK 4.7中可能吗?
Thx

这不是一个可以启用/禁用的设置

一种方法是使用喷丝头列表,其中包含您想要的年份值

但是您也可以扩展DateSpinner并隐藏您不想看到的组件。 如果查看DateSpinner源,您会看到三个属性:

  /**
    *  The SpinnerList that shows the year field of the date.
    */
   protected var yearList:SpinnerList;

   /**
    *  The SpinnerList that shows the month field of the date.
    */
   protected var monthList:SpinnerList;

   /**
    *  The SpinnerList that shows the date field of the date.
    */
   protected var dateList:SpinnerList;
一旦微调器初始化,就可以将其可见性和includeinlayout设置为false