And of course, if anyone else knows the answer, please answer!
Thanks.
I’m taking a look at your tutorial here http://jonbeebe.net/hi-jack-optimizations but it doesn’t seem to work. I put a print(“hijacking”) line in there and just commented everything else and it never prints to the terminal. Am I doing something wrong?
[lua] g.oldRemoveSelf = g.removeSelf
– Let the hi-jacking begin:
function g:removeSelf()
print(“HIJACKING”)
– call the original removeSelf() function:
–myObject:oldRemoveSelf()
–myObject = nil
end[/lua]
g is a display.newGroup()
The reason I’m doing this is because there seems to be a nasty leak in the movieclip.lua library and in order to get rid of it, I need to do some reference releasing in it’s removeSelf() function. [import]uid: 75335 topic_id: 12772 reply_id: 312772[/import]