Flash processing device and processing method
A processing device and processing method technology, applied in the computer field, can solve the problems of large installation package, inconvenient customization and expansion, and inability to meet the special requirements of users, and achieve the effect of simple structure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] First read the flash file to the flash control, and the flash control plays the animation and runs the AS code. The AS code can accept the operation command code of the player at any time. If the AS code also includes the need to call an external application program interface to complete certain functions, then pass a formatted xml code to the player, which contains all the information of the API to be called. It is parsed into an API function and running parameters by the parser, and the API function has full access to the local resources of the computer. The running result of the function is returned to the flash control in the form of xml code, and the AS code realizes the corresponding change of the flash animation according to the running result.
[0039] For example, the flash processing device of this embodiment is used in an electronic pet application program of a desktop computer. The flash file contains many animations and AS codes related to pet actions. Af...
Embodiment 2
[0042]Generally speaking, the player can only call the functions in the AS code contained in the flash file played by itself and cannot call the functions in the AS code of other players, but sometimes some cooperation between players is required to achieve special effects.
[0043] For inter-player API calls, involving interaction between two or more players, the manager coordinates the communication between different players. For example, the function call between two players is completed by the manager calling an API called RemoteCall, which involves passing commands from one player to another player, and the manager coordinates the interaction between the two players. communication between.
[0044] Such as realizing the effect of people performing football. The manager in the flash processing device creates two players, player1 and player2, by calling the API for creating players, and the manager simultaneously saves the information that player1 and player2 are interacti...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 