Hi All,

I have an air app that I'm optimising with flexmojos, everything works fine
except one particular module that reports missing auto generated style
variables of the type var _embed_Assets_swf_Tree_Icon - what i find
particularly strange is if I compile it in debug mode these external
dependencies are picked up, however if I set debug to false as well as the
size of the module almost halving these external style dependencies report
the application reports the following:

[SWF] FundModelingModule.swf - 1,519,407 bytes after decompression
[Fault] exception, information=ReferenceError: Error #1065: Variable
_class_embed_css_Assets_swf__95129732_TreeNodeIcon_1486558684 is not
defined.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

_class_embed_css_Assets_swf_1031922979_mx_skins_cursor_BusyCursor_684595555
is another variable.

i've looked at my link-report for the module in both cases and these
variables are external dependencies of the autogenerated style file for the
module 

So I see in the link report...

</script> -<script optimizedsize="49126" size="57336" mod="1441379373747"
name="_FundModelingModule_Styles.as"> <def id="_FundModelingModule_Styles"/>
<pre id="Object"/> <dep id="mx.skins.halo:DataGridColumnResizeSkin"/> <dep
id="spark.skins.spark:ButtonBarSkin"/> <dep
id="spark.skins.spark:DropDownListSkin"/> <dep
id="mx.skins.halo:ColorPickerSkin"/> <dep
id="_class_embed_css_Assets_swf__567071942_TreeNodeIcon_1616188880"/> <dep
id="mx.skins.halo:DataGridSortArrow"/>

And

-<external-defs> <ext id="com.lgim.indigo.adapter:IListView"/>
....
<ext id="_class_embed_css_Assets_swf__567071942_TreeNodeIcon_1616188880"/>
....

In fact on comparing the link reports (debug with non-debug) with a diff
checker they are virtually identical.

Has anybody any ideas as to how this can be solved by the way here are key
aspects of my configuration

        <flex.version>4.12.1.20140427</flex.version>
        <apparat.version>1.0-RC9</apparat.version>
        <air.version>3.8</air.version>
        <flexmojos.version>6.0.1</flexmojos.version>
        <swfVersion>12</swfVersion>
        <targetPlayer>12.0</targetPlayer>
        <playerglobal.version>12.0</playerglobal.version>
        <incremental>false</incremental>
And my flex framwork has been mavenised to use the adobe dependencies rather
than the apache ones.

I'd prefer to solve this without having to go to the apache dependencies and
FM 7.0.1 if possible.

Any suggestions and can anyone explain why just changing debug from true to
false prevents my module from working!

Thanks in advance!

Lyndon





--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Reference-Error-1065-missing-variable-definitions-in-Module-of-Air-application-tp11147.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to