| Package | mx.data | 
| Interface | public interface IItemReference extends IEventDispatcher | 
| Implementors | ItemReference | 
| Language Version: | ActionScript 3.0 | 
| Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 | 
| Runtime Versions: | Flash Player 10.1, AIR 2.0 | 
DataService.getItem() 
     and DataService.createItem() methods to provide a way to manage 
     a reference to the remote object.
      
      | Property | Defined By | ||
|---|---|---|---|
| valid : Boolean  
         Set to false if the ItemReference becomes invalid
         either because the server faulted when trying to retrieve the item
         or if the retrieved item was itself null. | IItemReference | ||
| Method | Defined By | ||
|---|---|---|---|
|  | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void 
	Registers an event listener object with an EventDispatcher object so that the listener
	receives notification of an event. | IEventDispatcher | |
|  | 
	Dispatches an event into the event flow. | IEventDispatcher | |
|  | 
	Checks whether the EventDispatcher object has any listeners registered for a specific type 
	of event. | IEventDispatcher | |
| 
         Releases the managed item reference retrieved with the
         getItem() or createItem() method call that returned 
         this ItemReference. | IItemReference | ||
|  | 
	Removes a listener from the EventDispatcher object. | IEventDispatcher | |
|  | 
	Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | IEventDispatcher | |
| valid | property | 
valid:Boolean| Language Version: | ActionScript 3.0 | 
| Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 | 
| Runtime Versions: | Flash Player 10.1, AIR 2.0 | 
 
         Set to false if the ItemReference becomes invalid
         either because the server faulted when trying to retrieve the item
         or if the retrieved item was itself null.  
         This property can be used to bind to your user interface controls to 
         display status information for this item without having to listen for 
         explicit fault events.
          
         
This property can be used as the source for data binding. When this property is modified, it dispatches the  propertyChange                 event.
Implementation
    public function get valid():Boolean    public function set valid(value:Boolean):void| releaseItem | () | method | 
 public function releaseItem(copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):void| Language Version: | ActionScript 3.0 | 
| Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 | 
| Runtime Versions: | Flash Player 10.1, AIR 2.0 | 
         Releases the managed item reference retrieved with the
         getItem() or createItem() method call that returned 
         this ItemReference.  
         It is possible to have more than one ItemReference that points to the
         same item on the same client. 
         Use this method to release the proper reference.
         
         
Parameters
| copyStillManagedItems:Boolean(default =true)— Boolean indicating that a copy of this item should be
         placed in this ItemReference should the current item still be referenced. 
         This can occur if more than one call toDataService.getItem()for this
         same item is made, or if this item is referenced by a collection returned from a call toDataService.fill(). | |
| enableStillManagedCheck:Boolean(default =true)— Boolean indicating if the item should be checked for
         additional references. | 
Thu Dec 4 2014, 05:50 PM -08:00