Page 1 of 1

Why i can't create ActiveXObject("Scripting.Dictionary&

Posted: March 23rd, 2006, 5:48 pm
by xue-feng
hi,

i want to create a Dictioanry data:
var sqs =new ActiveXObject("Scripting.Dictionary");
the error message is : activeXObject does not have a constructor.

any one knows why?

thank's a lot!

unfamiliar with that constructor

Posted: March 23rd, 2006, 6:56 pm
by redefinery
Hi xue-feng,

Is that supported by After Effects? I don't see it in either the After Effects or Bridge scripting docs.

Jeff

ohhh

Posted: March 24th, 2006, 2:48 am
by xue-feng
I havn't seen it too.
If I can't do this ,how to create a dictionary data structure?

dictionary (aka associative array)

Posted: March 24th, 2006, 4:38 am
by redefinery
If by "dictionary" you mean an associative array, just define it like:
var myDict = {"width":320, "height":240, "frameRate":30};

then reference using array syntax, e.g.,
var myWidth = myDict["width"];

Is that what you're looking for?

Jeff

thanks

Posted: March 28th, 2006, 6:37 pm
by xue-feng
thanks!

I'll try it.

I want to write a script that can import all sequeneces in a directory. So i 'll create a associative array to store the file-head names.