ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
org.osmf.net.metrics 

MetricFactoryItem  - AS3 OSMF

Packageorg.osmf.net.metrics
Classpublic class MetricFactoryItem
InheritanceMetricFactoryItem Inheritance Object

Language Version: ActionScript 3.0
Product Version: OSMF 2.0
Runtime Versions: Flash Player 10, AIR 1.5

MediaFactoryItem is the encapsulation of all information needed to dynamically create and initialize a MetricBase from a MetricFactory.

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  metricCreationFunction : Function
[read-only] Function which creates a new instance of the desired MetricBase.
MetricFactoryItem
  type : String
[read-only] The type of metric handled by this MetricFactoryItem.
MetricFactoryItem
Public Methods
 MethodDefined By
  
MetricFactoryItem(type:String, metricCreationFunction:Function)
Constructor.
MetricFactoryItem
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

metricCreationFunction

property
metricCreationFunction:Function  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 2.0
Runtime Versions: Flash Player 10, AIR 1.5

Function which creates a new instance of the desired MetricBase. The function must return a MetricBase.



Implementation
    public function get metricCreationFunction():Function

type

property 
type:String  [read-only]

Language Version: ActionScript 3.0
Product Version: OSMF 2.0
Runtime Versions: Flash Player 10, AIR 1.5

The type of metric handled by this MetricFactoryItem.



Implementation
    public function get type():String
Constructor Detail

MetricFactoryItem

()Constructor
public function MetricFactoryItem(type:String, metricCreationFunction:Function)

Language Version: ActionScript 3.0
Product Version: OSMF 1.0
Runtime Versions: Flash Player 10, AIR 1.5

Constructor.

Parameters
type:String — An identifier that represents this MetricFactoryItem.
 
metricCreationFunction:Function — Function which creates a new instance of the desired MetricBase. The function must take no params, and return a MetricBase.

Throws
ArgumentError — If any argument is null.