본문 바로가기

FLEX

[FLEX] Flash Builder Skin 관련 옵션

Module을 load 하려고 할때 Graph 관련 에러가 난다.

ArgumentError: Error #2004: One of the parameters is invalid.
at flash.display::Graphics/drawRect()
at mx.graphics::RectangularDropShadow/drawShadow()[E:\dev\4.0.0\framewor ks\project s\framework\src\mx\graphics\RectangularDropShadow.as:575]
at cobalt.skins::BorderSkin/updateDisplayList()[E:\dev\4.0.0\samples\the mes\cobalt \src\cobalt\skins\BorderSkin.mxml:113]
at mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\pr ojects\fra mework\src\mx\core\UIComponent.as:8531]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\framewo rks\projec ts\framework\src\mx\managers\LayoutManager.as:663]:

검색해보니 다음과 같은 글을 발견했다...

The style manager did change in Flex4. In Flex3 there was only one style manager for all application and modules. Setting a style in one module would change the style for all modules. In Flex4 each application and module has its own style manager and can set styles independently. Setting -isolate-styles=false removes the style manager for an application/module so the Flex3 behavior can be maintained without needing to set the Flex3 compatibility version option. Compiling all applications and modules with -isolate-styles=false will give you a single style manager as in Flex3 but you will be prone to getting type coercion errors when using Spark components (that's one of the reasons we made the change).

From looking at the stack I don't recognize the problem. It would be helpful if you would write up a bug with a reproducible test case attached.

글쓴 사람도 이상이 없어 보이니 버그레포트를 제출하라고 한다.

하지만
Flash Builder 4 에서 다음과 같이 하면 각각의 Application과 Module에서 각각의 skin을 갖지 못하게 할 수 있다고 한다.

사용자 삽입 이미지

그러면 Halo든 Spark 든지 어떤 스킨도 오류없이 쓸 수 있다.
버그 패치를 기다려야 할것 같다.  쩝


참조 : http://forums.adobe.com/thread/630900?tstart=-1