Hi all,
We are planning to convert our mx:applications to mx:modules for performance,
integrity, usability reasons.
In each of our applications we heavily use Application.application to refer
Application variables.
AppOne.mxml
------------
<mx:Application ....>
<mx:Script>
<![CDATA[
public var isApprovedUser:Boolean = false
]]>
</mx:Script>
......
<mx:workLoadComp id="wlComp"/>
......
</mx:Application>
workLoadComp.mxml
---------------------
<mx:Canvas ...>
<mx:Script>
<![CDATA[
//Check is Approved User
if(Application.application.isApprovedUser){
//Some logic
}
]]>
</mx:Script>
</mx:Canvas>
Now we would like to convert AppOne.mxml into mx:Module. Is there any way we
can just replace all Application.application references to point Module
reference. What is the best way to deal this?
Thanks in advance.