I want a dynamic (created with moai.CreateObject()) Contextmenu shown for a TextEntry object.
This works for the first time, but if I want to change it, I first need to detach it, said moai.FreeObject().
But how?
Code: Select all
moai.set("strObj", "ContextMenu", "(none)")
Code: Select all
moai.DoMethod(moai.get("menObj", "Parent"), "Remove", "menObj")
So, how can I detach the contextmenu object (menObj) before using moai.FreeObject() and reusing the id for the new contextmenu?