Referência do ActionScript® 3.0 para Adobe® Flash® Platform
Início  |  Ocultar listas de Pacotes e Classes |  Pacotes  |  Classes  |  Novidades  |  Índice  |  Apêndices  |  Por que inglês?
Filtros: Recuperando dados do servidor...
Recuperando dados do servidor...
com.adobe.icc.dc.domain 

VariableInstance  - AS3 Asset Composer

Pacotecom.adobe.icc.dc.domain
Classepublic class VariableInstance
HerançaVariableInstance Inheritance EventDispatcher Inheritance Object
Implementações IDataInstance

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

This class is the runtime representation of the variable present in the letter.



Propriedades públicas
 PropriedadeDefinido por
  caption : String
[somente leitura] The caption property of the underlying value object.
VariableInstance
 Inheritedconstructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto.
Object
  dataType : String
[somente leitura] Return the field type
VariableInstance
  dataTypeValid : Boolean
True if the variable's value filled by the user fits in well as per the data type of the variable.
VariableInstance
  editable : Boolean
[somente leitura] True if the underlying object is editable.
VariableInstance
  name : String
[somente leitura] The name property of the underlying value object.
VariableInstance
  optional : Boolean
[somente leitura] True if the underlying object is optional.
VariableInstance
  subType : String
[somente leitura] The sub type of the data element in case when type of data element specified is ENUM.
VariableInstance
  toolTip : String
[somente leitura] The toolTip property of the underlying value object.
VariableInstance
  valid : Boolean
[somente leitura] Boolean indicating whether the content is valid
VariableInstance
  value : *
The value of the data element(variable or field) associated with the letter instance.
VariableInstance
  valueSet : IList
[somente leitura] The list of value of the data element in case when type of data element specified is ENUM.
VariableInstance
Métodos públicos
 MétodoDefinido por
  
VariableInstance(value:VariableData)
Constructor.
VariableInstance
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento.
EventDispatcher
  
Add the given moduleInstance to this VariableInstance, as a source of the associated Variable.
VariableInstance
  
The function called when the Variable instance is no longer required.It does the clean up like removing event listeners from the dependencies.
VariableInstance
 Inherited
Envia um evento para o fluxo de eventos.
EventDispatcher
  
Get the List of IModuleInstances for all modules that this VariableInstance's Variable is derived from.
VariableInstance
  
Returns the instance of Variable associated with this underlying object.
VariableInstance
 Inherited
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento.
EventDispatcher
 Inherited
Indica se um objeto tem uma propriedade especificada definida.
Object
 Inherited
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro.
Object
 Inherited
Indica se a propriedade especificada existe e é enumerável.
Object
  
Refresh should be called when item is selected.
VariableInstance
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove um ouvinte do objeto EventDispatcher.
EventDispatcher
 Inherited
Define a disponibilidade de uma propriedade dinâmica para operações de repetição.
Object
  
The function to prepare the Variable instance for use.
VariableInstance
 Inherited
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade.
Object
 Inherited
Retorna a representação de string do objeto especificado.
Object
 Inherited
Retorna o valor primitivo do objeto especificado.
Object
 Inherited
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado.
EventDispatcher
Métodos protegidos
 MétodoDefinido por
  
variableDataChangeHandler(event:VariableDataEvent):void
Called when the variable's value changes (which could be the result of a linked variable/field).
VariableInstance
Eventos
 Evento Resumo Definido por
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR ganha o foco do sistema operacional e está se tornando inativo.EventDispatcher
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR perde o foco do sistema operacional e está se tornando inativo.EventDispatcher
Detalhes da propriedade

caption

propriedade
caption:String  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The caption property of the underlying value object.



Implementação
    public function get caption():String

dataType

propriedade 
dataType:String  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Return the field type



Implementação
    public function get dataType():String

dataTypeValid

propriedade 
dataTypeValid:Boolean

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

True if the variable's value filled by the user fits in well as per the data type of the variable. for e.g dataTypeValid attribute is false when a string is filled in for a Number-type variable.

Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .



Implementação
    public function get dataTypeValid():Boolean
    public function set dataTypeValid(value:Boolean):void

editable

propriedade 
editable:Boolean  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

True if the underlying object is editable.



Implementação
    public function get editable():Boolean

name

propriedade 
name:String  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The name property of the underlying value object.



Implementação
    public function get name():String

optional

propriedade 
optional:Boolean  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

True if the underlying object is optional.



Implementação
    public function get optional():Boolean

subType

propriedade 
subType:String  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The sub type of the data element in case when type of data element specified is ENUM.



Implementação
    public function get subType():String

toolTip

propriedade 
toolTip:String  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The toolTip property of the underlying value object.



Implementação
    public function get toolTip():String

valid

propriedade 
valid:Boolean  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Boolean indicating whether the content is valid

Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .



Implementação
    public function get valid():Boolean

value

propriedade 
value:*

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The value of the data element(variable or field) associated with the letter instance.

Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .



Implementação
    public function get value():*
    public function set value(value:any):void

valueSet

propriedade 
valueSet:IList  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The list of value of the data element in case when type of data element specified is ENUM.



Implementação
    public function get valueSet():IList
Detalhes do construtor

VariableInstance

()Construtor
public function VariableInstance(value:VariableData)

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Constructor.

Parâmetros
value:VariableData — The VariableData object associated with VariableInstance.
Detalhes do método

addModuleInstance

()método
public function addModuleInstance(moduleInstance:IModuleInstance):void

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Add the given moduleInstance to this VariableInstance, as a source of the associated Variable.

Parâmetros

moduleInstance:IModuleInstance — The IModuleInstance object to be added to this VariableInstance.

destroy

()método 
public function destroy():void

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The function called when the Variable instance is no longer required.It does the clean up like removing event listeners from the dependencies.

getModuleInstance

()método 
public function getModuleInstance():IList

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Get the List of IModuleInstances for all modules that this VariableInstance's Variable is derived from.

Retorna
IList

getVariable

()método 
public function getVariable():Variable

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Returns the instance of Variable associated with this underlying object.

Retorna
Variable

refresh

()método 
public function refresh():void

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Refresh should be called when item is selected. This is useful in case when the the item is deselcted. In that case, if there is any change in variable value/ field value etc., those changes may not be propagated to module.

setup

()método 
public function setup():void

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

The function to prepare the Variable instance for use.

variableDataChangeHandler

()método 
protected function variableDataChangeHandler(event:VariableDataEvent):void

Versão da linguagem: ActionScript 3.0
Versão de produto: Asset Composer Building Block 10.0
Versões de runtime: AIR (unsupported), Flash Player 10.2

Called when the variable's value changes (which could be the result of a linked variable/field).

Parâmetros

event:VariableDataEvent — The VariableDataEvent event dispatched on variable data change.





[ X ]Por que inglês?
O conteúdo na Referência do ActionScript 3.0 aparece em inglês

Nem todas as partes da Referência do ActionScript 3.0 estão traduzidas em todos os idiomas. Quando um elemento de um idioma não está traduzido, ele é exibido em inglês. Por exemplo, a classe ga.controls.HelpBox não está traduzida em nenhum idioma. Por isso, na versão da referência em português do Brasil, a classe ga.controls.HelpBox é exibida em inglês.