difference between updateDisplaylist() and CommitProperties()

本文深入探讨了Flex框架中组件属性管理和更新显示列表的过程。解释了commitProperties()方法在添加组件到容器或调用组件的invalidateProperties()方法时的自动执行,以及updateDisplayList()方法如何根据所有先前的属性和样式设置来调整组件的大小和位置,并绘制组件使用的任何皮肤或图形元素。重点阐述了这两个核心方法在确保组件正确渲染和响应变化的重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Commitproperties =>*commitProperties() processes the properties set on the component. You do not call this method directly. Flex calls the commitProperties() method when you use the addChild() method to add a component to a container, or when you call the invalidateProperties() method of the component. Calls to the commitProperties() method occur before calls to the measure() method. This lets you set property values that might be used by the measure() method.*

updateDisplayList => *The **updateDisplayList() method sizes and positions the children of your component based on all previous property and style settings, and draws any skins or graphic elements that the component uses. The parent container for the component determines the size of the component itself. *

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值