User login

Textfield Factory

This factory places text fields on the page. The factory is initialized like this:

var tfFactory:TextFieldCreator = new TextFieldCreatorConcrete();

and new textfields are created like this:
item is an XML piece,
100 is the x location,
150 is the y location,
this is the parent
tfFactory.addTf(model,controller,item,100,150,this);

You can download the package here:
http://www.code.ericschleeper.com/samples/textFieldfact.zip

The class that this code is located it in is here:
http://www.code.ericschleeper.com/samples/CompositeViewWithFactory.as
and this is the XML:
http://www.code.ericschleeper.com/samples/sample.xml