What does double colon ('::') mean in ActionScript 3 / Flex?

I have been instructed to update the Flex project created by an external contractor, and in ActionScript, the following snippet:

CONFIG::FLASH_10_1
{
    //Some code here
}

I have never seen this type of structure before, and I have time trying to find it on Google - I have found that this means in almost every programming language except AS3. Can anyone shed some light on this?

+3
source share
3 answers

I am sure this is due to the conditional compilation functions of the Flex compiler.

So, if you add a compiler argument, for example:

-define=CONFIG::FLASH_10_1

I am sure that the error will disappear.

+7
source

, , "::" AS3...

.

, AS3 Vector.<T> __AS3__.vec::Vector.<T>, __AS3__.vec - . AS3 object.custom_namespace::membername. public private , , object.public::membername, :

var a:Array = [0,1];
trace(a.public::length); //prints 2
+3

Not a flex / AS3 guru - this thread says that "::" is used as an "Accessor" in the namespace:

Frequency Actionscript Thread

+1
source

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


All Articles