2009-04-27 1 views
0

Flexアプリケーション内のUIレンダリングの矛盾を誰もが気づいていません。リピータ内のラジオボタンやテキストコントロールに問題があります。以下はサンプルです...FlexアプリケーションのUIレンダリングの矛盾

このような不一致はどうなりますか?コンピュータのパフォーマンス、インターネットの速度ですか?

以下のリピータには、Flexのe4xサポートを使用してデータプロバイダとして機能するXML Webサービスがあります。特定のFlexアプリケーションでレンダリングできるデータのしきい値はありますか?

注時間のほとんどことは、Flexには、[OK]アプリをレンダリングしますが、時間のほとんどは、このアプリケーションでは十分ではありません。

ありがとうございました。

alt text http://img87.imageshack.us/img87/1435/error3b.jpg

以下MXMLコード、要求通り:

 

<mx:Repeater id="rpQuestions" width="100%" height="100%" dataProvider="{srv.lastResult..Question}"> 
    <mx:Box backgroundColor="#FFFF99" width="100%"> 
     <mx:Text styleName="questionText" text ="{rpQuestions.currentIndex+1 +': ' [email protected]}" fontSize ="12" width="100%" selectable="false" /> 
    </mx:Box> 
    <mx:HBox visible="{rpQuestions.currentItem..Image.length() > 0}" includeInLayout="{rpQuestions.currentItem..Image.length() > 0}"> 
    <mx:Repeater id="rpImages" dataProvider=quot;{rpQuestions.currentItem..Image}" > 
     <mx:Image source="{[email protected]}" width="350" height="250" /> 
    </mx:Repeater> 
    </mx:HBox> 
    <mx:Repeater id="rpAnswers" dataProvider="{rpQuestions.currentItem..Answer}" width="75%" height="75%"> 
     <mx:HBox> 
      <mx:Spacer width="12" /> 
      <!-- NOTE: the RadioButton's label property is not used because long text won't wrap. Instead we use a Text control. --> 
      <mx:RadioButton 
      groupName="{[email protected]}" 
      value="{[email protected]}" 
      click="_questionAnswerd(event)" 
      selected="{[email protected] == '1'}" 
         /> 
     <mx:Text text="{[email protected]}" width="600" selectable="false" /> 
     <!-- End--> 
     </mx:HBox> 
    </mx:Repeater> 
</mx:Repeater> 
 
+0

あなたは、コードサンプルを投稿することができますか? –

+0

mxmlを含むように編集したばかりの質問。 – mmattax

答えて

0

私はリピータ内部のhboxさんは、高さの割合を設定していることを確認するためにしようとするだろう(と1のために100%を言いますラジオボタン、リピータは75%に設定されています)。

または、リピーターがサブコンポーネントの作成を完了した後で、表示/サイズを無効にすることができます( 'repeatEnd'イベント)。