I'm revising an existing program to implement a new toolbar. The program uses Lua scripts to handle the display and processing of Flash animations and commands. I can call up the Flash animation window, but the line that adds a command listener fails.
HUD.AddFSCommandListener(self.file_SWF, self.id)
The error is: "Wrong parameter type. Function HUD.AddFSCommandListener(movie, entityId) expect parameter 2 of type Pointer (Provided type Null)".
I have been over, under and around through the system, and I cannot figure out what I'm doing wrong, although I suspect there is some kind of registration step that I'm not doing correctly. The game I'm working on uses CryEngine, and I see there aren't a lot of people asking questions about it. However, if this error has some kind of analog in another system, then perhaps that might spark my mind as to what I need to do.
Thanks.