You might find the answer here:
http://www.ecma-international.org/publications/standards/Ecma-262.htm

Furthermore, in Flash 4, a colon was used to get/set a variable in a certain 
timeline.
If I remember correcty, it looked something like this:

phrases/introduction:String = "blah";

Where 'String' would be a variable and 'introduction' a MovieClip inside 
'phrases', also a MovieClip.

regards,
Muzak

----- Original Message ----- 
From: "Jason Lutes" <[EMAIL PROTECTED]>

> I also find it strange that you can't do this:
>
> var phrases:Object = new Object();
> phrases.introduction:String = 'Bem vindo a todos.';
>
> - or even -
>
> var phrases:Array = new Array();
> phrases[0]:String = 'Bem vindo a todos.';
>
> Should dynamically created properties/elements really be that bastardized
> in ActionScript? One of the advantages of strict data typing is the
> disambiguation of the code. I miss the ability to completely disambiguate
> in certain situations. For example, I occasionally use loops to generate
> objects or populate arrays, and would like to be able to strictly identify
> (for the sake of readability) any new properties/elements added within
> that loop.
>
> I can get around the limitation by directly passing a value to a _simple_
> datatype's constructor during assignment. This identifies the expected
> value's type for me in many situations, but other constructors don't
> accept a direct value this way.
>
> I'm not encouraging/perpetuating bad programming practices here. There's
> legitimate reason to wonder about this.
>


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to