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

    convert xml to control

    enginço

      Hi, I have an xml as follows:

       

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

       

      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?