Flex Hero 4.5.0.19786 中 AdvancedDataGrid 闪烁的解决方法
自从我更新到最新版本的 Flex Hero (4.5.0.19786) 后,AdvancedDataGrids 在带有 Flash Builder Burrito 预览的设计视图中闪烁。有没有人遇到过这个问题,如果是的话,除了退回版本之外还有其他解决方法吗?
更新02 19:29 这在以前的 Hero 版本中没有发生,例如 18623。我使用的是默认的 Spark 主题,没有其他特别的。
更新 01 19:15
我将问题追溯到同一表单上的自定义实例(默认自定义,即基于 AdvancedDataGrid 执行 new-> 组件的结果)。
组件声明:
<?xml version="1.0" encoding="utf-8"?>
<mx:AdvancedDataGrid
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</mx:AdvancedDataGrid>
自定义组件实例化。注意“fo”是一个命名空间,表示自定义组件所在的包的路径。
<fo:adgTest width="300" height="200">
<fo:columns>
<mx:AdvancedDataGridColumn headerText="blah1" />
<mx:AdvancedDataGridColumn headerText="blah2" />
</fo:columns>
</fo:adgTest>
事实证明,这个自定义版本的 AdvancedDataGrid 会导致设计视图崩溃。很奇怪。
更新03 2011-02-11 13:36 自定义 AdvancedDataGrid 不会导致设计视图崩溃,除非我向其中添加列。
更新04 2011-02-11 15:13 提交为错误:https://bugs.adobe.com/jira/browse/SDK- 29507
Since I updated to the latest build of Flex Hero (4.5.0.19786) AdvancedDataGrids flicker in design view with Flash Builder Burrito preview. Has anyone run into this and if so is there a work-around besides dropping back a version?
Update 02 19:29
This did not occur in previous Hero builds, e.g 18623. I am using the default Spark theme, nothing else particularly special.
Update 01 19:15
I tracked down the problem to an instance of a custom (default custom, i.e the result of doing new->component based on AdvancedDataGrid) on the same form.
The component declaration:
<?xml version="1.0" encoding="utf-8"?>
<mx:AdvancedDataGrid
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</mx:AdvancedDataGrid>
The custom component instantiation. Note "fo" is a namespace representing the path to the package for which the custom component resides.
<fo:adgTest width="300" height="200">
<fo:columns>
<mx:AdvancedDataGridColumn headerText="blah1" />
<mx:AdvancedDataGridColumn headerText="blah2" />
</fo:columns>
</fo:adgTest>
It turns out that this custom version of AdvancedDataGrid causes the design view to break down. Very odd.
Update 03 2011-02-11 13:36
A custom AdvancedDataGrid does not cause design-view breakdown unless I add columns to it.
Update 04 2011-02-11 15:13
Filed as a bug: https://bugs.adobe.com/jira/browse/SDK-29507
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想,这不是sdk的问题。这是设计师(Flex Burrito)的问题。我有完全相同的环境,我的卷饼版本是287807。
我的 AdvancedDataGrit 不闪烁!
您是否应用了某些样式或其他样式?
按照问题中描述的步骤操作后,我的舞台上还有一个闪烁的自定义 AdvancedDatagrid。当我单击另一个组件(选项卡)并返回到已实现的 adg 时,闪烁停止。
当我关闭带有闪烁 adg 的组件并再次打开它时,adg 再次闪烁。
使用 SDK 的预版本后,adg 不会闪烁。我还注意到,图形是不同的。
在以前的版本中,我可以看到一些带有展开或闭合箭头的文件夹图标。
切换到 19786 后,文件夹图标消失并开始闪烁。
有问题,我会在 adobe bug 库中启动一个线程。
在我看来,你没有做错什么。没有更好的方法,如果我拖动自定义 ADG 或在代码视图中对其进行编码,效果是相同的。结果总是在设计视图中出现闪烁的广告。
抱歉造成误解和我的英语不好
BR弗兰克
I think, this is not the problem of sdk. Its a problem of the designer (Flex Burrito). I have exactly the same envoirment, and my version of burrito is 287807.
My AdvancedDataGrit does NOT flicker!
Do you have some styles applied or something else?
After following your steps described in your question, i also have a flickering custom AdvancedDatagrid on my stage. When i click to another component (tab) and go back to the implemented adg, the flickering stops.
When i close the Component with the flicker adg in it and open it again, the adg flicker again.
With the preversion of the sdk the adg doesn't flicker. I notice also, that the graphic is different.
In the preversion, i can see some folderIcons wirh teh expanded or closed arrows.
After switching to 19786 the foldericons disapear and the flickering starts.
There is something wrong and i would start a thread in adobe bug base.
In my opinion, you did nothing wrong. There is no better way and it is equal if i drag the custom ADG or code it in codeview. The result is always a flicker adg in designview.
Sorry for the misunderstands and my bad english
BR Frank