gfx.halloweenfx = “Fred”, is a valid value, but it’s not a display object. You can check to see:
if gfx and gfx.halloweenfx and gfx.halloweenfx.removeSelf then -- gfx is valid -- gfx.halloweenfx exists (not nil) -- gfx.halloweenfx.removeSelf is a display object method, so this is quite likely a display object. -- -- do something with your display object. end
Rob