5 Replies Latest reply on Feb 11, 2011 1:15 AM by mike_morales

    Trying to dynamically add TextInput into HGroup, need some help

    mike_morales Level 2

      Hey all, I am trying to add a TextInput instance into an HGroup instance all in actionscript, but I am getting an error (implicit coersion, unrelated type to IVisualElement). Doesn't the TextInput class implement the IVisualElement Interface?? Here is a snippit of my code:


      var myHG:HGroup = new HGroup();

      var myTI:TextInput = new TextInput();


      myHG.addElement(myTI); // gives me the error


      However, when I dynamically create radiobuttons, I have no prob adding them to my hgroup??  any ideas of what I am doing wrong??