CN105354052B - flash game loading method and device - Google Patents
flash game loading method and device Download PDFInfo
- Publication number
- CN105354052B CN105354052B CN201510642927.XA CN201510642927A CN105354052B CN 105354052 B CN105354052 B CN 105354052B CN 201510642927 A CN201510642927 A CN 201510642927A CN 105354052 B CN105354052 B CN 105354052B
- Authority
- CN
- China
- Prior art keywords
- interactive interface
- interface
- flash
- game
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 76
- 230000002452 interceptive effect Effects 0.000 claims abstract description 241
- 238000000034 method Methods 0.000 claims abstract description 34
- 230000006399 behavior Effects 0.000 claims description 16
- 230000003993 interaction Effects 0.000 claims description 10
- 238000005516 engineering process Methods 0.000 abstract description 11
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of flash game loading method and devices, are related to field of computer technology.The described method includes: obtaining the interactive interface list of corresponding flash game from server;Interactive interface in interactive interface list described in dynamically load;The game content of corresponding flash is obtained from server;Load the game content.It solves in first technology, it needs to load and writes dead all interactive interfaces in flash component, many unwanted interfaces of flash game are caused also to be loaded, the problem of wasting system resource, achieving can avoid loading useless interface according to the needs of flash game, the interface of the dynamically load flash game, system resource is saved, the beneficial effect of system performance is improved.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of flash game loading method and device.
Background technique
With the development of computer technology, there are various Internet resources in internet, and one of which is exactly flash
Game.
In practical applications, since flash game developer may develop various flash game, and these
Flash game may share same interactive interface, it is also possible to have special interactive interface.The interactive interface is to play in player
During flash game, flash game and server etc. carry out the interface of data interaction.
At present in technology, flash game developer develops for convenience, flash group can be written in its all interactive interface
In part, and when loading flash game, then all these interfaces can all be loaded, but for a kind of a in other words
Flash game may not use total interface.Therefore, the loading method of above-mentioned interactive interface additionally occupies system money
Source causes the waste of system resource, influences the performance of system.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
The flash game for stating problem loads this and corresponding flash game loading method.
According to one aspect of the present invention, the invention discloses a kind of flash game loading methods, comprising:
The interactive interface list of corresponding flash game is obtained from server;
Interactive interface in interactive interface list described in dynamically load;
The game content of corresponding flash is obtained from server;
Load the game content.
Preferably, before the interactive interface list that server obtains corresponding flash game, further includes:
Load the shell of the flash component of flash game.
Preferably, further includes:
For the shell, unloaded state, positive stress state, load status of fail, wait state and run time behaviour are set.
Preferably, described the step of obtaining the interactive interface list for corresponding to flash game from server, includes:
It is asynchronous to send interactive interface list acquisition request to server, interactive interface list is obtained from server with asynchronous.
Preferably, the step of interactive interface in interactive interface list described in the dynamically load, comprising:
Interactive interface after determining that the state of the shell is waited for, in interactive interface list described in dynamically load
Table.
Preferably, the step of game content that corresponding flash is obtained from server includes:
It is asynchronous to send game content acquisition request to server, game content is obtained from server with asynchronous.
Preferably, the step of interactive interface in interactive interface list described in the dynamically load includes:
Interactive interface by registration interface API, in interactive interface list described in dynamically load.
Preferably, described by registration interface API, the step of the interactive interface in interactive interface list described in dynamically load
Suddenly, comprising:
For each interactive interface name in the interactive interface list, by registration interface API, respective quadrature is obtained from local
The code of mutual interface name is loaded.
Preferably, described by registration interface API, the step of the interactive interface in interactive interface list described in dynamically load
Suddenly, comprising:
By the registration interface API, the interactive interface in the interactive interface list is registered to system.
Another aspect according to the present invention, the invention also discloses a kind of flash game loading devices, comprising:
Interface list obtains module, suitable for obtaining the interactive interface list of corresponding flash game from server;
Interface dlm (dynamic loading module), suitable for the interactive interface in interactive interface list described in dynamically load;
Game content obtains module, suitable for obtaining the game content of corresponding flash from server;
Game content loading module is suitable for loading the game content.
Preferably, before interface list obtains module, further includes:
Shell loading module, the shell of the flash component suitable for loading flash game;
Preferably, further includes:
State setting module is suitable for the shell setting unloaded state, positive stress state, load status of fail, waits
State and run time behaviour.
Preferably, the game content acquisition module includes:
Asynchronous list obtains module, interactive interface list acquisition request is sent to server suitable for asynchronous, with asynchronous from clothes
Business device obtains interactive interface list.
Preferably, the interface dlm (dynamic loading module) includes:
First interface dynamically load submodule, suitable for after determining that the state of the shell is waited for, dynamically load
Interactive interface table in the interactive interface list.
Preferably, the game content acquisition module includes:
Asynchronous content obtains module, game content acquisition request is sent to server suitable for asynchronous, with asynchronous from server
Obtain game content.
Preferably, the interface dlm (dynamic loading module) includes:
Second interface dynamically load submodule is suitable for through registration interface API, in interactive interface list described in dynamically load
Interactive interface.
Preferably, the second interface dynamically load submodule includes:
Local interface loads submodule, suitable for passing through registration for each interactive interface name in the interactive interface list
Interface API is loaded from the local code for obtaining corresponding interactive interface name.
Preferably, the interface dlm (dynamic loading module) includes:
Dynamic socket registers submodule, is suitable for by the registration interface API, by the interaction in the interactive interface list
Interface is registered to system.
Another aspect according to the present invention, the invention also discloses a kind of equipment, comprising:
Memory and processor;
The memory is for storing executable code;
The processor executes the side included the following steps for executing the executable code, the executable code
Method:
The interactive interface list of corresponding flash game is obtained from server;
Interactive interface in interactive interface list described in dynamically load;
The game content of corresponding flash is obtained from server;
Load the game content.
Flash game loading method and device according to the present invention, can load flash game flash component when,
According to the interactive interface of flash game demand, then these interactive interfaces of dynamically load reload specific game content, by
This is solved in first technology, is needed to load and is write dead all interactive interfaces in flash component, and many flash game are caused
The problem of unwanted interface is also loaded, and wastes system resource, achieving can be according to the needs of flash game, and dynamic adds
The interface for carrying the flash game avoids loading useless interface, saves system resource, improve the beneficial effect of system performance.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of step flow chart of flash game loading method according to an embodiment of the invention;
Fig. 2 shows a kind of step flow charts of flash game loading method according to an embodiment of the invention;
Fig. 3 shows a kind of structural block diagram of flash game loading device according to an embodiment of the invention;
Fig. 4 shows a kind of structural block diagram of flash game loading device according to an embodiment of the invention;And
Fig. 5 shows a kind of structural block diagram of equipment according to an embodiment of the invention
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one
Referring to Fig.1, it illustrates a kind of step flow charts of flash game loading method of the embodiment of the present invention, specifically
May include:
Step 110, the interactive interface list of corresponding flash game is obtained from server;
In embodiments of the present invention, after user opens a flash games page in the client, the flash game
The page then sends the load request of flash component first, and the data of flash component are then obtained from server, start to load
Flash game.
The friendship that each flash game and the flash game need to use is arranged in the embodiment of the present invention in the server in advance
Mutual interface list.In practical applications, can be corresponding with each interactive interface by specific flash game, webpage is to clothes at this time
When the data of business device request interactive interface list, flash game name is sent in the request, server is then according to flash game name
It searches interactive interface list corresponding with the flash game and returns to webpage.
Certainly, in practical applications, the interface that the game of a classification may need is consistent, then can be according to game
Type is corresponding with interactive interface, then at this time webpage to server request interactive interface list data when, in the request
The type of flash game is sent, server then searches interactive interface corresponding with the flash game according to flash type of play
List returns to webpage.For example single machine class game uses and uploads score interface upload score, does not need synchronous score and arrives it
In the flash game of his webpage.And online class game is moved, such as fighting games of two people, can then be used by needing to synchronize by synchronous point
Number interface is into the flash game of other webpages.Therefore the interactive interface that the two is used is not quite similar.
Preferably, before the interactive interface list that server obtains corresponding flash game, further includes:
Step 100, the shell of the flash component of flash game is loaded.
In practical applications, when user terminal opens the webpage of a flash game in the client, flash group can first be obtained
The code of part.When loading flash component, the shell of flash can be loaded first, to prepare flash container, after all flash
Continuous movement all executes in the shell, such as the load of interactive interface, load of game content etc., the operation of game content etc..
Step 120, the interactive interface in interactive interface list described in dynamically load;
It, can interface in interactive interface shown in dynamic dumpling after getting shown interactive interface list.
In practical applications, when user opens webpage in the client, the corresponding flash of flash game has been obtained
The code of component includes the code of interactive interface in the code, but will not load the code in load, but is being obtained
To after interactive interface list, according to recorded in interactive interface list be interface title, remove the corresponding interactive interface of dynamically load
Code.
It will be appreciated, of course, that the code of interactive interface is obtained without preparatory, but interactive interface is obtained in web-page requests
When list, the code of interactive interface and interactive interface list are sent to webpage again by server together.
Preferably, the step of interactive interface in interactive interface list described in the dynamically load includes:
Sub-step 121, the interactive interface by registration interface API, in interactive interface list described in dynamically load.
In embodiments of the present invention, in the flash component of flash game, a registration interface API is pre-set
(Application Program Interface, application programming interfaces), when loading flash component code, load should first
Registration interface API.
Then, after getting interactive interface list, registration interface API then obtains interaction from interactive interface list and connects
Mouth name, then goes to load corresponding interactive interface according to interactive interface name.
Wherein, the such as synchronous score interface of the interactive interface, upload interface, again object for appreciation interface, reloading interface etc..
Preferably, described by registration interface API, the step of the interactive interface in interactive interface list described in dynamically load
Suddenly, comprising:
Sub-step 1211, for each interactive interface name in the interactive interface list, by registration interface API, from this
The code that ground obtains corresponding interactive interface name is loaded.
It in embodiments of the present invention, include the code of all interactive interfaces in the flash component code of flash game,
Therefore when obtaining the code of flash component, then the code for obtaining interactive interface in advance is stored in client local.
So in the embodiment of the present invention, webpage only includes interactive interface name from the interactive interface list that server obtains,
Then the embodiment of the present invention is loaded then according to the interface name from the local code for obtaining the corresponding interface name.
Preferably, described by registration interface API, the step of the interactive interface in interactive interface list described in dynamically load
Suddenly, comprising:
Sub-step 1212, by the registration interface API, by the interactive interface in the interactive interface list to system into
Row registration.
In embodiments of the present invention, for shown api interface of registering as registry interface API, which can
Dynamically to obtain interactive interface name, the interactive interface name is then corresponded into interactive interface and is registered to system.What it was defined
Function is as follows:
request.registerApi(cmds);The interface name of //cmds { Array | String } registration, can be passed to one
A number of ports group batch registration;
request.on(cmd,func);The interface name that //cmd { String } is monitored.Func { Function } monitors function
Call back function
The interface name and call back function of the interactive interface can be so registered in system.
Step 130, the game content of corresponding flash is obtained from server;
After the interactive interface loaded of the flash game, webpage can obtain specific flash trip from server
Play content.
Step 140, the game content is loaded.
Then webpage can notify that flash component loads the game content, after game content loaded, user interface
The flash game is played in webpage.
Flash game loading method and device according to the present invention, can load flash game flash component when,
According to the interactive interface of flash game demand, then these interactive interfaces of dynamically load reload specific game content.Phase
Dead all interactive interfaces are write in flash component to needing to load in first technology, and many flash game is caused not need
Interface the problem of being also loaded, wasting system resource, the embodiment of the present invention can according to the needs of flash game, dynamic plus
The interface for carrying the flash game avoids loading useless interface, saves system resource, improves system performance.
Embodiment two
Referring to Fig. 2, it illustrates a kind of step flow charts of flash game loading method of the embodiment of the present invention, specifically may be used
To include:
Step 210, the shell of the flash component of flash game is loaded;It is described include unloaded state, positive stress state, plus
Carry status of fail, wait state and run time behaviour;
For flash component, webpage can load the shell of the flash component when loading flash component first, which is
The service logic of flash game provides operation container, and the operational process of all flash game is all changing shell internal operation, externally
It is invisible.
In embodiments of the present invention, be provided with various states in advance for shell: unloaded state, positive stress state, load are lost
Lose state, wait state and run time behaviour.
Unloaded state is such as: when for flash assembly initialization resource, also non-actual loaded shell, can set shell at this time
Unloaded state.
Positive stress state is such as: the parameter resource that shell needs is carried out to the process of specific assignment, the execution logic for loading shell,
The stress state that is positive can be set in the process.
Load status of fail: the case where such as loads such as shell load error fail is set as load status of fail at this time.
Wait state: after shell loads successfully, then the state of shell can be set to wait for state, it means that quasi-
Get the subsequent code of load ready.
Certainly, in embodiments of the present invention after shell loads successfully, before interactive interface load, the embodiment of the present invention is first
Registration interface API is first loaded, i.e. registry interface API, registration interface API are a general API, Ke Yidong
The acquisition interactive interface name of state, then corresponds to interactive interface for the interactive interface name and registers to system.In the registration interface
After API is loaded, then it is wait state that shell, which is arranged, so can correctly utilize registration interface API, go dynamically load current
Interactive interface needed for flash game.
Run time behaviour: after all code loadeds, flash game can be run, then shell can be set at this time
It is set to run time behaviour.
So in embodiments of the present invention, before step 220, there are two processes for the state of shell:
(1): unloaded state-> positive stress state-> load status of fail;
(2): unloaded state-> positive stress state-> wait state.
(1) cannot be continued to load subsequent interface and service logic, therefore since the shell of flash loads failure
220 are no longer entered step, can report an error to client or automatically refreshing web page reloads flash component.
Subsequent load then may wait for since the shell of flash loads successfully for (2), 220 can be entered step.
Step 220, asynchronous to send interactive interface list acquisition request to server, interactive connect is obtained from server with asynchronous
Mouth list;
In embodiments of the present invention, webpage asynchronous can send interactive interface list acquisition request to server.Server
After receiving the request, asynchronous corresponding interactive interface list can be returned into webpage.
It should be noted that the interactive interface list obtains if corresponding to interactive interface list in server with game name
Include then game name in request, after server receives the request, the game name is parsed from request, is then looked into its database
Look for interactive interface list corresponding with the game name.
If corresponding to interactive interface list in server with type of play, include if in the interactive interface list acquisition request
Type of play after server receives the request, parses the type of play from request, then searches and the trip in its database
The corresponding interactive interface list of type of playing.
It should be noted that step 210 and step 220 can be executed concurrently, i.e., webpage, can while starting to load shell
With asynchronous to web-page requests interactive interface list.The load time of flash game entirety can be so reduced, for example shell load needs
300ms is wanted, request interactive interface list needs 500ms, then 200ms can take interactive interface after shell loaded
Then list loads interactive interface, so only need 500ms that can start to load interactive interface.And if not after 210 execute
It is executing not 220, is then needing 800ms.
Step 230, after determining that the state of the shell is waited for, in interactive interface list described in dynamically load
Interactive interface table;
In embodiments of the present invention, due to setting the state of flash shell, then webpage is known that stage sends
What request, so as to realize asynchronous operation.If being not provided with shelly-shaped state, the loading procedure of flash game may then go out
Existing mistake, causes load to fail, for example cannot know when load interactive interface list, if loaded before shell is ready to,
It will appear mistake.
In embodiments of the present invention, after shell is waited for, it is meant that shell has been prepared for finishing, and registration interface
API is also ready, then registration interface API can will be called, each interactive interface name is obtained from interactive interface list, so
It is executed afterwards from the local corresponding code of interactive interface name, to each interactive interface of system registry.
In embodiments of the present invention, after webpage judges the shell of flash for wait state, then interactive interface list is sent
To shell, and registration interface API is called to load interactive interface.
Step 240, asynchronous to send game content acquisition request to server, game content is obtained from server with asynchronous;
In embodiments of the present invention, after interactive interface loaded, webpage asynchronous can send game to server
Content acquisition request,
It should be noted that in embodiments of the present invention, the state of the available shell of webpage, when the state of shell is to wait shape
It, can be after sending interactive interface list acquisition request when state, asynchronous transmission game content acquisition request, to be obtained from server
Game content.
Step 250, the game content is loaded.
Then webpage can notify that flash component loads the game content, after game content loaded, user interface
The flash game is played in webpage.The state of shell can become run time behaviour, and player can start in flash to game
It is operated.
Flash game loading method and device according to the present invention, can load flash game flash component when,
According to the interactive interface of flash game demand, then these interactive interfaces of dynamically load reload specific game content.Phase
Dead all interactive interfaces are write in flash component to needing to load in first technology, and many flash game is caused not need
Interface the problem of being also loaded, wasting system resource, the embodiment of the present invention can according to the needs of flash game, dynamic plus
The interface for carrying the flash game avoids loading useless interface, saves system resource, improves system performance.
Also, the embodiment of the present invention constructs unloaded state for shell, positive stress state, load status of fail, waits
State and the several states of run time behaviour allow webpage easily to determine which kind of operation executed according to the state of shell, can
Realize that the asynchronous operation to flash can be easy to so that the limitation asynchronous to webpage of flash loading procedure can also be removed
Realization webpage and server asynchronous communication.
Embodiment three
Referring to Fig. 3, it illustrates a kind of structural block diagrams of flash game loading device of the embodiment of the present invention, specifically may be used
To include:
Interface list obtains module 310, suitable for obtaining the interactive interface list of corresponding flash game from server;
Interface dlm (dynamic loading module) 320, suitable for the interactive interface in interactive interface list described in dynamically load;
Game content obtains module 330, suitable for obtaining the game content of corresponding flash from server;
Game content loading module 340 is suitable for loading the game content.
Preferably, the interface dlm (dynamic loading module) includes:
Second interface dynamically load submodule is suitable for through registration interface API, in interactive interface list described in dynamically load
Interactive interface.
Preferably, the second interface dynamically load submodule includes:
Local interface loads submodule, suitable for passing through registration for each interactive interface name in the interactive interface list
Interface API is loaded from the local code for obtaining corresponding interactive interface name.
Preferably, the interface dlm (dynamic loading module) includes:
Dynamic socket registers submodule, is suitable for by the registration interface API, by the interaction in the interactive interface list
Interface is registered to system.
Flash game loading method and device according to the present invention, can load flash game flash component when,
According to the interactive interface of flash game demand, then these interactive interfaces of dynamically load reload specific game content.Phase
Dead all interactive interfaces are write in flash component to needing to load in first technology, and many flash game is caused not need
Interface the problem of being also loaded, wasting system resource, the embodiment of the present invention can according to the needs of flash game, dynamic plus
The interface for carrying the flash game avoids loading useless interface, saves system resource, improves system performance.
Example IV
Referring to Fig. 4, it illustrates a kind of structural block diagrams of flash game loading device of the embodiment of the present invention, specifically may be used
To include:
Shell loading module 410, the shell of the flash component suitable for loading flash game;The shell include unloaded state,
Positive stress state, load status of fail, wait state and run time behaviour.
Interface list obtains module 420, specifically includes:
Asynchronous list obtain module 421, be suitable for it is asynchronous to server send interactive interface list acquisition request, with it is asynchronous from
Server obtains interactive interface list.
Interface dlm (dynamic loading module) 430, specifically includes:
First interface dynamically load submodule 431, suitable for after determining that the state of the shell is waited for, dynamic adds
Carry the interactive interface that the interactive interface table in the interactive interface list is suitable in interactive interface list described in dynamically load;
Game content obtains module 440, specifically includes:
Asynchronous content obtains module 441, game content acquisition request is sent to server suitable for asynchronous, with asynchronous from service
Device obtains game content.
Game content loading module 450 is suitable for loading the game content.
Preferably, further includes:
State setting module is suitable for the shell setting unloaded state, positive stress state, load status of fail, waits
State and run time behaviour.
Preferably, the interface dlm (dynamic loading module) includes:
Second interface dynamically load submodule is suitable for through registration interface API, in interactive interface list described in dynamically load
Interactive interface.
Preferably, the second interface dynamically load submodule includes:
Local interface loads submodule, suitable for passing through registration for each interactive interface name in the interactive interface list
Interface API is loaded from the local code for obtaining corresponding interactive interface name.
Preferably, the interface dlm (dynamic loading module) includes:
Dynamic socket registers submodule, is suitable for by the registration interface API, by the interaction in the interactive interface list
Interface is registered to system.
Flash game loading method and device according to the present invention, can load flash game flash component when,
According to the interactive interface of flash game demand, then these interactive interfaces of dynamically load reload specific game content.Phase
Dead all interactive interfaces are write in flash component to needing to load in first technology, and many flash game is caused not need
Interface the problem of being also loaded, wasting system resource, the embodiment of the present invention can according to the needs of flash game, dynamic plus
The interface for carrying the flash game avoids loading useless interface, saves system resource, improves system performance.
Also, the embodiment of the present invention constructs unloaded state for shell, positive stress state, load status of fail, waits
State and the several states of run time behaviour allow webpage easily to determine which kind of operation executed according to the state of shell, can
Realize that the asynchronous operation to flash can be easy to so that the limitation asynchronous to webpage of flash loading procedure can also be removed
Realization webpage and server asynchronous communication.
Embodiment five
Referring to Fig. 5, it illustrates a kind of structural block diagram of equipment of the embodiment of the present invention, the equipment 600 specifically can be with
Include:
Memory 510 and processor 520;
The memory 510 is for storing executable code;
The processor 520 is used to execute the executable code, what the executable code execution included the following steps
Method:
The interactive interface list of corresponding flash game is obtained from server;
Interactive interface in interactive interface list described in dynamically load;
The game content of corresponding flash is obtained from server;
Load the game content.
Certainly, the method that aforementioned arbitrary steps can also be performed in the executable code of the embodiment of the present invention.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) are according to an embodiment of the present invention to realizeFlash game loadIn equipment
The some or all functions of some or all components.The present invention is also implemented as executing method as described herein
Some or all device or device programs (for example, computer program and computer program product).Such reality
Existing program of the invention can store on a computer-readable medium, or may be in the form of one or more signals.
Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or in any other forms
It provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention also discloses A1, a kind of flash game loading method, comprising:
The interactive interface list of corresponding flash game is obtained from server;
Interactive interface in interactive interface list described in dynamically load;
The game content of corresponding flash is obtained from server;
Load the game content.
A2, method according to a1 are gone back before the interactive interface list that server obtains corresponding f lash game
Include:
Load the shell of the flash component of flash game.
A3, the method according to A2, further includes:
For the shell, unloaded state, positive stress state, load status of fail, wait state and run time behaviour are set.
The step of A4, method according to a3, the interactive interface list that corresponding flash game is obtained from server
Include:
It is asynchronous to send interactive interface list acquisition request to server, interactive interface list is obtained from server with asynchronous.
The step of A5, method according to a4, interactive interface in interactive interface list described in the dynamically load, packet
It includes:
Interactive interface after determining that the state of the shell is waited for, in interactive interface list described in dynamically load
Table.
A6, method according to a3, it is described to include: from the step of game content of the corresponding flash of server acquisition
It is asynchronous to send game content acquisition request to server, game content is obtained from server with asynchronous.
A7, the method according to one of A1-A6, the interaction in interactive interface list described in the dynamically load connect
Mouthful the step of include:
Interactive interface by registration interface API, in interactive interface list described in dynamically load.
A8, the method according to A7, it is described by registration interface API, in interactive interface list described in dynamically load
The step of interactive interface, comprising:
For each interactive interface name in the interactive interface list, by registration interface API, respective quadrature is obtained from local
The code of mutual interface name is loaded.
A9, the method according to A7, it is described by registration interface API, in interactive interface list described in dynamically load
The step of interactive interface, comprising:
By the registration interface API, the interactive interface in the interactive interface list is registered to system.
The invention also discloses B10, a kind of flash game loading device, comprising:
Interface list obtains module, suitable for obtaining the interactive interface list of corresponding flash game from server;
Interface dlm (dynamic loading module), suitable for the interactive interface in interactive interface list described in dynamically load;
Game content obtains module, suitable for obtaining the game content of corresponding flash from server;
Game content loading module is suitable for loading the game content.
B11, device according to b10, before interface list obtains module, further includes:
Shell loading module, the shell of the flash component suitable for loading flash game;
B12, the device according to B11, further includes:
State setting module is suitable for the shell setting unloaded state, positive stress state, load status of fail, waits
State and run time behaviour.
B13, device according to b12, the game content obtain module and include:
Asynchronous list obtains module, interactive interface list acquisition request is sent to server suitable for asynchronous, with asynchronous from clothes
Business device obtains interactive interface list.
B14, device according to b13, the interface dlm (dynamic loading module) include:
First interface dynamically load submodule, suitable for after determining that the state of the shell is waited for, dynamically load
Interactive interface table in the interactive interface list.
B15, device according to b12, the game content obtain module and include:
Asynchronous content obtains module, game content acquisition request is sent to server suitable for asynchronous, with asynchronous from server
Obtain game content.
B16, the device according to one of B10-B15, the interface dlm (dynamic loading module) include:
Second interface dynamically load submodule is suitable for through registration interface API, in interactive interface list described in dynamically load
Interactive interface.
B17, the device according to B16, the second interface dynamically load submodule include:
Local interface loads submodule, suitable for passing through registration for each interactive interface name in the interactive interface list
Interface API is loaded from the local code for obtaining corresponding interactive interface name.
B18, the device according to B17, the interface dlm (dynamic loading module) include:
Dynamic socket registers submodule, is suitable for by the registration interface API, by the interaction in the interactive interface list
Interface is registered to system.
The invention also discloses C19, a kind of equipment, comprising:
Memory and processor;
The memory is for storing executable code;
The processor executes the side included the following steps for executing the executable code, the executable code
Method:
The interactive interface list of corresponding flash game is obtained from server;
Interactive interface in interactive interface list described in dynamically load;
The game content of corresponding flash is obtained from server;
Load the game content.
Claims (13)
1. a kind of flash game loading method, comprising:
Load the shell of the flash component of flash game;For the shell, unloaded state, positive stress state, load failure shape are set
State, wait state and run time behaviour;
The interactive interface list of corresponding flash game is obtained from server, comprising: asynchronous to send interactive interface list to server
Acquisition request obtains interactive interface list from server with asynchronous;
Interactive interface in interactive interface list described in dynamically load;
The game content of corresponding flash is obtained from server;
Load the game content.
2. the method according to claim 1, wherein the interaction in interactive interface list described in the dynamically load
The step of interface, comprising:
Interactive interface after determining that the state of the shell is waited for, in interactive interface list described in dynamically load.
3. the method according to claim 1, wherein the game content for obtaining corresponding flash from server
The step of include:
It is asynchronous to send game content acquisition request to server, game content is obtained from server with asynchronous.
4. -3 one of them described method according to claim 1, which is characterized in that the column of interactive interface described in the dynamically load
The step of interactive interface in table includes:
Interactive interface by registration interface API, in interactive interface list described in dynamically load.
5. according to the method described in claim 4, it is characterized in that, described by registration interface API, interaction described in dynamically load
The step of interactive interface in interface list, comprising:
For each interactive interface name in the interactive interface list, by registration interface API, respective quadrature mutual connection is obtained from local
The code of mouth name is loaded.
6. according to the method described in claim 5, it is characterized in that, described by registration interface API, interaction described in dynamically load
The step of interactive interface in interface list, comprising:
By the registration interface API, the interactive interface in the interactive interface list is registered to system.
7. a kind of flash game loading device, comprising:
Shell loading module, the shell of the flash component suitable for loading flash game;
State setting module is suitable for the shell setting unloaded state, positive stress state, load status of fail, wait state
And run time behaviour;
Interface list obtains module, suitable for obtaining the interactive interface list of corresponding flash game from server, comprising: it is asynchronous to
Server sends interactive interface list acquisition request, obtains interactive interface list from server with asynchronous;
Interface dlm (dynamic loading module), suitable for the interactive interface in interactive interface list described in dynamically load;
Game content obtains module, suitable for obtaining the game content of corresponding flash from server;
Game content loading module is suitable for loading the game content.
8. device according to claim 7, which is characterized in that the interface dlm (dynamic loading module) includes:
First interface dynamically load submodule, suitable for after determining that the state of the shell is waited for, described in dynamically load
Interactive interface table in interactive interface list.
9. device according to claim 7, which is characterized in that the game content obtains module and includes:
Asynchronous content obtains module, sends game content acquisition request to server suitable for asynchronous, is obtained with asynchronous from server
Game content.
10. the device according to one of claim 7-9, which is characterized in that the interface dlm (dynamic loading module) includes:
Second interface dynamically load submodule is suitable for passing through registration interface API, the friendship in interactive interface list described in dynamically load
Mutual interface.
11. device according to claim 10, which is characterized in that the second interface dynamically load submodule includes:
Local interface loads submodule, suitable for passing through registration interface for each interactive interface name in the interactive interface list
API is loaded from the local code for obtaining corresponding interactive interface name.
12. device according to claim 11, which is characterized in that the interface dlm (dynamic loading module) includes:
Dynamic socket registers submodule, is suitable for by the registration interface API, by the interactive interface in the interactive interface list
It is registered to system.
13. a kind of flash game loading equipemtn, comprising:
Memory and processor;
The memory is for storing executable code;
The processor executes method comprising the following steps for executing the executable code, the executable code:
Load the shell of the flash component of flash game;For the shell, unloaded state, positive stress state, load failure shape are set
State, wait state and run time behaviour;
The interactive interface list of corresponding flash game is obtained from server, comprising: asynchronous to send interactive interface list to server
Acquisition request obtains interactive interface list from server with asynchronous;
Interactive interface in interactive interface list described in dynamically load;
The game content of corresponding flash is obtained from server;
Load the game content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642927.XA CN105354052B (en) | 2015-09-30 | 2015-09-30 | flash game loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642927.XA CN105354052B (en) | 2015-09-30 | 2015-09-30 | flash game loading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354052A CN105354052A (en) | 2016-02-24 |
CN105354052B true CN105354052B (en) | 2018-12-04 |
Family
ID=55330026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510642927.XA Active CN105354052B (en) | 2015-09-30 | 2015-09-30 | flash game loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354052B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108694047A (en) * | 2017-04-11 | 2018-10-23 | 武汉斗鱼网络科技有限公司 | resource loading method and device |
CN110162385B (en) * | 2018-02-14 | 2023-07-04 | 微软技术许可有限责任公司 | Processing framework capable of dynamically refreshing memory objects |
CN108509287B (en) * | 2018-04-11 | 2020-09-29 | 北京知道创宇信息技术股份有限公司 | Request state management method and device, electronic equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1505497A1 (en) * | 2003-08-06 | 2005-02-09 | Alcatel | A method, a computer software product, and a telecommunication device for dynamically and automatically loading software components |
CN102647398A (en) * | 2011-02-16 | 2012-08-22 | 腾讯科技(深圳)有限公司 | Method and device for realizing game on basis of mobile terminal |
CN102999352A (en) * | 2012-11-15 | 2013-03-27 | 中国科学院声学研究所 | Embedded system assembly loading method |
CN103297275A (en) * | 2013-06-08 | 2013-09-11 | 烽火通信科技股份有限公司 | Dynamic discovery and loading system and method for Web network management client module |
CN103425491A (en) * | 2013-07-30 | 2013-12-04 | 广州市动景计算机科技有限公司 | Game engine |
CN104375849A (en) * | 2013-08-15 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Core loading method and device |
CN104424002A (en) * | 2013-09-10 | 2015-03-18 | 中国科学院声学研究所 | Dynamic component loading method and system based on plug-in mechanism |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020087630A1 (en) * | 2000-10-20 | 2002-07-04 | Jonathan Wu | Enhanced information and presence service |
JP4355639B2 (en) * | 2004-09-15 | 2009-11-04 | キヤノン株式会社 | Image processing apparatus and control method thereof |
US7987459B2 (en) * | 2005-03-16 | 2011-07-26 | Microsoft Corporation | Application programming interface for identifying, downloading and installing applicable software updates |
US20110307908A1 (en) * | 2010-06-14 | 2011-12-15 | James Malnati | Systems, methods, and computer program products providing an interface for one or more databases |
WO2012027669A1 (en) * | 2010-08-26 | 2012-03-01 | Verisign, Inc. | Method and system for automatic detection and analysis of malware |
-
2015
- 2015-09-30 CN CN201510642927.XA patent/CN105354052B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1505497A1 (en) * | 2003-08-06 | 2005-02-09 | Alcatel | A method, a computer software product, and a telecommunication device for dynamically and automatically loading software components |
CN102647398A (en) * | 2011-02-16 | 2012-08-22 | 腾讯科技(深圳)有限公司 | Method and device for realizing game on basis of mobile terminal |
CN102999352A (en) * | 2012-11-15 | 2013-03-27 | 中国科学院声学研究所 | Embedded system assembly loading method |
CN103297275A (en) * | 2013-06-08 | 2013-09-11 | 烽火通信科技股份有限公司 | Dynamic discovery and loading system and method for Web network management client module |
CN103425491A (en) * | 2013-07-30 | 2013-12-04 | 广州市动景计算机科技有限公司 | Game engine |
CN104375849A (en) * | 2013-08-15 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Core loading method and device |
CN104424002A (en) * | 2013-09-10 | 2015-03-18 | 中国科学院声学研究所 | Dynamic component loading method and system based on plug-in mechanism |
Also Published As
Publication number | Publication date |
---|---|
CN105354052A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Matthias et al. | Docker: Up & Running: Shipping Reliable Containers in Production | |
CN110058922B (en) | Method and device for extracting metadata of machine learning task | |
CN107368410B (en) | Performance test method and device of game engine, storage medium and electronic device | |
CN107193607B (en) | Method and apparatus for updating code file, storage medium, processor, and terminal | |
Pacheco | Microservice Patterns and Best Practices: Explore patterns like CQRS and event sourcing to create scalable, maintainable, and testable microservices | |
US11726800B2 (en) | Remote component loader | |
CN105354052B (en) | flash game loading method and device | |
CN104423948B (en) | Automatized script operation method and device | |
CN110187910A (en) | A kind of hot update method, device, equipment and computer readable storage medium | |
CN106075911B (en) | A kind of generation method and device at the micro- end of web game | |
CN109002320A (en) | For the update method of software development kit, system, electronic equipment and storage medium | |
US10635504B2 (en) | API versioning independent of product releases | |
Saito et al. | DevOps with Kubernetes: accelerating software delivery with container orchestrators | |
US9760472B2 (en) | Tenant code debugging in multi-tenant systems | |
CN105119944B (en) | Application starting method and related device | |
CN112023402A (en) | Game data processing method, device, equipment and medium | |
US20220233954A1 (en) | System and methods for generating a platform-agnostic game shortcut to launch a game for cloud gaming | |
CN107391771A (en) | The generation method and device of a kind of image special effect | |
Bhardwaj et al. | Serving mobile apps: A slice at a time | |
US10067775B2 (en) | Guided authoring of interactive content | |
CN112269803B (en) | Data set filling method and system | |
CN109460266A (en) | A kind of method and device constructing software analogue data | |
CN111459484B (en) | Method for simulating back-end data during separate development of front end and back end of webpage | |
Macero et al. | Learn Microservices with Spring Boot | |
Mateos et al. | A software tool for semi-automatic gridification of resource-intensive java bytecodes and its application to ray tracing and sequence alignment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220712 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co., Ltd |
|
TR01 | Transfer of patent right |