Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Adding Properties to DisplayObject’
Started by burnsj002 Feb 11 2014 06:46 PM

- - - - -
1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

burnsj002

[GLOBAL: userInfoPane.html]
burnsj002
  • Contributor

  • 199 posts
  • Corona SDK

In the docs it says ..."This means you can add your own properties to the object as long as they don't conflict with the names of DisplayObject’s predefined properties and method."

But how would you code that in lua?? I would like to add  a property to keep track of the STATE ...

Thanks!



[TOPIC: post.html]
#2

primoz.cerar

[GLOBAL: userInfoPane.html]
primoz.cerar
  • Contributor

  • 454 posts
  • Corona SDK

object.state = 1




[topic_controls]
[/topic_controls]