[問題] 修改flex google finance 程式遇到的問題

看板Flash作者 (22)時間17年前 (2009/02/12 12:29), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
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

02/13 15:34, , 1F
第三,作者在討論區有解釋,好像是Flex2 跟 3 版本的問題
02/13 15:34, 1F
文章代碼(AID): #19awMNoy (Flash)