Hi, this might be a stupid question, but how can I use the Property class in the script api.

Hi, this might be a stupid question, but how can I use the Property class in the script api. alert(Property) gives an error saying “Property is not defined”, so it doesn’t work like the EventHandler class.

Thanks in advance πŸ™‚

Colin

]]>

5 Commentsto Hi, this might be a stupid question, but how can I use the Property class in the script api.

  1. Anonymous says:

    < ![CDATA[

    Property is not meant to be used this way: it holds a collection of constant values that you can use in various ways. For instance you may use some_item.setBinding(Property.PROP_CELL_LEFT, “some_value”, true);



    The EventHandler is different because it has a constructor, Property cannot be instanciated.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    aha. using that exact line with a real item still gives the same error though. maybe a bug?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    OMG, yes without any doubt πŸ™

    ]]>

  4. Anonymous says:

    < ![CDATA[

    fixed!

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Thanks!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *