I have a multi module Flex 4.0.0.10845 project which builds an runs
fine under my IDE (Flash Builder 4 and IntellijJ IDEA 9). When I build
it with Flex Mojos (3.4.2/3.5), though, I get a weird runtime message
from Flash Player Debug:

TypeError: Error #2007: Parameter justificationStyle darf nicht 'null'
sein.
        at flash.text.engine::EastAsianJustifier/set justificationStyle()
        at spark.components::Label/createTextLines()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components\Label.as:
792]
        at spark.components::Label/http://www.adobe.com/2006/flex/mx/
internal::composeTextLines()[E:\dev\gumbo_beta2\frameworks\projects
\spark\src\spark\components\Label.as:424]
        at spark.components.supportClasses::TextBase/measure()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components
\supportClasses\TextBase.as:421]
        at mx.core::UIComponent/measureSizes()
        at mx.core::UIComponent/validateSize()
        at mx.managers::LayoutManager/validateSize()
        at mx.managers::LayoutManager/doPhasedInstantiation()
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()

" justificationStyle darf nicht 'null' sein." means "...must not be
'null'".

When I compile with IntelliJ IDEA (which runs fine), the build uses
the SDK flex-config.xml with the following additional flex-config.xml:

<flex-config xmlns="http://www.adobe.com/2006/flex-config";>
    <target-player>10.0.0</target-player>
    <compiler>
        <define>
            <name>CONFIG::ideBuild</name>
            <value>true</value>
        </define>
        <debug>true</debug>
        <locale>
            <locale-element>de_DE</locale-element>
        </locale>
        <source-path>
            <path-element>air/src/main/flex</path-element>
            <path-element>app/src/main/flex</path-element>
            <path-element>app/target/generated-sources</path-element>
            <path-element>common/src/main/flex</path-element>
            <path-element>localization/src/main/flex</path-element>
            <path-element>localization/target/generated-sources</path-
element>
            <path-element>modules/content/src/main/flex</path-element>
            <path-element>modules/discover/src/main/flex</path-
element>
            <path-element>modules/search/src/main/flex</path-element>
            <path-element>modules/theme/t-systems/content/src/main/
resources</path-element>
            <path-element>modules/theme/t-systems/discover/src/main/
resources</path-element>
            <path-element>modules/theme/t-systems/search/src/main/
resources</path-element>
            <path-element>theme/t-systems/src/main/flex</path-element>
            <path-element>webapp/src/main/resources</path-element>
        </source-path>
        <library-path append="true">
                        
<path-element>/Users/peter/.m2/repository/org/springextensions/
actionscript/spring-actionscript-core/0.8.1/spring-actionscript-
core-0.8.1.swc</path-element>
                        
<path-element>/Users/peter/.m2/repository/org/as3commons/as3commons-
lang/1.0/as3commons-lang-1.0.swc</path-element>
                        
<path-element>/Users/peter/.m2/repository/org/as3commons/as3commons-
logging/1.1/as3commons-logging-1.1.swc</path-element>
                        
<path-element>/Users/peter/.m2/repository/org/as3commons/as3commons-
reflect/1.1/as3commons-reflect-1.1.swc</path-element>
                        
<path-element>/Users/peter/.m2/repository/org/osflash/thunderbolt/
2.2/thunderbolt-2.2.swc</path-element>
                        
<path-element>/Users/peter/.m2/repository/caurina/transitions/
tweener/1.33.74/tweener-1.33.74.swc</path-element>
                </library-path>
    </compiler>
    <static-link-runtime-shared-libraries>false</static-link-runtime-
shared-libraries>
    <file-specs>
        <path-element>app/src/main/flex/App.mxml</path-element>
    </file-specs>
    <output>webapp/target/bizsphere-salesweb/App.swf</output>
</flex-config>

We use spark components. Is there any voodoo compiler parameter I have
to use when building for Flex 4 with Flex Mojos? Did anybody run
across this problem?

Thanks and Regards,
Peter

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/

Reply via email to