This page was saved using jaction on 2006-09-04 8:33:37.
Address: http://flexdocs.kr/docs/flex2/langref/flash/utils/Dictionary.html
Title: flash.utils.Dictionary (Flex™ 2 레퍼런스 가이드)  •  Size: 18250
Packageflash.utils
Classpublic dynamic class Dictionary
InheritanceDictionary Inheritance Object

Dictionary 클래스에서는, property의 동적인 콜렉션을 작성해, 키의 비교에 엄밀한 등식 (===)을 사용할 수 있습니다. object가 키로서 사용되고 있는 경우는, object의 식별자를 사용해 object를 검색해, object의 toString() 를 호출해 돌려주어지는 값은 사용되지 않습니다.

다음의 명령문(statement)는, Dictionary object와 Key object의 관계를 나타냅니다.

var dict = new Dictionary();
var obj = new Object();
var key:Object = new Object();
key.toString = function() { return "key" }
  
dict[key] = "Letters";
obj["key"] = "Letters";
  
dict[key] == "Letters"; // true
obj["key"] == "Letters"; // true
obj[key] == "Letters"; // true because key == "key" is true b/c key.toString == "key"
dict["key"] == "Letters"; // false because "key" === key is false
delete dict[key]; //removes the key
 

See also

=== (strict equality)


Public property
 property정의
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
Public Methods
 Methods정의
  Dictionary (weakKeys:Boolean = false)
새로운 Dictionary object를 작성합니다.
Dictionary
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
 InheritedtoString ():String
지정된 object의 string 표현을 돌려줍니다.
Object
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
constructor    의 상세
Dictionary()constructor   
public 함수 Dictionary(weakKeys:Boolean = false)

새로운 Dictionary object를 작성합니다. Dictionary object로부터 키를 삭제하려면 ,delete 연산자를 사용합니다.

Parameters
weakKeys:Boolean (default = false) — object 키에 "약" 참조를 사용하도록(듯이), Dictionary object에 지시합니다. object에의 유일한 참조가, 지정한 Dictionary object에 있는 경우는, 그 키가 가베지 콜렉션의 대상이 되어, object가 수집될 때 테이블에서 삭제됩니다.






 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/flash/utils/Dictionary.html