CN103500207A - Flash source file element extraction method and device - Google Patents

Flash source file element extraction method and device Download PDF

Info

Publication number
CN103500207A
CN103500207A CN201310456146.2A CN201310456146A CN103500207A CN 103500207 A CN103500207 A CN 103500207A CN 201310456146 A CN201310456146 A CN 201310456146A CN 103500207 A CN103500207 A CN 103500207A
Authority
CN
China
Prior art keywords
flash
document
information
source document
attribute
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.)
Pending
Application number
CN201310456146.2A
Other languages
Chinese (zh)
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.)
Zhejiang Rand network technology Limited by Share Ltd
Original Assignee
MOCHA SOFTWARE (TIANJIN) 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 MOCHA SOFTWARE (TIANJIN) CO Ltd filed Critical MOCHA SOFTWARE (TIANJIN) CO Ltd
Priority to CN201310456146.2A priority Critical patent/CN103500207A/en
Publication of CN103500207A publication Critical patent/CN103500207A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a Flash source file element extraction method and device. An FL file object is used for visiting a Flash source file and analyzing the material, element, scene and other element information of the Flash source file. Therefore, an internal scene, a picture, the element and other information of the Flash source file are extracted completely, and a feasible technical solution is provided for a computer-assisted assessment of Flash animation production.

Description

A kind of method and apparatus of Flash source file element extraction
Technical field
The present invention relates to the computer animation field, particularly a kind of method and apparatus of Flash source file element extraction.
Background technology
The source file of Flash is the FLA file.Flash software, when editor FLA source document, can import all kinds of materials, make dissimilar element; Design different scene (comprising figure layer, key frame, animation etc.); Finally issue into the animation of SWF form at internet use.The SWF animation has only been preserved animated element information and the control information of necessity that animate is relevant.SWF animation file publishing, its file layout is disclosed, and FLA source document form is not open, is a kind of protection form.Therefore information how to obtain all sidedly FLA source document file inside has become a technical matters urgently to be resolved hurrily in the test and appraisal of Flash cartoon making area of computer aided.
Summary of the invention
To sum up, the technical problem to be solved in the present invention is how to realize the information extraction of Flash source document, realizes the complete extraction of the information such as the inner scene of Flash source document, figure layer and element.For realizing that the test and appraisal of Flash cartoon making area of computer aided provide a kind of feasible technical solution.
According to an aspect of the present invention, provide a kind of method of Flash source file element extraction, it is characterized in that:
Use FLfile object accesses Flash source document, and resolve the element information of described Flash source document.
Preferably, described method specifically realizes by following steps:
The read method of S0, use FLFile object is obtained the complete trails information that needs the Flash of information extraction source document and is assigned to a FilePath string variable from the text of assigned address; Use the fl.openDocument method of Flash object to open the Flash source document of appointment, if method runs succeeded, return to the Document object of opening document;
S1, use the base attribute of Document object acquisition Flash source document, obtain the animation essential information of Flash source file, generate Document root node and correlation attribute information;
S2, by the Library subobject of traversal Document object, obtain all kinds of materials and component information in Flash source document storehouse; Obtain the interior various object information of figure layer, key frame and key frame of element, and generate corresponding object node and attribute information;
S3, by the Timeline object of traversal Document object, obtain each scene information of Flash source document; Obtain the interior various object information of figure layer, key frame and key frame of each scene, and generate corresponding Object node and attribute information;
S4, the Flash source document information exchange of extraction is crossed to the FLfile.write method generate XML document, use the fl.closeDocument method to close the F1ash source document in the mode of not preserving.
Preferably, by the form of XML, organize and mean the Flash source document element information extracted, with reference to Flash DOM Document Object Model hierarchical structure, the Flash Object table being shown as to the Object node of naming with the Flash object oriented in XML document; The attribute of Flash object and attribute value table are shown to attribute and the property value of corresponding XML Object node; The subobject of Flash object is expressed as to the child node of Object node.
According to a further aspect in the invention, provide a kind of device of Flash source file element extraction, it is characterized in that comprising:
For using FLfile object accesses Flash source document, and resolve the device of the element information of described Flash source document.
Preferably, described device specifically comprises:
For using the read method of FLFile object to obtain the complete trails information that needs the Flash of information extraction source document and be assigned to a FilePath string variable from the text of assigned address; Use the fl.openDocument method of Flash object to open the Flash source document of appointment, if method runs succeeded, return to the device of the Document object of opening document;
For using the base attribute of Document object acquisition Flash source document, obtain the animation essential information of Flash source file, generate the device of Document root node and correlation attribute information;
Library subobject for by traversal Document object, obtain all kinds of materials and component information in Flash source document storehouse; Obtain the interior various object information of figure layer, key frame and key frame of element, and generate the device of corresponding object node and attribute information;
For the Timeline object by traversal Document object, obtain each scene information of Flash source document; Obtain the interior various object information of figure layer, key frame and key frame of each scene, and generate the device of corresponding Object node and attribute information;
Generate XML document for the Flash source document information exchange of extraction being crossed to the FLfile.write method, use the fl.closeDocument method to close the device of F1ash source document in the mode of not preserving.
Preferably, by the form of XML, organize and mean the Flash source document element information extracted, with reference to Flash DOM Document Object Model hierarchical structure, the Flash Object table being shown as to the Object node of naming with the Flash object oriented in XML document; The attribute of Flash object and attribute value table are shown to attribute and the property value of corresponding XML Object node; The subobject of Flash object is expressed as to the child node of Object node.
The accompanying drawing explanation
Fig. 1 is exemplified with the method flow diagram of a kind of Flash source file of embodiment of the present invention embodiment of the present invention element extraction.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage are become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
In order successfully to obtain the internal information of Flash source document, must solve two problems: the one, the induced representation problem of the importing of external information and obtaining information; The 2nd, how to realize obtaining of Flash internal information.The FLfile object allows to write the Flash expansion shell script that can conduct interviews, revise and delete the file in local file system and file.FLfileAPI provides with the form of JavaScriptAPI expansion.Utilize it can solve the problem that external information imports and obtaining information is derived.The Flash object provides the DOM Document Object Model based on Flash JavaScript API (DOM), allow design to realize the access of Flash source document with reference to the JavaScript script application programe of this model, and access one by one and obtain object information by the Object hierarchical structure of DOM Document Object Model, obtaining information is organized and means by the form of XML.The principle that tissue means is with reference to Flash DOM Document Object Model hierarchical structure, the Flash Object table to be shown as to the Object node of naming with the Flash object oriented in XML document; The attribute of Flash object and attribute value table are shown to attribute and the property value of corresponding XML Object node; The subobject of Flash object is expressed as to the child node of Object node.
According to the foregoing invention design, the method flow diagram by Fig. 1 exemplified with a kind of Flash source file of embodiment of the present invention element extraction, as shown in Figure 1, described method comprises step:
The read method of S0, use FLFile object is obtained the complete trails information that needs the Flash of information extraction source document and is assigned to a FilePath string variable from the text of assigned address; Use the fl.openDocument method of Flash object to open the Flash source document of appointment, if method runs succeeded, return to the Document object of opening document;
S1, use the base attribute of Document object acquisition Flash source document, obtain the animation essential information of Flash source file, generate Document root node and correlation attribute information;
S2, by the Library subobject of traversal Document object, obtain all kinds of materials and component information in Flash source document storehouse; Obtain the interior various object information of figure layer, key frame and key frame of element, and generate corresponding object node and attribute information;
S3, by the Timeline object of traversal Document object, obtain each scene information of Flash source document; Obtain the interior various object information of figure layer, key frame and key frame of each scene, and generate corresponding Object node and attribute information;
S4, the Flash source document information exchange of extraction is crossed to the FLfile.write method generate XML document, use the fl.closeDocument method to close the F1ash source document in the mode of not preserving.
More than introduced the embodiment of the inventive method, in addition, the present invention also comprises corresponding device.Because device of the present invention can be take computer program fully and realized as basic mode, so its apparatus structure can, according to realizing with the corresponding consistent apparatus module mode of method step, for example be realized according to the described mode of guidelines for examination chapter 9.Because its module setting can change according to the various combination of method step, here no longer to method step corresponding module setting repeat to repeat, those skilled in the art with reference to before the method embodiment can learn this apparatus structure fully.
It is more than the detailed description that the preferred embodiments of the present invention are carried out, but those of ordinary skill in the art is to be appreciated that, within the scope of the present invention, and guided by the spirit, various improvement, interpolation and replacement are all possible, such as using the algorithm can realize functional purpose of the same race, use that different programming language (as C, C++, Java etc.) is realized etc.In these protection domains that all limit in claim of the present invention.

Claims (6)

1. the method for a Flash source file element extraction is characterized in that:
Use FLfile object accesses Flash source document, and resolve the element information of described Flash source document.
2. the method for claim 1 is characterized in that described method specifically realizes by following steps:
The read method of S0, use FLFile object is obtained the complete trails information that needs the Flash of information extraction source document and is assigned to a FilePath string variable from the text of assigned address; Use the fl.openDocument method of Flash object to open the Flash source document of appointment, if method runs succeeded, return to the Document object of opening document;
S1, use the base attribute of Document object acquisition Flash source document, obtain the animation essential information of Flash source file, generate Document root node and correlation attribute information;
S2, by the Library subobject of traversal Document object, obtain all kinds of materials and component information in Flash source document storehouse; Obtain the interior various object information of figure layer, key frame and key frame of element, and generate corresponding object node and attribute information;
S3, by the Timeline object of traversal Document object, obtain each scene information of Flash source document; Obtain the interior various object information of figure layer, key frame and key frame of each scene, and generate corresponding Object node and attribute information;
S4, the Flash source document information exchange of extraction is crossed to the FLfile.write method generate XML document, use the fl.closeDocument method to close the F1ash source document in the mode of not preserving.
3. method as claimed in claim 1 or 2 is characterized in that:
Organize and mean the Flash source document element information extracted by the form of XML, with reference to Flash DOM Document Object Model hierarchical structure, the Flash Object table being shown as to the Object node of naming with the Flash object oriented in XML document; The attribute of Flash object and attribute value table are shown to attribute and the property value of corresponding XML Object node; The subobject of Flash object is expressed as to the child node of Object node.
4. the device of a Flash source file element extraction is characterized in that comprising:
For using FLfile object accesses Flash source document, and resolve the device of the element information of described Flash source document.
5. device as claimed in claim 4 is characterized in that described device specifically comprises:
For using the read method of FLFile object to obtain the complete trails information that needs the Flash of information extraction source document and be assigned to a FilePath string variable from the text of assigned address; Use the fl.openDocument method of Flash object to open the Flash source document of appointment, if method runs succeeded, return to the device of the Document object of opening document;
For using the base attribute of Document object acquisition Flash source document, obtain the animation essential information of Flash source file, generate the device of Document root node and correlation attribute information;
Library subobject for by traversal Document object, obtain all kinds of materials and component information in Flash source document storehouse; Obtain the interior various object information of figure layer, key frame and key frame of element, and generate the device of corresponding object node and attribute information;
For the Timeline object by traversal Document object, obtain each scene information of Flash source document; Obtain the interior various object information of figure layer, key frame and key frame of each scene, and generate the device of corresponding Object node and attribute information;
Generate XML document for the Flash source document information exchange of extraction being crossed to the FLfile.write method, use the fl.closeDocument method to close the device of F1ash source document in the mode of not preserving.
6. device as described as claim 4 or 5 is characterized in that:
Organize and mean the Flash source document element information extracted by the form of XML, with reference to Flash DOM Document Object Model hierarchical structure, the Flash Object table being shown as to the Object node of naming with the Flash object oriented in XML document; The attribute of Flash object and attribute value table are shown to attribute and the property value of corresponding XML Object node; The subobject of Flash object is expressed as to the child node of Object node.
CN201310456146.2A 2013-09-27 2013-09-27 Flash source file element extraction method and device Pending CN103500207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310456146.2A CN103500207A (en) 2013-09-27 2013-09-27 Flash source file element extraction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310456146.2A CN103500207A (en) 2013-09-27 2013-09-27 Flash source file element extraction method and device

Publications (1)

Publication Number Publication Date
CN103500207A true CN103500207A (en) 2014-01-08

Family

ID=49865417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310456146.2A Pending CN103500207A (en) 2013-09-27 2013-09-27 Flash source file element extraction method and device

Country Status (1)

Country Link
CN (1) CN103500207A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995697A (en) * 2014-04-30 2014-08-20 广州视睿电子科技有限公司 Method and system for processing flash file
CN107479899A (en) * 2017-08-28 2017-12-15 网易(杭州)网络有限公司 Document handling method and device, storage medium and processor
CN112435319A (en) * 2019-08-26 2021-03-02 上海卷石文化传媒有限公司 Two-dimensional animation generating system based on computer processing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243637A (en) * 2011-04-02 2011-11-16 浙江师范大学 Method for extracting Flash source document information
CN103049303A (en) * 2013-01-11 2013-04-17 乐视网信息技术(北京)股份有限公司 swf file analytic method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243637A (en) * 2011-04-02 2011-11-16 浙江师范大学 Method for extracting Flash source document information
CN103049303A (en) * 2013-01-11 2013-04-17 乐视网信息技术(北京)股份有限公司 swf file analytic method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
项洁 等: "基于JSFL的Flash作品自动评价技术", 《杭州师范大学学报(自然科学版)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995697A (en) * 2014-04-30 2014-08-20 广州视睿电子科技有限公司 Method and system for processing flash file
CN103995697B (en) * 2014-04-30 2018-06-22 广州视睿电子科技有限公司 Handle the method and system of flash file
CN107479899A (en) * 2017-08-28 2017-12-15 网易(杭州)网络有限公司 Document handling method and device, storage medium and processor
CN112435319A (en) * 2019-08-26 2021-03-02 上海卷石文化传媒有限公司 Two-dimensional animation generating system based on computer processing

Similar Documents

Publication Publication Date Title
KR102186865B1 (en) Control and part compliant hierarchy
US20130326333A1 (en) Mobile Content Management System
CN107291476A (en) Canvas code generating methods, device, electronic equipment and storage medium
Leutnant et al. swmmr-an R package to interface SWMM
US11194884B2 (en) Method for facilitating identification of navigation regions in a web page based on document object model analysis
US20120102392A1 (en) Method for displaying a data set
KR101494844B1 (en) System for Transforming Chart Using Metadata and Method thereof
US20140245126A1 (en) Method and apparatus for visualizing the underlying structure of a document using an interactive viewport overlay
US11314757B2 (en) Search results modulator
CN102243637A (en) Method for extracting Flash source document information
CN102663050A (en) Method and device for processing electronic book data
Huang Innovative Approaches of Data Visualization and Visual Analytics
CN103500207A (en) Flash source file element extraction method and device
CN103593483A (en) Search method for flash courseware knowledge points
Ballamudi et al. Getting Started Modern Web Development with Next. js: An Indispensable React Framework
CN111488102A (en) Modular editing method, terminal, server and system for graphic animation
TWI483173B (en) Systems and methods for providing access to media content
CN108228181A (en) The method and device of embedded html page in html page
Shahinmoghadam et al. An ontology-based mediation framework for integrating federated sources of BIM and IoT data
US20170364496A1 (en) Visualization interface for information object system
Sievert et al. Extending ggplot2 for linked and animated web graphics
CN114090503A (en) File management method, system, electronic equipment and readable storage medium thereof
Preim et al. Medical animations: a survey and a research agenda
CN103513872A (en) Node generation method, page positioning method and device
Gekker et al. Introduction: mapping times

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170330

Address after: 310012 room 619-628, building, building 6, International Building, No. two, Wen Road, Hangzhou, Zhejiang, Xihu District 6, China

Applicant after: Zhejiang Rand network technology Limited by Share Ltd

Address before: A District No. 1 building 300384 Tianjin Xinmao software Nankai District Huayuan Industrial District of Tianjin New Technology Industrial Zone Rong Yuan Road 1810-1811 room

Applicant before: Mocha Software (Tianjin) Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140108