1. A terminal device capable of operating with a smart card which includes a storage device and an input/output interface, wherein said storage device stores an application program having at least one component that can run under an operating system in the smart card and an interpreter for interpreting scripts, said terminal device comprising: an operating system, wherein said operating system executes loading of a command to exchange game scripts and scripts to be exchanged with a script stored in the smart card via the input/output interface, and wherein said scripts define a sequence of executing components included in the application program.