Rui
Rui

Reputation: 5920

Actionscript Dictionary: TypeError: Error #1006: getValue is not a function

I have a Flex 3 application where I was using a call to Dictionary.getValue. However, now when compiling I get this error on that call:

TypeError: Error #1006: getValue is not a function.

Can I be doing something wrong?

Thanks in advance!

Upvotes: 0

Views: 464

Answers (2)

Plastic Sturgeon
Plastic Sturgeon

Reputation: 12527

the Dictionary object does not have a getValue() function, which is why you get that error. Did you perhaps mean to write valueOf()?

Upvotes: 0

hackattack
hackattack

Reputation: 1087

I don't see a getValue method defined in the api ... http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Dictionary.html#methodSummary

try using

dictionary[key]

Upvotes: 1

Related Questions