The method and system that a kind of animation file shows
Technical field
The present invention relates to the animation file manufacture technology field, relate in particular to a kind of technology according to trigger event intelligent display animation file.
Background technology
Current, instant messaging (IM) instrument has obtained application more and more widely, people are when utilizing the IM instrument to realize instant messaging, not only to enrich individual's virtual image, also need IM that the displaying oneself's of abundanter other mode can be provided, for example show off, by operation to animation file by animation file, realize the action of different animation, representative of consumer was wanted the action expressed at that time.
The demonstration of animation file all is to judge realization by the processing logic that is set in advance in animation file inside in the existing technology, this processing logic that is set in advance in animation file inside can not hack and adjustment, therefore the demonstration of animation file is a fixing process, change the demonstration of animation file if desired, only actually is the change of inter-process logic, all the animation that must be manufactured with the respective handling logic again could be realized, like this if animation has abundant action performance, then need in the inter-process logic of animation, add abundant action feedback, it is excessive to be easy to make that animation file takes up room, travelling speed is slow excessively, and has also reduced the dirigibility that animation is changed.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of method and system that can show animation file according to trigger event.
For achieving the above object, the invention provides the method that a kind of animation file shows, this method may further comprise the steps:
1) the animation client is from the configuration file of the described server update of downloaded;
2) the animation client shows animation file according to configuration file and current trigger event.
Wherein the described configuration file of step 1) comprises the processing logic that animation file shows.
The described animation client of step 1) comprises when starting the animation client and downloads up-to-date configuration file to the animation client from animation server from the configuration file of the described server update of downloaded.
Described up-to-date configuration file is to be upgraded according to the various parameters of last animation client operational process by animation server.
Described step 2) comprise also that before the animation client has judged whether trigger event, if having then carry out step 2), if not then wait for that trigger event takes place.
Described step 2) also comprises in according to the animation file action that defines in trigger event and the configuration file and mating.
The status information of the current trigger event described step 2) comprises the mouse on the computing machine of animation client and the position and the state of cursor.
The status information of the current trigger event described step 2) comprises the running status of program on the computing machine of animation client.
The system that the present invention also provides a kind of animation file to show comprises animation client and animation server; Wherein, animation server also comprises the unit that is used to upgrade the configuration file of controlling animation file action demonstration; The animation client also comprises and being used for from the animation server described configuration file of download and according to the definition of described configuration file and the unit of trigger event demonstration animation file.
Description of drawings
Fig. 1 is an animation file display packing process flow diagram of the present invention.
Embodiment
The action of animation file is all controlled by configuration file, method provided by the invention is that the configuration file that the control animation file moves is left on the animation server, rather than be limited on the client, by to automatic modification and the adjustment of animation server, reach the intelligent display of animation file to configuration file.As follows with reference to figure 1 process:
Step 1, animation server is new configuration file more, and the judgement of each parameter in the process that animation server passes through last animation file is moved is new configuration file more.
Step 2 starts the animation display client, downloads up-to-date configuration file from animation server simultaneously.
Step 3, the animation display client has judged whether trigger event, if having then carry out step 4, if do not have then wait for that trigger event takes place.
Step 4, the animation client is mated the action that defines in current trigger event and the configuration file, finds first action that the match is successful, and the animation client just shows corresponding animation action.
The present invention will be further described below in conjunction with specific embodiment.
As the animation file as shown among the present invention is an electronic pet of operation on computers, the everything of electronic pet is all by the flash animate, the animation display client is an electric pet system, and the animation storage server is the electronic pet server.Mouse on electronic pet different position corresponding different electronic pet operating state, these different positions just are called the mouse hot-zone.Cause the incident of animation action, for example trigger event comprises the state of mouse, and mouse state is divided into: left mouse button is pressed, left mouse button is unclamped, mouse enters the animation file zone; Mouse leaves animation file zone etc.Here be example with the left mouse button incident of unclamping.Introduce electronic pet below and be and how to respond the animation action that left mouse button is unclamped incident.
Steps A, the electronic pet server is according to the judgement of parameter in the electric pet system that moved new configuration file more.The trigger event of definition mouse is that left mouse button is unclamped incident in the configuration file.Configuration file has been specified position, a plurality of mouses hot-zone at the left mouse button incident of unclamping, and the action of all corresponding different electronic pet in each mouse hot-zone.
Step B starts the operation electric pet system on computers, electric pet system from the electronic pet server download configuration file to local computer.
Step C, in operation electric pet system process, left mouse button occurs and unclamp incident, electric pet system will be received the message of windows operating system, the position that has comprised mouse in the message body, electric pet system according to the position of the mouse received successively with configuration file in a plurality of mouses hot-zone of defining mate, in case match first mouse hot-zone, electric pet system then shows according to the action of the pet in this mouse hot-zone that is defined in the configuration file.
This purpose of description only is that the present invention will be described, and does not lie in qualification protection scope of the present invention.