kxys422834
kxys422834
2011-10-12 14:16

flex中datachooser没属性怎么回事

  • flex
  • flash

主程序:
[code="java"]
<?xml version="1.0" encoding="utf-8"?>
backgroundGradientAlphas="[0x000000,0x00ffff]"
xmlns:dataEntryContorls="com.flexCoreComponents.uiContorls.dataEntryContorls.*" xmlns:local="*">

<dataEntryContorls:DateChooser />

/mx:Application
[/code]

CheckBox_flex3引用代码
[code="java"]
<?xml version="1.0" encoding="utf-8"?>

<mx:Script>
    <![CDATA[

        protected function date1_changeHandler(date:Date):void
        {
            label_1.text = "date:" + date.getFullYear();
        }

    ]]>
</mx:Script>

<mx:VBox>
<mx:DateChooser  change="date1_changeHandler(DateChooser(event.target).selectedDate" />
    <mx:Label id="label_1" text="date:" />
</mx:VBox>

/mx:Canvas
[/code]
问题是date1_changeHandler(DateChooser(event.target).selectedDate中的[color=red]selectedDate[/color]属性没有,这是为什么啊?我把这个DateChooser的组件放在主程序中则能够点出selectedDate这个属性。求解决!

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

6条回答

为你推荐