Summary of the invention
The embodiment of the present invention provides the method and apparatus in client manipulation flash game, to solve existing skill
The drawbacks described above of art.
For achieving the above object, the embodiment of the present invention provides a kind of method in client manipulation flash game,
Described method includes: client is downloaded flash game compressed package from server and decompresses;Described client
The flash game after playing decompression of the flash games window is set in end;The flash game of described client
Window is provided with toolbar, and described flash is played by the operation button realization provided by described toolbar
Manipulation;Described toolbar comprises one or more combinations of following operation button: sectional drawing, flash play
Client Dynamic Display, upload and download flash game achieve;Described flash plays in client
Dynamic Display method specifically includes: receive user's click to described flash games window Dynamic Display button
Operation;Judge the Dynamic Display mode that described flash game is current;Fly out described client in described flash game
In the case of end window independent operating, hide the raw hide skin of described client, and parent window handle is set to
Described client handle, makes described flash game run in flying into described client window;At described flash
In the case of game flies into the interior operation of window of described client, show the raw hide skin of described client, and
Parent window handle is set to sky, makes described flash game fly out described client window independent operating.
Described toolbar also comprises one or more combinations of following operation button: heavily play, regulate flash
Games window size.
The method of described sectional drawing specifically includes: receives user and grasps the click of the sectional drawing button of described toolbar
Make;Video in window is saved as the handle of intermediate images equipment interface;This handle is converted into image preserve
Hereof.
Described method also includes: arrange a flag bit to record current flash game Dynamic Display side
Formula;After receiving user's clicking operation to described flash game Dynamic Display button, to described mark every time
The value of will position is updated.
Judge that the current Dynamic Display mode of described flash game includes: if the value of current mark bit is as flying
Enter state, then, after judging to click on described flash game Dynamic Display button, described flash plays needs next time
Fly out described client window independent operating;If the value of current mark bit is the state of flying out, then under judging
After flash game Dynamic Display button described in one click, described flash game needs to fly into described client
Run in window.
The described method uploading and downloading flash game archive specifically includes: client receives under server
The archived list of the described flash game sent out;Archive that client selects according to user and to described download
Flash game achieves the clicking operation of button, downloads and decompresses the selected game that is archived to and achieve position,
And with the progress running game of this archive;When user exits game, prompting user uploads archive;Receive
Going game, to the described clicking operation uploading flash game archive button, is achieved the service of being uploaded to by user
Device.
For achieving the above object, the embodiment of the present invention also provides for a kind of dress in client manipulation flash game
Putting, described device includes: transport module, for downloading flash game compressed package to client from server
And decompress;User interactive module, for arranging flash games window to play solution in described client
Flash game after compression;Management module, arranges toolbar for the flash games window in described client,
The operation button provided by described toolbar realizes the manipulation playing described flash;In described toolbar
Comprise one or more combinations of following operation button: sectional drawing, flash game client Dynamic Display,
Upload and download flash game to achieve;Described management module also includes: flash games window Dynamic Display list
Unit, for receiving user's clicking operation to described flash games window Dynamic Display button;Judge described
The Dynamic Display mode that flash game is current;Fly out described client window independent operating in described flash game
In the case of, hide the raw hide skin of described client, and parent window handle be set to described client handle,
Described flash game is made to run in flying into described client window;Described client is flown in described flash game
Window in run in the case of, show the raw hide skin of described client, and parent window handle be set to sky,
Described flash game is made to fly out described client window independent operating.
Described management module includes: sectional drawing unit, for receiving user's sectional drawing button to described toolbar
Clicking operation;Video in window is saved as the handle of intermediate images equipment interface;This handle is converted into
Image preserves hereof.
Described management module also includes: achieve unit, for receiving the described flash game that server issues
Archived list to client;The archive and the archive of playing described download flash that select according to user are pressed
The clicking operation of button, downloads and decompresses the selected game that is archived to and achieve position, and entering with this archive
Degree running game;When user exits game, prompting user uploads archive;Receive user to upload described
Flash game achieves the clicking operation of button, is achieved by going game and uploads onto the server.
Embodiment of the present invention method and apparatus can make flash run in client, and by client
Toolbar is set, it is achieved heavily playing the time-out running flash game, sectional drawing, sized etc. operates, and carries
The high operating experience of user.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
First the embodiment of the present invention provides a kind of method in client manipulation flash game, and Fig. 1 is the method
Overall flow figure.As it is shown in figure 1, the method includes:
S101, client are downloaded flash game compressed package from server and decompress;
S102, arrange in described client flash games window after playing decompression flash game;
S103, the flash games window of described client arrange toolbar, are provided by described toolbar
Operation button realizes the manipulation playing described flash;Described toolbar comprises the one of following operation button
Kind or multiple combination: sectional drawing, flash games window Dynamic Display, upload and download flash game achieve.
Alternatively, this toolbar also includes one or more combinations of following button: heavily play, regulate flash trip
Play window size.
The client of the present embodiment illustrates as a example by fast object for appreciation product.Fast product of playing is collection trivial games, list
The gaming platform of machine game, web game and online game, this gaming platform includes client, transmission network
Network and server end.This client is installed on the subscriber terminal, such as computer, palm machine etc..Client
Including transport module, user interactive module (being called for short UI module) and management module.Transport module is responsible for
With server communication and download flash game compressed package to appointment position;UI module be responsible for show interface and
Play flash game;Management module is responsible for responding all function points in control group.
The present embodiment arranges window in client, and this window is embedded in broadcasting flash game.In client
Lower section, selectively arranges the control knob being used for that flash game carries out careful manipulation.These controls are pressed
Button includes one or more of following button: heavily object for appreciation, sectional drawing, regulation flash games window size, flash
Games window Dynamic Display, upload and download flash game achieve.
Fig. 2 a is that the fast of the present embodiment plays client end interface schematic diagram, and this client can embed broadcasting flash
Game;Fig. 2 b is the toolbar schematic diagram in Fig. 2 a below client, this figure has marked flash is played into
Multiple control knobs of row operation.
Fig. 3 is the flow chart playing client terminal start-up flash game soon, as it is shown on figure 3, this flow process includes:
After S301, the fast object for appreciation of startup, start flash game;
S302, download games compressed package, and judge whether that download completes;If having downloaded entrance S303,
Otherwise enter S304;
S303, downloaded after, it may be judged whether decompressed;It is not fully complete, enters S305, otherwise enter
S306;
S304, employing P2P (point-to-point) module download games compressed package;
S305, employing decompress (Unrar) module decompression game compressed package;
S306, start the user interactive module (UI) of client, Loaded Image display by " GDI+ "
Overall interface and toolbar, load flash by Flash01b.ocx control and play.
Fig. 4 is the client flow process to flash game sectional drawing, and as shown in Figure 4, this flow process specifically includes:
S401, reception user's clicking operation to the sectional drawing button of described toolbar;
S402, video in window is saved as the handle of intermediate images equipment interface;As, " GDI+ " can be used
Video in window is saved as the handle of intermediate images equipment interface by method;
S403, this handle is converted into image preserve hereof.
In the present embodiment, the sized button on client utility hurdle can show backstage typing in client
The optimum size of flash game, fills up size and minification.Wherein, acquiescence is loaded as filling up size
(as shown in Figure 5);One click size regulation button, fills up size and becomes minification (such as Fig. 6 institute
Show);Click on size regulation button for twice, be i.e. contracted to optimum size (as shown in Figure 7).
Fig. 8 is the method flow diagram of the flash games window Dynamic Display of the embodiment of the present invention, and Fig. 8 a is Fig. 8
The detail flowchart of shown method, client window interface schematic diagram when Fig. 9 is not for flying out, Figure 10 is for flying
The interface schematic diagram of flash games window after going out.
As shown in Figure 8, the method includes:
S801, reception user's clicking operation to described flash games window Dynamic Display button;
S802, judge the described flash current Dynamic Display mode of game;
S803, fly out in the case of described client window independent operating in described flash game, hide institute
State the raw hide skin of client, and parent window handle is set to described client handle, make described flash play
Run in flying into described client window;
S804, run in described flash game flies into the window of described client in the case of, show institute
State the raw hide skin of client, and parent window handle is set to sky, make described flash game fly out described client
End window independent operating.
Alternatively, the method for Fig. 8 also includes: arrange a flag bit to record the dynamic of current flash game
Exhibition method;After receiving user's clicking operation to described flash game Dynamic Display button, right every time
The value of described flag bit is updated.
Optionally, S802 specifically includes: if the value of current mark bit is for flying into state, then judge next
After secondary click described flash games window Dynamic Display button, described flash game needs the described client that flies out
Window independent operating;If the value of current mark bit is the state of flying out, then judge to click on described flash next time
After games window Dynamic Display button, described flash game needs the interior operation of window flying into described client.
Figure 11 is embodiment of the present invention flash game uploading and downloads the method flow diagram achieved, and Figure 11 a is figure
The detail flowchart of method shown in 11.As shown in figure 11, the method includes:
S1101, client receive the archived list of the described flash game that server issues;
Archive that S1102, client select according to user and described download flash game is achieved button
Clicking operation, downloads and decompresses the selected game that is archived to and achieve position, and transport with the progress of this archive
Row game;
S1103, when user exits game, prompting user upload archive;
S1104, reception user, to the described clicking operation uploading flash game archive button, will be stored in
Flash game achieves the going game archive of position and uploads onto the server.
Corresponding to the method for previous embodiment, the embodiment of the present invention also provides for a kind of at client manipulation flash
The device of game.Figure 12 is the functional block diagram of this device.As shown in figure 12, this device 120 includes: transmission
Module 1201, and decompresses to client for downloading flash game compressed package from server;User is mutual
Module 1202, for arranging flash games window to the flash trip after playing decompression in described client
Play;Management module 1203, arranges toolbar, by institute for the flash games window in described client
The operation button that stating toolbar provides realizes the manipulation playing described flash;Described toolbar comprises as
Lower operation button one or more combination: sectional drawing, flash game client Dynamic Display, upload
And download flash game archive.
Figure 13 is the refinement functional block diagram of management module.As shown in figure 13, management module 1203 also includes:
Sectional drawing unit 1301, for receiving user's clicking operation to the sectional drawing button of described toolbar;By window
Image saves as the handle of intermediate images equipment interface;This handle is converted into image preserve hereof.
As shown in figure 13, alternatively, management module 1203 also includes: flash games window Dynamic Display list
Unit 1302, for receiving user's clicking operation to described flash games window Dynamic Display button;Judge
The Dynamic Display mode that described flash game is current;Fly out described client window independently in described flash game
In the case of operation, hide the raw hide skin of described client, and parent window handle is set to described client
Handle, makes described flash game run in flying into described client window;Fly into described in described flash game
In the case of running in the window of client, show the raw hide skin of described client, and by parent window handle
It is set to sky, makes described flash game fly out described client window independent operating.
As shown in figure 13, alternatively, management module 1203 also includes: achieves unit 1303, is used for receiving
The archived list of the described flash game that server issues is to client;According to user select archive and
Described download flash game is achieved the clicking operation of button, downloads and decompress and selected be archived to game
Achieve position, and with the progress running game of this archive;When user exits game, prompting user uploads
Achieve;Going game, to the described clicking operation uploading flash game archive button, is achieved by reception user
Upload onto the server.
Embodiment of the present invention method can make flash run in client, and by arranging work in client
Tool hurdle, it is achieved heavily playing the time-out running flash game, sectional drawing, sized etc. operates, and improves use
The operating experience at family.
Above example only in order to the technical scheme of the embodiment of the present invention to be described, is not intended to limit;Although
With reference to previous embodiment, the embodiment of the present invention is described in detail, those of ordinary skill in the art
It is understood that the technical scheme described in foregoing embodiments still can be modified by it, or right
Wherein portion of techniques feature carries out equivalent;And these amendments or replacement, do not make relevant art side
The essence of case departs from the spirit and scope of the embodiment of the present invention each embodiment technical scheme.