CN103235732B - A kind of batch resolves the method and apparatus of flash trivial games ActionScript - Google Patents

A kind of batch resolves the method and apparatus of flash trivial games ActionScript Download PDF

Info

Publication number
CN103235732B
CN103235732B CN201310140830.XA CN201310140830A CN103235732B CN 103235732 B CN103235732 B CN 103235732B CN 201310140830 A CN201310140830 A CN 201310140830A CN 103235732 B CN103235732 B CN 103235732B
Authority
CN
China
Prior art keywords
service end
actionscript
php
client
socket
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
Application number
CN201310140830.XA
Other languages
Chinese (zh)
Other versions
CN103235732A (en
Inventor
曾智茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
4399 NETWORK Co Ltd
Original Assignee
4399 NETWORK Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 4399 NETWORK Co Ltd filed Critical 4399 NETWORK Co Ltd
Priority to CN201310140830.XA priority Critical patent/CN103235732B/en
Publication of CN103235732A publication Critical patent/CN103235732A/en
Application granted granted Critical
Publication of CN103235732B publication Critical patent/CN103235732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to game technical field, specifically disclose the method and apparatus that a kind of batch resolves flash trivial games ActionScript; Client upload swf file, uploads one and completes, and sends an ajax request to php service end; Described php service end judges whether described ajax request is ActionScript; When described ajax request is ActionScript, just create a tcp client temporarily, and send the information of a socket to java service end, described java service end creates a thread, and resolve to source code, then described source code is packaged into zip file by described java service end; And be transferred to described php service end; Described php service end generates chained address, and described client is downloaded according to described chained address.Need not the cpu resource of loss self by user of the present invention, just can parse the source code of flash trivial games ActionScript quickly and easily in batches.

Description

A kind of batch resolves the method and apparatus of flash trivial games ActionScript
Technical field
The present invention relates to game technical field, especially relate to the method and apparatus that a kind of batch resolves flash trivial games ActionScript.
Background technology
Flash game is a kind of game form of new rise, it with play simple, easy to operate, green, without the need to installing, volume is little, propagation is fast, picture is attractive in appearance etc., and advantage enjoys liking of numerous online friends, Flash game is again flash trivial games, because flash game be mainly used in some interest and appeals, on small-sized game, play its advantage based on polar plot completely.
Flash technology comprises a set of script resolver able to programme, is called ActionScript, uses and the similar grammer of Java and JavaScript, can control Flash animation, realizes multiple interactive function.
Client can not directly read Flash game or operate, and needs, by after reader or player parsing, just can carry out reading or operating, and this process is exactly that Flash resolves.Computing machine is identified by the script read in Flash game.
In prior art, Flash game is resolved and is adopted ActionScriptDEC, ActionScriptDEC is the open source projects of the code analysis write by Java, the ActionScript source code in Flash game can be parsed, but there is the parse operation that can only realize single Flash file, be not able to batch the defect of parsing.
Summary of the invention
Technical matters solved by the invention is to provide the method and apparatus that a kind of batch resolves flash trivial games ActionScript, allow user can parse flash trivial games ActionScript source code quickly and easily in batches, and user need not the cpu resource of loss self, just directly can obtain the source code of ActionScript.
In order to solve the problems of the technologies described above, the invention provides a kind of method that batch resolves flash trivial games ActionScript, comprising:
Step one: client uploads batch swf file or single swf file by web services end;
Step 2: often upload a described swf file and complete, described web services end sends a ajax to php service end and asks;
Step 3: when described php service end often obtains a described ajax request, described php service end judges whether described ajax request is ActionScript:
When described php service end judges that described ajax request is ActionScript, just create a tcp client temporarily, the described ajax request of ActionScript is positioned over described tcp client, the described ajax of ActionScript is asked the filename write socket comprised by described tcp client, described tcp client sends the information of described socket to java service end, carry out following step 4, the packets of information of described socket is containing the specified path of source code after decompress(ion);
When described php service end judges that described ajax request is not ActionScript, described judgement is fed back to described client, returns step one;
Step 4: described java service end is after the information receiving described socket, described java service end opens the information of described socket, then described java service end creates a thread and receives and resolve the information of described socket, the information analysis of described socket is source code by described java service end, described source code is left in the described specified path of described source code by described java service end, then the described source code of described specified path compresses and is packaged into zip file by described java service end again, terminates described thread;
Step 5: described zip file transfer is given described php service end by described java service end;
Step 6: described php service end is responded described ajax and asked and generate chained address, described chained address is described zip file download address;
Step 7: described client downloads described zip file according to the described chained address that described php service end generates.
Preferably, described client comprise mobile phone, personal computer, panel computer or other obtain with website and communicate and be configured with hardware (such as: the processor) device and software (such as: FLASH software, browser and windows operating system etc.) device of playing swf file.
Meanwhile, present invention also offers the device that a kind of batch resolves flash trivial games ActionScript, comprising: client, web services end, php service end, tcp client and java service end; Described client is connected with described php service end with described web services end respectively, described web services end is connected with described php service end, described php service end is connected with described tcp client, described tcp client is connected with described java service end, and described java service end is connected with described php service end.
Preferably, described php service end also comprises display device.
More preferably, described display device also direct and described client be connected.
The present invention compared with prior art, has following beneficial effect:
The invention provides the method and apparatus that a kind of batch resolves flash trivial games ActionScript, allow user can parse the source code of the ActionScript in flash trivial games quickly and easily in batches, and user need not the cpu resource of loss self, just directly can obtain the source code of ActionScript, there is convenient, fast, intelligent, that mass, efficiency are high feature.
Accompanying drawing explanation
Fig. 1 schematically illustrates the method flow diagram that batch resolves flash trivial games ActionScript;
Fig. 2 schematically illustrates the apparatus structure schematic diagram that batch resolves flash trivial games ActionScript;
Fig. 3 schematically illustrates web services end and uploads and php service end background process process flow diagram;
Fig. 4 schematically illustrates php service end and java service end interaction diagrams.
Embodiment
In order to the technical scheme understanding technical matters solved by the invention better, provide, below in conjunction with drawings and Examples, the present invention is further elaborated.Specific embodiment described herein only in order to explain enforcement of the present invention, but is not intended to limit the present invention.
Fig. 1 schematically illustrates the method flow that batch resolves flash trivial games ActionScript;
S1: client uploads batch swf file or single swf file by web services end;
S2: as shown in Figure 3, often upload a described swf file and complete, described web services end sends a ajax to php service end and asks;
S3: as shown in Fig. 3 ~ Fig. 4, when described php service end often obtains a described ajax request, described php service end judges whether described ajax request is ActionScript:
When described php service end judges that described ajax request is ActionScript, just create a tcp client temporarily, the described ajax request of ActionScript is positioned over described tcp client, the described ajax of ActionScript is asked the filename write socket comprised by described tcp client, described tcp client sends the information of described socket to java service end, carry out following step S4, the packets of information of described socket is containing the specified path of source code after decompress(ion);
When described php service end judges that described ajax request is not ActionScript, described judgement is fed back to described client, returns step S1;
S4: as shown in Figure 4, described java service end is after the information receiving described socket, described java service end opens the information of described socket, then described java service end creates a thread and receives and resolve the information of described socket, the information analysis of described socket is source code by described java service end, described source code is left in the described specified path of described source code by described java service end, then the described source code of described specified path compresses and is packaged into zip file by described java service end again, terminates described thread;
S5: described zip file transfer is given described php service end by described java service end;
S6: as shown in Figure 3, described php service end is responded described ajax and is asked and generate chained address, and described chained address is described zip file download address;
S7: described client downloads described zip file according to the described chained address that described php service end generates.
In a preferred embodiment, described client comprise mobile phone, personal computer, panel computer or other obtain with website and communicate and be configured with the hardware unit (such as: processor) and software (such as: FLASH software, browser and windows operating system etc.) device of playing swf file.
Fig. 2 schematically illustrates the apparatus structure schematic diagram that batch resolves flash trivial games ActionScript, comprising: client 1, web services end 2, php service end 3, tcp client 4 and java service end 5; Described client 1 is connected with described php service end 3 with described web services end 2 respectively, described web services end 2 is connected with described php service end 3, described php service end 3 is connected with described tcp client 4, described tcp client 4 is connected with described java service end 5, and described java service end 5 is connected with described php service end 3.
In a preferred embodiment, described php service end 3 also comprises display device 6.
In the embodiment be more preferably, described display device 6 also direct and described client 1 is connected.
In specific embodiment:
User opens web services end 2, and what web services end 2 pulled into by the swf file that user will resolve uploads framework; Described swf file is uploaded by described web services end 2; Often upload a described swf file to complete, described web services end 2 sends an ajax request to described php service end 3; When described php service end 3 often obtains a described ajax request, described php service end 3 judges whether described ajax request is ActionScript;
When described php service end 3 judges that described ajax request is ActionScript, just create a tcp client 4 temporarily, the described ajax request of ActionScript is positioned over described tcp client 4, the described ajax of ActionScript is asked the filename write socket comprised by described tcp client 4, described tcp client 4 sends the information of described socket to java service end 5, carry out following step, the packets of information of described socket is containing the specified path of source code after decompress(ion);
When described php service end 5 judges that described ajax request is not ActionScript, described judgement is fed back to user, and reminding user reselects the swf file that will resolve;
Described java service end 5 is after the information receiving described socket, described java service end 5 opens the information of described socket, then described java service end 5 creates a thread and receives and resolve the information of described socket, as shown in Figure 4, the information analysis of described socket is source code by described java service end 5, described source code is left in the described specified path of described source code by described java service end 5, then the described source code of described specified path compresses and is packaged into zip file by described java service end 5 again, terminates described thread; Described zip file transfer is given described php service end 3 by described java service end 5; Described php service end 3 is responded described ajax and is asked and generate chained address, and described chained address is described zip file download address; User downloads described zip file according to described chained address, after download described in local decompress(ion) zip file, namely can read the described swf file that will resolve; User both can resolve single described swf file, also can carry out batch to multiple described swf file and resolve.
The present invention is described with preferred embodiment and by reference to the accompanying drawings in detail above by concrete; but those skilled in the art should be understood that; the present invention is not limited to the above embodiment; all within ultimate principle of the present invention; any amendment of doing, combination and equivalent replacement etc., be all included within protection scope of the present invention.

Claims (5)

1. batch resolves a method of flash trivial games ActionScript, it is characterized in that, comprising:
Step one: client uploads batch swf file or single swf file by web services end;
Step 2: often upload a described swf file and complete, described web services end sends a ajax to php service end and asks;
Step 3: when described php service end often obtains a described ajax request, described php service end judges whether described ajax request is ActionScript:
When described php service end judges that described ajax request is ActionScript, just create a tcp client temporarily, the described ajax request of ActionScript is positioned over described tcp client, the described ajax of ActionScript is asked the filename write socket comprised by described tcp client, described tcp client sends the information of described socket to java service end, carry out following step 4, the packets of information of described socket is containing the specified path of source code after decompress(ion);
When described php service end judges that described ajax request is not ActionScript, described judgement is fed back to described client, returns step one;
Step 4: described java service end is after the information receiving described socket, described java service end opens the information of described socket, then described java service end creates a thread and receives and resolve the information of described socket, the information analysis of described socket is source code by described java service end, described source code is left in the described specified path of described source code by described java service end, then the described source code of described specified path compresses and is packaged into zip file by described java service end again, terminates described thread;
Step 5: described zip file transfer is given described php service end by described java service end;
Step 6: described php service end is responded described ajax and asked and generate chained address, described chained address is described zip file download address;
Step 7: described client downloads described zip file according to the described chained address that described php service end generates.
2. batch according to claim 1 resolves the method for flash trivial games ActionScript, it is characterized in that, described client comprise mobile phone, personal computer, panel computer or other obtain with website and communicate and be configured with the hardware unit and software service of playing swf file.
3. batch resolves a device of flash trivial games ActionScript, it is characterized in that, comprising: client, web services end, php service end, tcp client and java service end; Described client is connected with described php service end with described web services end respectively, described web services end is connected with described php service end, described php service end is connected with described tcp client, described tcp client is connected with described java service end, and described java service end is connected with described php service end;
User opens web services end, and what web services end pulled into by the swf file that user will resolve uploads framework; Described swf file is uploaded by described web services end; Often upload a described swf file to complete, described web services end sends an ajax request to described php service end; When described php service end often obtains a described ajax request, described php service end judges whether described ajax request is ActionScript;
When described php service end judges that described ajax request is ActionScript, just create a tcp client temporarily, the described ajax request of ActionScript is positioned over described tcp client, the described ajax of ActionScript is asked the filename write socket comprised by described tcp client, described tcp client sends the information of described socket to java service end, carry out following step, the packets of information of described socket is containing the specified path of source code after decompress(ion);
When described php service end judges that described ajax request is not ActionScript, described judgement is fed back to user, and reminding user reselects the swf file that will resolve;
Described java service end is after the information receiving described socket, described java service end opens the information of described socket, then described java service end creates a thread and receives and resolve the information of described socket, the information analysis of described socket is source code by described java service end, described source code is left in the described specified path of described source code by described java service end, then the described source code of described specified path compresses and is packaged into zip file by described java service end again, terminates described thread; Described zip file transfer is given described php service end by described java service end; Described php service end is responded described ajax and is asked and generate chained address, and described chained address is described zip file download address; User downloads described zip file according to described chained address, after download described in local decompress(ion) zip file, namely can read the described swf file that will resolve.
4. batch according to claim 3 resolves the device of flash trivial games ActionScript, and it is characterized in that, described php service end also comprises display device.
5. batch according to claim 4 resolves the device of flash trivial games ActionScript, and it is characterized in that, described display device also direct and described client is connected.
CN201310140830.XA 2013-04-22 2013-04-22 A kind of batch resolves the method and apparatus of flash trivial games ActionScript Active CN103235732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310140830.XA CN103235732B (en) 2013-04-22 2013-04-22 A kind of batch resolves the method and apparatus of flash trivial games ActionScript

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310140830.XA CN103235732B (en) 2013-04-22 2013-04-22 A kind of batch resolves the method and apparatus of flash trivial games ActionScript

Publications (2)

Publication Number Publication Date
CN103235732A CN103235732A (en) 2013-08-07
CN103235732B true CN103235732B (en) 2015-12-09

Family

ID=48883777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310140830.XA Active CN103235732B (en) 2013-04-22 2013-04-22 A kind of batch resolves the method and apparatus of flash trivial games ActionScript

Country Status (1)

Country Link
CN (1) CN103235732B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561082B (en) * 2013-10-30 2017-01-18 北京奇虎科技有限公司 Compressing request processing method and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456792C (en) * 2003-06-25 2009-01-28 张齐治 Method for playing SWF file (FLASH) on handheld mobile equipment
CN102185877A (en) * 2011-01-31 2011-09-14 北京开心人信息技术有限公司 Method and system for displaying FLASH downloading progress on webpage in real time
CN102520951A (en) * 2011-12-13 2012-06-27 天津大学 Flash-based three-dimensional game scene management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8775919B2 (en) * 2006-04-25 2014-07-08 Adobe Systems Incorporated Independent actionscript analytics tools and techniques

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456792C (en) * 2003-06-25 2009-01-28 张齐治 Method for playing SWF file (FLASH) on handheld mobile equipment
CN102185877A (en) * 2011-01-31 2011-09-14 北京开心人信息技术有限公司 Method and system for displaying FLASH downloading progress on webpage in real time
CN102520951A (en) * 2011-12-13 2012-06-27 天津大学 Flash-based three-dimensional game scene management system

Also Published As

Publication number Publication date
CN103235732A (en) 2013-08-07

Similar Documents

Publication Publication Date Title
CN102647398B (en) Method and device for realizing game on basis of mobile terminal
EP3465467B1 (en) Web page accelerations for web application hosted in native mobile application
US9536261B2 (en) Resolving conflicts within saved state data
CN105791291B (en) The method and apparatus of real-time update in the display control method of network application, display
CN109347722B (en) Interaction system, method, client and background server
US20210291045A1 (en) Method, system and electronic device for achieving remote control of computer game by game controller
US20180019961A1 (en) Message processing method, processing server, terminal, and storage medium
CN108449409B (en) Animation pushing method, device, equipment and storage medium
EP2867793B1 (en) System and method for transparent in-network adaptation of rich internet applications
CN111831538B (en) Debugging method, device and storage medium
CN103747074B (en) mobile monitoring system based on Web server
CN103440574A (en) Method, client terminal and system for processing game payment
US9426212B2 (en) Sharing an application configuration among social networks
JP5132825B1 (en) Game management server device, game management server device program, and terminal device program
CN103577226B (en) A kind of assembly type game construction method on IOS and Android platform
KR101373550B1 (en) System for platform system based on network
CN103235732B (en) A kind of batch resolves the method and apparatus of flash trivial games ActionScript
US9471299B1 (en) Updating code within an application
CN103235733B (en) A kind of batch resolves the method and apparatus that flash trivial games is byte code
CN110300047A (en) A kind of animation playing method, device and storage medium
CN112732250A (en) Interface processing method, device and storage medium
JP5891325B2 (en) Information providing apparatus, information providing method, and program
CN113360200A (en) Method and device for running target program embedded page
CN116233209A (en) Remote management scheduling method for GPU cloud rendering service
CN109086053A (en) A kind of dynamic select, the load APP device control panel UI page and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant