2010-05-26 7 views
1

4.찾을 수 없습니다 컴파일 된 리소스 번들

내 최신 프로젝트에이 문제로 실행했습니다,하지만 난 거의 빈 프로젝트를 다시 생성 할 수 있었다.
다음은 내가 한 일입니다.

  • 이 프로젝트 내에서 로케일/ko 페이지 폴더를 만든 새로운 플렉스 프로젝트
  • 을 만들었습니다.
  • SparkDownloadProgressBar를 확장하는 클래스가 추가되었습니다. 이 모든 클래스는 레이블을 만들려고 시도합니다.

이 응용 프로그램을 디버깅하려고하면 다음 오류가 발생합니다.

Error: Could not find compiled resource bundle 'components' for locale 'en_US'. 
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:340] 
at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:269] 
at mx.resources::ResourceManagerImpl/processInfo()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:387] 
at mx.resources::ResourceManagerImpl()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:122] 
at mx.resources::ResourceManager$/getInstance()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\resources\ResourceManager.as:111] 
at mx.core::UIComponent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:3728] 
at spark.components.supportClasses::TextBase()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\supportClasses\TextBase.as:154] 
at spark.components::Label()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Label.as:384] 
at Preloader()[C:\SVN\Games\Social\Test\src\Preloader.as:21] 
at mx.preloaders::Preloader/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:253] 
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1925] 
at mx.managers::SystemManager/initHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2419] 

플렉스 컴파일러/추가 컴파일러 인수 섹션은 "-locale ko 페이지"를 포함하지 않습니다,하지만 난 실행의 현지화 지역에 따라이 부하 특성이 다른 파일을 가질 계획입니다로 그냥이를 제거하지 않습니다 내가 그것을 이해한다면, 필자가 사용하려고하는 각 로케일을 컴파일 인수 행에 추가해야 할 것이다.

나는이 문제를 어떻게 공격 할 것인지를 놓치고 있습니다. 이 문제에 도움이 될 수있는 정보가 더 필요하면 그 정보를 기꺼이 제공 할 것입니다. 도와 주셔서 미리 감사드립니다!

+0

정확히 똑같은 문제에 직면하고 있습니다. Flex 4 웹 프로젝트는 컴파일러 옵션을 통해 설정된 사용자 정의 로캘로 정상적으로 작동했으며 SparkDownloadProgressBar를 확장하는 사용자 정의 사전 로더를 만들었습니다. 프리 로더가 비어 있으면 작동합니다. 그러나'Label'이나'Image'를 추가하자마자 실패합니다 ... – tripu

답변

1

프리 로더 이 실제 프레임 워크을로드하므로로드 될 때까지 Flex의 클래스를 사용할 수 없기 때문에 발생할 수 있습니다. 표준 TextField를 사용하면 정상적으로 작동합니다.

관련 문제