Is Object the preferred Associative container in AS3?

I am using Object as a way to have a common associative array (map / dictionary), since AS3 / Flex seems to be very limited in this regard. But I really don't like this against the background of C ++ / Java / C #. Is there a better way, some standard class that I haven't come across ... is this even considered good / bad in AS3?

+3
source share
2 answers

Yes, ActionScript uses it Objectas a general associative container and is considered the standard way to do this.

There is also a class Dictionary, flash.utils.Dictionary.

, Dictionary , , Object . Object , .

Object : http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Object.html Dictionary : http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/Dictionary.html : http://livedocs.adobe.com/flex/3/html/help.html?content=10_Lists_of_data_4.html

+5

, Object Dictionary . , , , , , Java.

:

http://sibirjak.com/blog/collections/as3commons-collections/

, , ds ( ).

Adobe Flex

, - . , ActionScript ( ), . . , - " ", .

, , ( ). , , , . , , , , , , , .

+2

Source: https://habr.com/ru/post/1770571/


All Articles