2

フレックス アプリケーションに DateField コンポーネントを追加しようとしていますが、クリックすると次のランタイム エラーが発生します。

[障害] 例外、情報 = ReferenceError: エラー #1069: flash.display.Stage でプロパティ softKeyboardRect が見つからず、デフォルト値がありません。

単純なアプリケーションで DateField を追加すると問題なく動作しますが、別のアプリケーションに追加すると機能しません。

<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
       xmlns:s="library://ns.adobe.com/flex/spark" 
       xmlns:mx="library://ns.adobe.com/flex/mx"
       color="#333333"
       creationComplete="init()">

.... action script code.....

<fx:Declarations>
    .............
</fx:Declarations>

 <mx:Panel id="MainPanel" title="MyApp" height="1000" width="1100" layout="horizontal" verticalScrollPolicy="auto" >

    <mx:HBox id="HBoxHeader" >
            <mx:DateField id="StartDate">
    </mx:DateField>

    </mx:HBox>
    <mx:VBox id = "VBoxGroupHeader_LB" height="950" width="250"   verticalScrollPolicy="on" visible="true" horizontalAlign="center">
        <mx:Label id="groupLable_LB" text="GROUPS"  />
        <mx:LinkBar id="linkBarGroup" direction="vertical" horizontalAlign="center" itemClick="getMembers(String(event.label))"/>
    </mx:VBox>

    <mx:VBox id = "VBoxMembersHeader_LB" height="950" width="250" verticalScrollPolicy="on" visible="true" horizontalAlign="center">
        <mx:Label id="memberLabel_LB" text="MEMBERS" />
        <mx:LinkBar id="linkBarMember" direction="vertical" horizontalAlign="center" itemClick="getMemberTypes('stats.' + activeGroup + '.' + String(event.label))"/>
    </mx:VBox>

    <mx:VBox id = "VBoxGraphs" height="950" width="580" verticalScrollPolicy="on" visible="true">
    </mx:VBox>

 </mx:Panel>

この問題の原因は何ですか?

ありがとう

4

1 に答える 1

4

古い Flash Player をターゲットにしています。SDK 4.6 を使用している場合は、少なくとも Flash Player 11.1 が必要です。

于 2012-06-15T05:22:58.107 に答える