You are probably using the XML file to set up the component. Until the XML file is loaded, the component is not able to process commands. Use the onXMLComplete function to determine the moment the file loads.
Also check if you have appointed a component instance name. It is using this that you can work with the component's functions, methods and properties. We used the name myBook in our examples. You may use another name.