You never defined
constructor as file scope, so it doesn't exist on line 208. I think you meant to type either
self.constructor or
framesConstructor. I didn't really pay enough attention to make sure which one to use, sorry.
Also,
table.getn was depreciated a few years ago. use
# instead, like
Code:
local table_length = #MyTable