Packagecom.renaun.rpc
Classpublic dynamic class RemoteObjectAMF0
InheritanceRemoteObjectAMF0 Inheritance mx.rpc.AbstractService
Implementsmx.core.IMXMLObject, mx.rpc.mxml.IMXMLSupport

The RemoteObjectAMF0 class provides a method to connect to AMF0 gateways.



Public Properties
 PropertyDefined by
  concurrency : String
Value that indicates how to handle multiple calls to the same service.
RemoteObjectAMF0
  endpoint : String
URL to the AMF0 server's gateway.
RemoteObjectAMF0
  gateway_conn : RemotingConnection
[read-only] The RemotingConnection that references the current connection to the AMF gateway.
RemoteObjectAMF0
  makeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects.
RemoteObjectAMF0
  methods : Array
RemoteObjectAMF0
  results : *
Carray over from Flex 1.5.
RemoteObjectAMF0
  showBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
RemoteObjectAMF0
  source : String
Defines the Service classes name.
RemoteObjectAMF0
Protected Properties
 PropertyDefined by
  _methodResponderLookup : Object
RemoteObjectAMF0
  _methodResultLookup : Object
RemoteObjectAMF0
  _methodsLookup : Object
RemoteObjectAMF0
Public Methods
 MethodDefined by
  
Constructor.
RemoteObjectAMF0
  
initialized(view:Object, id:String):void
Not sure
RemoteObjectAMF0
  
setCredentials(username:String, password:String):void
Set the credentials for the destination accessed by the service.
RemoteObjectAMF0
Protected Methods
 MethodDefined by
  
callProperty(methodName:*, ... args):*
RemoteObjectAMF0
  
getDescendants(name:*):*
RemoteObjectAMF0
  
getProperty(name:*):*
RemoteObjectAMF0
  
setProperty(name:*, value:*):void
RemoteObjectAMF0
Events
 EventSummaryDefined by
   The fault event is dispatched when a service call fails and isn't handled by the Operation itself.RemoteObjectAMF0
   The result event is dispatched when a service call successfully returns and isn't handled by the Operation itself.RemoteObjectAMF0
Property detail
concurrencyproperty
concurrency:String  [read-write]

Value that indicates how to handle multiple calls to the same service. The default value is multiple. The following values are permitted:

The default value is multiple.

This property can be used as the source for data binding.

Implementation
    public function get concurrency():String
    public function set concurrency(value:String):void
endpointproperty 
endpoint:String  [read-write]

URL to the AMF0 server's gateway.

The default value is http://{server.name}:{server.port}/flashservices/gateway.php.

This property can be used as the source for data binding.

Implementation
    public function get endpoint():String
    public function set endpoint(value:String):void
gateway_connproperty 
gateway_conn:RemotingConnection  [read-only]

The RemotingConnection that references the current connection to the AMF gateway.

This property can be used as the source for data binding.

Implementation
    public function get gateway_conn():RemotingConnection
makeObjectsBindableproperty 
makeObjectsBindable:Boolean  [read-write]

When this value is true, anonymous objects returned are forced to bindable objects.

The default value is false.

This property can be used as the source for data binding.

Implementation
    public function get makeObjectsBindable():Boolean
    public function set makeObjectsBindable(value:Boolean):void
_methodResponderLookupproperty 
protected var _methodResponderLookup:Object
_methodResultLookupproperty 
protected var _methodResultLookup:Object
methodsproperty 
methods:Array  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get methods():Array
    public function set methods(value:Array):void
_methodsLookupproperty 
protected var _methodsLookup:Object
resultsproperty 
public var results:*

Carray over from Flex 1.5. It stores the last results value, beware this is the last results value regardless of what method call.

showBusyCursorproperty 
showBusyCursor:Boolean  [read-write]

If true, a busy cursor is displayed while a service is executing. The default value is false.

The default value is false.

This property can be used as the source for data binding.

Implementation
    public function get showBusyCursor():Boolean
    public function set showBusyCursor(value:Boolean):void
sourceproperty 
source:String  [read-write]

Defines the Service classes name. The service class should be defined with out a trailing file extension.

Example: source="com.renaun.samples.login.services.Login" The above source value will tell the AMFPHP gateway to look for a service classes located at /{services}/com/renaun/samples/login/services/Login.php

Each specific gateway can implement the source value differently

The default value is empty string.

This property can be used as the source for data binding.

Implementation
    public function get source():String
    public function set source(value:String):void
Constructor detail
RemoteObjectAMF0()constructor
public function RemoteObjectAMF0()

Constructor.

Method detail
callProperty()method
flash_proxy override function callProperty(methodName:*, ... args):*Parameters
methodName:*
 
... args

Returns
*
getDescendants()method 
flash_proxy override function getDescendants(name:*):*Parameters
name:*

Returns
*
getProperty()method 
flash_proxy override function getProperty(name:*):*Parameters
name:*

Returns
*
initialized()method 
public function initialized(view:Object, id:String):void

Not sure

Parameters
view:Object
 
id:String
setCredentials()method 
public override function setCredentials(username:String, password:String):void

Set the credentials for the destination accessed by the service. The credentials are applied to all services connected over the same ChannelSet. Note that services that use a proxy or a third-party adapter to a remote endpoint will need to setRemoteCredentials instead.

Parameters
username:String
 
password:String
setProperty()method 
flash_proxy override function setProperty(name:*, value:*):voidParameters
name:*
 
value:*
Event detail
faultevent 
Event object type: mx.rpc.events.FaultEvent

The fault event is dispatched when a service call fails and isn't handled by the Operation itself.

The FAULT event type.

resultevent  
Event object type: mx.rpc.events.ResultEvent

The result event is dispatched when a service call successfully returns and isn't handled by the Operation itself.

The RESULT event type.