ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
mx.core 

IFactory  - AS3 Flex

Packagemx.core
Interfacepublic interface IFactory
Implementors ClassFactory, PanelBreak

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The IFactory interface defines the interface that factory classes such as ClassFactory must implement. An object of type IFactory is a "factory object" which Flex uses to generate multiple instances of another class, each with identical properties.

For example, a DataGridColumn has an itemRenderer of type IFactory; it calls itemRenderer.newInstance() to create the cells for a particular column of the DataGrid.

Related API Elements



Public Methods
 MethodDefined By
  
Creates an instance of some class (determined by the class that implements IFactory).
IFactory
Method Detail

newInstance

()method
public function newInstance():*

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Creates an instance of some class (determined by the class that implements IFactory).

Returns
* — The newly created instance.