Well I had to lookup the english/german error text for that first ;-)

The problem is "TypeError: Error #1007: Instantiation attempted on a
non-constructor."
So you are trying to instantiate something that isn't instantiatable.

If you are sure your code is coorect, are you by any chance using some
sort of Reflection to instantiate objects?
I have run into problems with this, because the Flex compiler doesn't
detect the usage of a class instantiated via reflection and strips the
class out of the resulting swf. If you try to instantiate them I got a
Class object of "null" and when I tried to instantiate this, I got a
similar/the same error.

If this is the case, the simple way is to have some sort of dummy
variable referencing the class type in your application:

var dummy:Array = [MyCoolReflectionClass, AnotherCoolReflectionClass];

The other option would be to manually force flexmojos to include the
class definition in the output.

Chris

2012/8/23 ennhi <[email protected]>:
> Hi guys,
>
> I've got a problem when I load a module,it pops up an error.when compile, it
> passed successfully.
>
> my project :flex project (flex sdk 3.2)
> my environment: maven3.0+flexmojos+nexus+hudson
>
> Here is a part of my pom.xml:
> <plugin>
>     <groupId>org.sonatype.flexmojos</groupId>
>     <artifactId>flexmojos-maven-plugin</artifactId>
>     <version>3.9</version>
>     <extensions>true</extensions>
>   <configuration>
>      <sourceFile>Index.mxml</sourceFile>
>      <compilerWarnings>
>
> <show-unused-type-selector-warnings>false</show-unused-type-selector-warnings>
>      </compilerWarnings>
>      <moduleFiles>
>     <module>/com/wisoft/aims/ItemsBrowse.mxml</module>
>      </moduleFiles>
>      <compiledLocales>
>       <locale>zh_CN</locale>
>      </compiledLocales>
>      <stripModuleArtifactInfo>true</stripModuleArtifactInfo>
>      <targetPlayer>9.0.124</targetPlayer>
>      <debug>true</debug>
>      <optimize>false</optimize>
>      <autoSortRsls>true</autoSortRsls>
>      <encoding>GBK</encoding>
>      <rslUrls>
>       <rsl>{artifactId}.{extension}</rsl>
>      </rslUrls>
>      <verifyDigests>false</verifyDigests>
>      <keepAllTypeSelectors>true</keepAllTypeSelectors>
>     </configuration>
>    </plugin>
>
> <dependency>
>    <groupId>com.adobe.flex.framework</groupId>
>    <artifactId>playerglobal</artifactId>
>    <version>3.2.0.3958</version>
>    <classifier>9</classifier>
>    <type>swc</type>
>   </dependency>
>  <dependency>
>    <groupId>com.adobe.flex.framework</groupId>
>    <artifactId>framework</artifactId>
>    <version>3.2.0.3958</version>
>    <type>swc</type>
>   </dependency>
>
> And the error says:
> TypeError: Error #1007: 尝试实例化的函数不是构造函数。
>  at
> mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4149]
>  at
> mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4186]
>  at
> mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:1774]
>  at
> mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4110]
>  at
> mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1880]
>  at
> mx.controls::AdvancedDataGrid/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6007]
>  at
> mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3072]
>  at mx.managers::LayoutManager/validateDisplayList()
>  at mx.managers::LayoutManager/doPhasedInstantiation()
>  at Function/http://adobe.com/AS3/2006/builtin::apply()
>  at mx.core::UIComponent/callLaterDispatcher2()
>  at mx.core::UIComponent/callLaterDispatcher()
>
> Is there any problem?
> Can someone advice me how I can fix this?   Thank you very much.
>
> --
> 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
>
> http://flexmojos.sonatype.org/

-- 
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

http://flexmojos.sonatype.org/

Reply via email to