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

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
xue-feng
Posts: 3
Joined: March 23rd, 2006, 4:04 am

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!
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

Hi xue-feng,

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

Jeff
xue-feng
Posts: 3
Joined: March 23rd, 2006, 4:04 am

I havn't seen it too.
If I can't do this ,how to create a dictionary data structure?
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

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
xue-feng
Posts: 3
Joined: March 23rd, 2006, 4:04 am

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.
Post Reply