0 Replies Latest reply on Sep 22, 2009 1:21 PM by enginço

    convert xml to control


      Hi, I have an xml as follows:


              private var lst:XML =
              <mx:Panel id="p1" width="100%" height="230" title="Oturum Aç">
                      <mx:FormItem labelWidth="80" width="100%" label="Kullanıcı:" color="#ffffff">
                          <mx:TextInput id="txtUser" width="110" color="#ffffff"/>
                      <mx:FormItem labelWidth="80" width="100%" label="Şifre:" color="#ffffff">
                          <mx:TextInput id="txtPassword" displayAsPassword="true" width="110" color="#ffffff"/>
                      <mx:FormItem labelWidth="80" width="100%" label="" color="#ffffff">
                              <mx:Button id="btnLogin" label="Giriş" icon="{buttonIcon}" width="110"/>
                      <mx:FormItem labelWidth="80" width="100%" label="">
                          <mx:CheckBox label="Beni Hatırla" color="#ffffff"/>


      I have many xml like this, but I don't know about content. They are different.

      I want to create controls from this xml and add to application. Is it possible?