I have been trying to add existing components like Button, TextArea, etc. during the runtime via an external .as file. The code gives me no compile time error nor any runtime error but the component attached during runtime does not get displayed, when I run the project. I even tried the ways mentioned in various documents for doing this but i cant see the component when I run the project.
Following is the code I had written: var tmp:Button = new Button(); tmp.label = "sd afjhfjks"; mainStage.addChild(tmp); Here "mainStage" is an intance of MovieClip. I even tried attaching to a UIComponent instance but no result. Can someone give me a solution for this. Amol.
