作者cklonger (22)
看板Flash
标题[问题] 修改flex google finance 程式遇到的问题
时间Thu Feb 12 12:29:07 2009
Flex Google Finance
请教几个问题
这个人写出以flex实做Google Finance 的视觉化程式发表在
http://www.meutzner.com/blog/index.cfm/2007/8/14/Google-Finance-with-Flex-Code
总共有五个阶段的flex sample
我修改时使用IDE的是flex builder 3, fllah player版本10
但是在执行与修改source code发生很多问题
首先
作者他应该不是用flex builder3
所以如果用flex builder3 import
要用grneral下的file system 种类import
目的地选被import专案的src 资料夹
第二
作者自行定义某些slider与render
这些as中用了一些旧版的element, builder会出现warring
我根据flex builder建议的element去改
但结果是被改的所有element无法运作
所以我保留这些旧的as与element
第三
我照着他的步骤和以上的配置方法到第三个sample都没问题
但是到第四个以後会出现一个问题
http://www.meutzner.com/blog/attachments/360/Flex_Finance_Step4.html
ReferenceError: Error #1069: mx.core.UITextField 上找不到属性 showRenderer,而
且没有预设值。
at Flex_Finance_Step4/getChartDataPoint()[C:\Documents and Settings\cklonger
\My Documents\Flex Builder 3\gfinace\src\Flex_Finance_Step4.mxml:583]
at Flex_Finance_Step4/__mainChart_mouseMove()[C:\Documents and Settings
\cklonger\My Documents\Flex Builder 3\gfinace\src\Flex_Finance_Step4.mxml:48]
我到有问题的function getChartDataPoint()去改
把mainChart.series[0].getChildAt(i + 1).showRenderer(false);
mainChartVolume.series[0].getChildAt(i).showRenderer(false);
注解掉後发现它是用来处理 当下面的活动式Areachart 撞到左右两边的状况
所以注解掉後会出错 改成showRenderer(false);
或是根据google找的方法
http://www.asfusion.com/blog/entry/stateful-skins-in-flex-3e-color-transitions-in-buttons-now-possible
import mx.core.UITextField 或把一些变数改成[Bindable]都没用
请问有没有人知道怎麽修改才能让此flex正常执行的
谢谢
第四
在firefox上会出现 error retrieve xml date
但是我自己写得其他使用外部httpservice的flex程式都没此问题
此外执行时会出错 但是选全部关闭或继续 它是可run的
如果此错误不会影响功能或正确性 有没有隐藏此错误讯息的方法
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.241.25.133
1F:推 s943:第三,作者在讨论区有解释,好像是Flex2 跟 3 版本的问题 02/13 15:34