USING FLEX 3 ADVANCEDDATAGRID IN FLASHDEVELOP

1686 단어 FlexFlash
Those of you attempting to use the new Flex 3 AdvancedDataGrid component in FlashDevelop might have noticed that you are getting the following error:
Error: Could not resolve <mx:AdvancedDataGrid> to a component implementation.

This is because the AdvancedDataGrid (along with a bunch of other components) are not part of the basic Flex framework, but are provided in an external swc.  Although Flex Builder 3 includes these automatically, FlashDevelop does not so you need to manually include the required components.
To do this take the following steps:
Right click on the project root in the Project Manager and select Add->Library Asset…
Navigate to the datavisualization.swc file (this will be in Flex Builder 3\sdks\3.0.0\frameworks\libs) and click Open
Once again click on the project root and select Add->Library Asset…
This time navigate to datavisualization_rb.swc (this will be in Flex Builder 3\sdks\3.0.0\frameworks\locale\en_US) and click Open
Now you will be able to use AdvancedDataGrid and all other charting components without ever touching Flash Builder 3!
P.S. If you include datavisualization.swc but forget to include
datavisualization_rb.swc you will get the following error:
Error: Unable to resolve resource bundle “datamanagement” for locale “en_US”.

또 하나는 Flex Builder가 가지고 있는 sdk에 넣는 것이다. 사실은 매우 간단하다. 바로 데이터visualization을 사용하는 것이다.swc를 Fx\sdk\version\frameworks\libs로 복사합니다.datavisualization_rb.swc를 Fx\sdk\version\frameworks\locale\en_로 복사US.datavisualization rsls를 Fx\sdk\version\frameworks\rsls로 복사합니다.안 되면 Fx를 다시 켜세요.

좋은 웹페이지 즐겨찾기