Flex渲染中的UI渲染不一致

时间:2009-04-27 15:25:26

标签: flex flex3 air flash

有没有人注意到Flex应用程序中的UI呈现不一致。我在转发器内部遇到了单选按钮和文本控件的问题。以下是一个样本...

会导致这种不一致的原因是什么?电脑性能,网速?

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

请注意,大多数的时间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 +': ' +rpQuestions.currentItem.@QuestionText}" 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="{rpImages.currentItem.@Path}" 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="{rpQuestions.currentItem.@QuestionID}"
            value="{rpAnswers.currentItem.@AnswerID}"
            click="_questionAnswerd(event)"
            selected="{rpAnswers.currentItem.@Selected == '1'}"
                        />
        <mx:Text text="{rpAnswers.currentItem.@Answer}" width="600" selectable="false"  />
        <!-- End-->
        </mx:HBox>
    </mx:Repeater>
</mx:Repeater>

2 个答案:

答案 0 :(得分:0)

我会尽量确保转发器内的hbox设置了一个百分比(例如100%用于带有单选按钮的转发器,其转发器设置为75%)。

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

答案 1 :(得分:0)

相关问题