I created a capx as an example of the question I have:
I understand that you can get the key/value from a dictionary by using:
I'm wondering if it is possible to get the key/value by using an instance variable value of an object. For example in the capx I posted I have a sprite that is named bunny. The bunny has 2 instance variables, one which is "type". Can you only use this method with a global/local variable or should you be able to use:
Using the instance variable does not work in my example but I have been able to get it to work with a global variable.