Hi,As I yesterday mentioned we started some app to write in
flex+amfphp one thing that we need to do is to seperate appliacation
in modules.  As this application needs to be multilingual I got all
content from database in one ArrayCollection and Bind every part with
rigth object. but here some  problems starts. I can't reach variables
of main application whitin module. Does it any way to reach them in
flash way (parent or root) properties with binding. 

here you can see sample codes

main application code

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
  xmlns:mx="http://www.adobe.com/2006/mxml";
  xmlns:local="*"
  layout="absolute"
  width="500" height="510" applicationComplete="ing()">
  
  <mx:Script>
        <![CDATA[
                import modules.login;
                public var basliktxt:String="deneme baslýðý"
                public function ing(){  
                var Login:login= new login()
                this.addChild(Login)
                }
        ]]>
  </mx:Script>

</mx:Application>

Module code

<?xml version="1.0" encoding="utf-8"?>

<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
width="250" height="150" cornerRadius="5" backgroundColor="#FFFFFF">
        <mx:Label x="10" y="9" text="{basliktxt}" id="baslik"/>
        <mx:Label x="10" y="48" text="Label"/>
        <mx:Label x="10" y="74" text="Label"/>
        <mx:TextInput x="53" y="72"/>
        <mx:TextInput x="53" y="46"/>
        <mx:Button x="148" y="102" label="Button" click=""/>
</mx:Module>




Reply via email to