2009-04-27 56 views
0

有没有人注意到Flex应用程序中的UI渲染不一致。我有一个中继器内的单选按钮和文本控件问题。以下是一个示例...Flex应用程序中的UI渲染不一致

什么会导致此类不一致?计算机性能,互联网速度?

下面的中继器使用Flex的e4x支持,具有充当数据提供者的XML Web服务。是否可以在给定的Flex应用程序中呈现数据的阈值?

注意的柔性使得应用程序确定的时间,但的时间是不是在这个应用足够好。

谢谢。

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

您可以发布一个代码示例? – 2009-04-27 16:14:59

回答

0

我会尽力确保该hbox中的中继器内部有高度的百分比集(说100%为一个与单选按钮,其中继器设置为75%)。

或者在转发器完成创建子组件('repeatEnd'事件)后,您可以尝试使显示器/大小无效。