CN100412908C - Merge display method of multiple animation file - Google Patents

Merge display method of multiple animation file Download PDF

Info

Publication number
CN100412908C
CN100412908C CNB2005100515742A CN200510051574A CN100412908C CN 100412908 C CN100412908 C CN 100412908C CN B2005100515742 A CNB2005100515742 A CN B2005100515742A CN 200510051574 A CN200510051574 A CN 200510051574A CN 100412908 C CN100412908 C CN 100412908C
Authority
CN
China
Prior art keywords
animation
tag block
file
display
layer
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
CNB2005100515742A
Other languages
Chinese (zh)
Other versions
CN1831870A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2005100515742A priority Critical patent/CN100412908C/en
Publication of CN1831870A publication Critical patent/CN1831870A/en
Application granted granted Critical
Publication of CN100412908C publication Critical patent/CN100412908C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention discloses a method of merging and displaying a plurality of animation files, which comprises the steps that animation files which need merging are allocated with independent display layers, then, the display contents of each animation file are arranged into the allocated layers, and then, the display contents in all layers are displayed out completely according to a certain layer relation in one frame. The present invention can actually merge a plurality of animation files which need displaying into one animation file without using the storage path of each animation file in the merging display process, reduce work load in the merging display process of animation files, and lower the realization difficulty of the merging display of animation files.

Description

A kind of merging display packing of a plurality of animation files
Technical field
The present invention relates to the animation design technique field, relate in particular to a kind of merging display packing of a plurality of animation files.
Background technology
Current, instant messaging (IM) instrument has obtained application more and more widely, people have also had higher requirement to the service quality of IM instrument, wherein when utilizing the IM instrument to realize instant messaging, owing to be presented at many features that personal virtual image on the IM instrument can be represented the IM tool-user, therefore, enjoy the concern of IM tool-user, thus, need to improve the display quality of individual virtual image on the IM instrument, to reach the needs that improve IM instrument service quality.
In the prior art, adopt animated image, to substitute the initial rest image that is adopted, to reach the needs that improve display quality as the personal virtual image.In actual application, allow the IM tool-user for example selecting in the virtual image components such as the shape of face, hair style, clothes, background, ornament, be used as virtual image to utilize selected element finally to constitute animated image.Each component has a plurality of alternative elements respectively for you to choose, each alternative elements is preserved with the form of animation file respectively, after the IM tool-user is selected the respective alternative element, by the script command that provides in advance, in the pairing animation file of these alternative elements dynamic load to an animation file, then can realize showing the personal virtual image in the mode of animation by showing this animation file.
In the prior art, be with in each animation file dynamic load to an animation file by script command, in fact each animation file is not merged in the animation file, can on visual effect, reach the effect that merges a plurality of animation files though do like this, but, because each animation file has the path of depositing separately respectively, therefore, need provide these to deposit the path to script command, script command also needs to deposit the path according to these and obtains each animation file respectively and realize dynamic load, thereby intends the specific implementation of image.Equally, a plurality of animations need be merged in the practical application that shows at other, because prior art do not merge in the animation file a plurality of animation files are actual, therefore, it is big and be difficult for the problem that realizes also to deposit above-mentioned workload.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of merging display packing of a plurality of animation files, this method can also show a plurality of actual merging in the animation file of animation file that need to merge demonstration, thereby reduce the workload in a plurality of animations merging procedure for displaying, reduce and realize difficulty.
For achieving the above object, the invention provides a kind of merging display packing of a plurality of animation files, this method comprises:
Steps A: the animation of creating separately for each animation file that need merge defines tag block, for the animation definition tag block of each establishment is created a corresponding with it placing objects tag block respectively, and be each animation file distributing independent display layer that need merge;
Step B: the placing objects tag block that each animation file utilization is created with animation define the tag block corresponding display content be placed into distribute separately obtain layer in;
Step C: the displaying contents in all layers is all shown according to certain hierarchical relationship in a frame.
Wherein, described animation file is Sasser form (Swf) file, steps A is described for after each animation file that need merge establishment animation definition tag block separately, and this method further comprises: create sub-animation by creating animation definition tag block respectively for the animation file of needs merging;
The described independently display layer of steps A is the independently display layer that the sub-animation created distributes respectively.
Wherein, described steps A comprises: according to the precedence that each Swf file merges, order is each an animation definition of Swf document creation tag block that need merge, and is the definite respectively object identity that the overall situation is unique of each animation definition tag block;
For the animation definition tag block of each establishment is created a corresponding with it placing objects tag block respectively, determine the binary array (object identity that each placing objects tag block is specified, layer sequence number), wherein, determine this binary array (object identity, layer sequence number) object identity in is the object identity that defines tag block with the corresponding animation of this placing objects tag block, determine layer sequence number in this binary array (object identity, layer sequence number) be one not by other display object take layer layer sequence number.
Wherein, describedly determine the unique object identity of the overall situation respectively for each animation definition tag block and be:
The object identity of the animation definition tag block that the serial number of the Swf file that needs are merged is created as this Swf file.
Wherein, described determine the layer sequence number in this binary array (object identity, layer sequence number) be one not by other display object take layer layer sequence number be:
The independently layer sequence number of layer that the serial number of the Swf file that needs are merged is distributed as this Swf file, with this layer sequence number as the layer sequence number in the described binary array (object identity, layer sequence number).
Wherein, described animation file is the Swf file, and step B comprises:
Step B0: renewal needs the display object sign of the animation file of merging, and the overall situation is unique afterwards so that this display object is identified at merging;
Step B1: will need the definition tag block of the Swf file that merges to be placed into before the animation definition tag block of creating for this document;
Step B2: will need the control tag block of the Swf file that merges to be placed among the animation definition tag block of creating for this document, as the sub-animation tag piece of this animation definition tag block;
Step B3: the Swf file that needs to merge is utilized as the placing objects tag block that it is created, and will be placed in the independently display layer that is distributed for this Swf file for the defined displaying contents of animation definition tag block that this Swf file is created.
Wherein, in step B0, the display object of described each animation file of renewal is designated:
Each object identity of each tag block in the Swf file that traversal needs to merge, redistribute object identity for occurring identifying afoul object identity in the tag block, and this object identity that will occur also is updated to the object identity after redistributing in all the other tag block of this Swf file with object for allocation.
Wherein, between step B3 and the step C, this method further comprises:
Add up the number of the display frame tag block in each Swf file that need merge respectively, the number that obtains with statistics is respectively upgraded the frame number value in the corresponding animation of being created for the Swf file definition tag block then
Wherein, among the step B3, described will being placed in the independently display layer that is distributed for this Swf file for the defined displaying contents of animation definition tag block that this Swf file is created is:
The placing objects tag block binary array (object identity, layer sequence number) that it is specified is added in the display list; Wherein, object identity is the object identity of the described animation definition tag block of being created for this Swf file, and layer sequence number is the sequence number of the described independently display layer that is distributed for this Swf file.
Wherein, step C comprises:
The display frame tag block according to the content of each binary array in the display list (object identity, layer sequence number), is play the displaying contents of each layer successively in a frame.
As seen, the present invention can merge actual the merging in the animation file of a plurality of animation files that shows with needs, need not in merging procedure for displaying, to use the path of depositing of each animation file, thereby reduced the workload in the animation file merging procedure for displaying, reduced animation file and merged the realization difficulty that shows.
Description of drawings
Fig. 1 is the synoptic diagram of the 5th Swf file in one embodiment of the invention.
Fig. 2 is for realizing process flow diagram of the present invention.
Fig. 3 is the synoptic diagram of the Swf prototype that makes up among the present invention.
Fig. 4 is the synoptic diagram of the 5th Swf file after the upgating object sign among the present invention.
Fig. 5 shows in one embodiment of the invention, the result after merging to the 5th Swf file in the Swf prototype.
Embodiment
The present invention is a kind of merging display packing of a plurality of animation files, this method is distributed unique display layer respectively for the animation file that each need merge demonstration, and upgrade the object identity value in each animation file, make that the overall situation is unique in the animation file of each object identity value after merging, then, the displaying contents of each animation file is placed into distributes separately in the layer that obtains, at last, again the displaying contents in all layers is all shown according to certain hierarchical relationship in a frame, thereby the merging that realizes a plurality of animation files shows.
Below; be shown as example with the merging of the animation in the Flash technology, describe the present invention, this purpose of description only is that the present invention will be described; and not lying in qualification protection scope of the present invention, the present invention can be applied among the animation file of other form equally.
In the practical application of Flash, animation file is preserved with Sasser form (Swf) file layout, the Swf file player read in the Swf file content and according to this content play Flash animation.The Swf file is made up of header information and data message, wherein, header information comprises plays the more needed public informations of this Swf file, for example whether compress, version information, viewing area etc., data message then is made up of a plurality of tag block (Tag) order, each tag block has tag types (Tid), tag block length and tag block data separately respectively, finishes the end that (end) tag block is positioned at the Swf file, as the end mark of this document.
Above-mentioned tag block is divided into two classes, is respectively: definition tag block (Definition tag) and control tag block (Control tag), wherein:
Each definition tag block is used to define an object, and for each object distributes a unique object identity (Cid), the definition tag block is divided into two types, respectively these two types is introduced below:
1, shape definition (DefineShape2) tag block, the Tid of this tag block is 22, is used to for example shape of circle, rectangle etc. of object definition, and is that defined object distributes a Cid;
2, animation definition (DefineSprite) tag block, the Tid of this tag block is 39, is used to define an animate object and is Cid of this animate object distribution, simultaneously, the frame number that this tag block also indicates this animation and comprised (FC, FrameCount); Tag block data in the animation definition tag block are made up of one group of nested subtab piece again, and these subtab pieces can only be the control tag block, and can not comprise any definition tag block; By animation definition tag block, in fact be equivalent to initiatively drawing the sub-animation of giving a definition, like this, in showing the process of initiatively drawing, just can realize that initiatively picture and sub-animation broadcast simultaneously with certain frame per second by calling sub-animation.
More than to the definition tag block introduce, below to control tag block be introduced:
The control tag block is used for being responsible for the operation of animation display process is controlled, and mainly comprises three types:
1, display frame (ShowFrame) tag block, the Tid of this tag block is 1, is used to show present frame; In the Swf player, be provided with a display list, this display list is made up of a plurality of binary arrays, the composition form of each binary array be (Lid, Cid), wherein, the layer sequence number of Lid presentation layer, this binary array are illustrated in the object that display object on the Lid layer is designated Cid; For defined each object in the animation, each layer can only be placed an object, and, the object that is placed on the upper strata is placed on covering the object of lower floor, the display frame tag block shows the hierarchical sequence of each display object according to certain priority according to the content of each binary array in the display list;
2, placing objects (PlaceObject2) tag block, the Tid of this tag block is 26, this tag block indicates Lid and a Cid, be used for increasing binary array (Lid by this Lid and Cid constituted at display list, Cid), in this way, the pairing object of Cid can be placed into the pairing layer of Lid; This tag block only is used for placing, and is not used in the object that demonstration is placed, but just shows corresponding object when needing follow-up display frame tag block to occur;
3, shift out object (RemoveObject2) tag block, the Tid of this tag block is 28, this tag block indicates Lid and a Cid equally, but opposite with the placing objects tag block is, this tag block is with binary array (Lid that this Lid and Cid constituted, Cid) from display list, delete, so that the pairing object of Cid is shifted out from the pairing layer of Lid, utilizing after this tag block shifts out object, when follow-up display frame tag block occurs, just the Cid object on the Lid layer that shows in the class mark can not shown again.
In addition, in the Swf file, the situation that the nested sub-animation tag piece of animation definition tag block also occurs through regular meeting, wherein, one group of layer that each sub-animation tag piece has separately display list independently respectively and is used to show each object, thus make between each sub-animation tag piece and sub-animation tag piece and animation definition tag block between the mutual collision problem of layer can not appear; Below in conjunction with an instantiation, nested being introduced of antithetical phrase animation tag piece:
Referring to Fig. 1, in a Swf file, the definition animation tag piece (Tid=39) nested sub-animation tag piece, this sub-animation tag piece is followed successively by:
Placing objects tag block (Tid=26), this tag block indicate a binary array (1,1), thereby are that 1 object is placed on the 1st layer in this sub-animation tag piece with Cid;
Display frame tag block (Tid=1), this tag block show that the 1st layer Cid in this sub-animation tag piece is 1 object, thereby show first frame of sub-animation tag piece;
Placing objects tag block (Tid=26), this tag block indicate a binary array (2,2), thereby are that 2 object is placed on the 2nd layer in this sub-animation tag piece with Cid;
Display frame tag block (Tid=1), this tag block show that the 2nd layer Cid in this sub-animation tag piece is 2 object, thereby show second frame of sub-animation tag piece;
End-tag piece (Tid=0) is used to represent this sub-animation tag block end.
Referring to Fig. 1, in the process of this Swf file of operation, placing objects tag block (Tid=26) in the control tag block defines tag block (Tid=39 with animation, Cid=3) defined animation is placed into the 1st layer, because (Tid=39 Cid=3) is nested with aforesaid sub-animation tag piece, therefore to animation definition tag block, operation after the nested sub-animation tag piece, can be that 1 object and Cid are that 2 object is presented in the 1st layer successively with Cid.
Below, describe the present invention.
Referring to Fig. 2, realize that the present invention needs following steps:
Step 201: be each animation file distributing independent display layer that need merge;
Step 202: the displaying contents of each animation file is placed into distributes separately in the layer that obtains;
Step 203: the displaying contents in all layers is all shown according to certain hierarchical relationship in a frame, thereby the merging that realizes a plurality of animation files shows.
Specific implementation to above step is introduced below:
One, the specific implementation of step 201:
Referring to Fig. 3, in embodiments of the present invention,, be embodied as independently display layer of each Swf file allocation that need merge by making up Swf prototype shown in Figure 3, be specially:
Precedence according to each Swf file merging, order is each an animation definition of Swf document creation tag block (Tid=39) that need merge, and be that each animation defines the definite respectively Cid that the overall situation is unique of tag block, be embodied as the animation file that needs to merge by establishment animation definition tag block and create sub-animation respectively, then, for the animation definition tag block of creating is created a corresponding with it placing objects tag block (Tid=26) respectively, determine the binary array (Cid that each placing objects tag block is specified, Lid), wherein, determine this binary array (Cid, Lid) Cid in is the Cid with the corresponding in groups animation of this placing objects tag block definition tag block, determine this binary array (Cid, Lid) Lid in be one not by other display object take the layer layer sequence number, thereby be embodied as the sub-animation distributing independent display layer of each establishment, and then utilize sub-animation to be embodied as independently display layer of each Swf file allocation;
In the preferred embodiment of the present invention, in order to simplify computing, for the animation definition tag block of creating is determined Cid, and determine this binary array (Cid, Lid) Lid in is that the layer sequence number of a layer that is not taken by other display object can be carried out in the following way:
The serial number of the Swf file that needs are merged defines the Cid of tag block as the animation of being created for this Swf file;
The serial number of the Swf file that needs are merged is as the layer sequence number independently layer of being distributed for this Swf file, with this layer sequence number as described binary array (Cid, Lid) Lid in;
Further, in order to simplify computing more, in the preferred embodiment of the present invention, can adopt the Swf file that need to merge to define the Cid of tag block as the animation of being created for this Swf file, and the sequence number that will directly be appointed as this Swf file respectively for the Cid in the specified binary array of the placing objects tag block that this Swf file is created and Lid.Shown in Figure 3 is exactly the specific implementation of this preferred embodiment, as seen from Figure 3:
The Swf file that total N needs merge, wherein N is a natural number, be respectively each Swf and create animation definition tag block and placing objects tag block, wherein, the Cid of animation definition tag block is respectively the sequence number of the pairing Swf file of this animation definition tag block, and the specified binary array of placing objects tag block then is (i, form i), wherein, i is the sequence number of the pairing Swf file of this placing objects tag block; In Fig. 3, because the animation definition sub-animation frame number that tag block comprised is 0 under the original state, therefore, the FC parameter of each animation definition tag block is initialized as 0 respectively.
Two, the specific implementation of step 202:
In the specific implementation of step 202, need upgrade the display object sign of each animation file, identify conflicting problem to avoid occurring display object, below this renewal process is introduced:
In a Swf file, all object identity Cid must be overall unique, therefore, is necessary for each Swf file that need merge in the present invention and carries out the renewal of Cid, to satisfy this requirement; In embodiments of the present invention, the Cid divider of an overall situation of design, each object identity of each tag block in the Swf file that this divider traversal needs to merge, redistribute object identity for occurring identifying afoul object identity in the tag block, and this object identity that will occur also is updated to the object identity after redistributing in all the other tag block of this Swf file with object for allocation; For example, after the Cid with the shape definition tag piece redistributes, need to appear at placing objects tag block for example and shift out this Cid in the object tag piece and also be updated to Cid after redistributing;
After carrying out the object identity renewal, performing step 202 also needs following steps:
Step 2021: will need the definition tag block of the Swf file that merges to be placed into before the animation definition tag block of creating for this document; The reason of carrying out this step is:
Because Swf player regulation, when showing a frame, object involved in the display list all must be defined before the display frame tag block, therefore, all the definition tag block in the Swf file need be placed on before the animation definition tag block corresponding with it;
Step 2022: will need the control tag block of the Swf file that merges to be placed among the animation definition tag block of creating for this document, as the sub-animation tag piece of this animation definition tag block; Because the control tag block has determined how to play each object that has defined, therefore, control tag block in the Swf file as among the animation definition tag block of being created for this Swf file, just can be realized the displaying contents in the Swf file is merged in the sub-animation;
Step 2023: the Swf file that needs to merge is utilized as the placing objects tag block that it is created, and will be placed in the independently display layer that is distributed for this Swf file for the defined displaying contents of animation definition tag block that this Swf file is created; In embodiments of the present invention, the binary array specified according to the placing objects tag block (object identity, layer sequence number) realizes the displaying contents in the pairing animation definition of the object identity tag block is placed in the pairing layer of layer sequence number; Wherein, the placing objects tag block is by the binary array (object identity that it is specified, layer sequence number) add in the display list, realization is placed into the displaying contents in the pairing animation definition of the object identity tag block in the pairing layer of layer sequence number, but does not show the displaying contents in the animation definition tag block;
Get final product performing step 202 by above step, in other embodiment of the present invention,, also can further may further comprise the steps in order to better meet the needs of animation display:
Step 2024: add up the number of the display frame tag block in each Swf file that need merge respectively, the number that obtains with statistics is respectively upgraded the FC value in the corresponding animation of being created for the Swf file definition tag block then.
Three, the specific implementation of step 203:
Utilize the display frame tag block,, in a frame, play the displaying contents of each layer successively, thereby the merging that realizes a plurality of Swf files in a frame is play according to each binary array content in the display list;
Referring to Fig. 3, in embodiments of the present invention, the establishment display frame tag block after the animation of all new establishments definition tag block and the placing objects tag block in the Swf prototype utilizes this display frame tag block to realize above-mentioned broadcast step in advance.Equally with reference to Fig. 3, in order to make the Swf file after merging complete, also comprise the end-tag piece at last at this Swf file.
Below, merging process with the 5th Swf file is an example, the description more concrete in addition again to the specific implementation of above-mentioned steps, wherein, in the Swf5 file, utilize shape definition tag piece (Tid=22) to define two body forms earlier, utilize one of animation definition tag block (Tid=39) definition to comprise 2 frame animations then, utilize placing objects tag block (Tid=26) that defined animation is placed in the display list with that, content in the last display list, whole Swf file is totally one frame.In sub-animation, earlier the object of Cid=1 is placed into the ground floor of display list, and shows first frame, this moment, content displayed had only the object of Cid=1; Then, the object of Cid=2 is placed into the second layer of display list, and shows second frame, this moment, content displayed comprised two objects of Cid=1 and Cid=2; Below be described as the detailed process that merges:
At first, create Swf prototype as shown in Figure 3, this prototype represents that total N Swf file needs to merge, and wherein, N represents the number of Swf file, is natural number; Can be embodied as each Swf file allocation that need the merge display layer independently separately that comprises the 5th Swf file by creating this prototype;
Then, upgrade the Cid in each Swf file, wherein, the initial content of the 5th Swf file as shown in Figure 1, suppose that the Cid value in the Cid divider has been assigned to 10 when carrying out the 5th Swf file of merging, so, in the 5th the Swf file, the shape definition tag piece (Tid=22) of Cid=1 will be updated to Cid=11; The shape definition tag piece (Tid=22) of Cid=2 will be updated to Cid=12; The animation definition tag block (Tid=39) of Cid=3 will be updated to Cid=13; And, the Cid after the above-mentioned Cid that will occur in all the other tag block also is revised as renewal, execute this step after, the content of the 5th Swf file is as shown in Figure 4;
By above-mentioned this two step, in fact realized above-mentioned step 201, next, definition tag block in the 5th the Swf file after the renewal shown in Figure 4 is placed into before the Swf5 in the Swf prototype shown in Figure 3, and, control tag block in the 5th the Swf file after the renewal shown in Figure 4 is placed in the animation definition tag block (Tid=39) of the Swf5 in the Swf prototype shown in Figure 3,, has realized above-mentioned steps 202 as the sub-animation tag piece of this animation definition tag block; Fig. 5 shows the result after merging to the 5th Swf file in the Swf prototype, and wherein, Fig. 5 only shows the part of the prototype after the merging;
At last, with each Swf file according to after merging in the Swf prototype shown in Figure 3 with the 5th the corresponding to mode of Swf file, utilize display frame tag block in the Swf prototype in a frame, to show the displaying contents of each layer again, thus performing step 203.The final effect that merges only shows the content of a frame, and the content of this frame has comprised N sub-animation.When the Swf player is resolved the display frame tag block, N two tuples will be arranged in the display list of this moment, each two tuple is illustrated in the object that display object on the i layer is designated i.Like this, just reached N the effect that the Swf file shows simultaneously, and the front and back covering relation of N Swf file directly depends on the sequencing of N Swf file of input, promptly the content of the 1st Swf is at the bottom, and the content of N Swf is top.
The above is under the situation of Swf as animation file, and specific implementation of the present invention according to the spirit that the present invention embodied, also can realize the present invention to the animation file of other form.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the merging display packing of a plurality of animation files is characterized in that, this method comprises:
Steps A: the animation of creating separately for each animation file that need merge defines tag block, for the animation definition tag block of each establishment is created a corresponding with it placing objects tag block respectively, and be each animation file distributing independent display layer that need merge;
Step B: the placing objects tag block that each animation file utilization is created with animation define the tag block corresponding display content be placed into distribute separately obtain layer in;
Step C: the displaying contents in all layers is all shown according to certain hierarchical relationship in a frame.
2. method according to claim 1, it is characterized in that, described animation file is Sasser form (Swf) file, steps A is described for after each animation file that need merge establishment animation definition tag block separately, and this method further comprises: create sub-animation by creating animation definition tag block respectively for the animation file of needs merging;
The described independently display layer of steps A is the independently display layer that the sub-animation created distributes respectively.
3. method according to claim 2 is characterized in that, described steps A comprises:
According to the precedence that each Swf file merges, order is each an animation definition of Swf document creation tag block that need merge, and is the definite respectively object identity that the overall situation is unique of each animation definition tag block;
For the animation definition tag block of each establishment is created a corresponding with it placing objects tag block respectively, determine the binary array (object identity that each placing objects tag block is specified, layer sequence number), wherein, determine this binary array (object identity, layer sequence number) object identity in is the object identity that defines tag block with the corresponding animation of this placing objects tag block, determine layer sequence number in this binary array (object identity, layer sequence number) be one not by other display object take layer layer sequence number.
4. method according to claim 3 is characterized in that, describedly determines the unique object identity of the overall situation respectively for each animation definition tag block and is:
The object identity of the animation definition tag block that the serial number of the Swf file that needs are merged is created as this Swf file.
5. according to claim 3 or 4 described methods, it is characterized in that, described determine the layer sequence number in this binary array (object identity, layer sequence number) be one not by other display object take layer layer sequence number be:
The independently layer sequence number of layer that the serial number of the Swf file that needs are merged is distributed as this Swf file, with this layer sequence number as the layer sequence number in the described binary array (object identity, layer sequence number).
6. method according to claim 1 is characterized in that described animation file is the Swf file, and step B comprises:
Step B0: renewal needs the display object sign of the animation file of merging, and the overall situation is unique afterwards so that this display object is identified at merging;
Step B1: will need the definition tag block of the Swf file that merges to be placed into before the animation definition tag block of creating for this document;
Step B2: will need the control tag block of the Swf file that merges to be placed among the animation definition tag block of creating for this document, as the sub-animation tag piece of this animation definition tag block;
Step B3: the Swf file that needs to merge is utilized as the placing objects tag block that it is created, and will be placed in the independently display layer that is distributed for this Swf file for the defined displaying contents of animation definition tag block that this Swf file is created.
7. method according to claim 6 is characterized in that, in step B0, the display object of described each animation file of renewal is designated:
Each object identity of each tag block in the Swf file that traversal needs to merge, redistribute object identity for occurring identifying afoul object identity in the tag block, and this object identity that will occur also is updated to the object identity after redistributing in all the other tag block of this Swf file with object for allocation.
8. method according to claim 6 is characterized in that, between step B3 and the step C, this method further comprises:
Add up the number of the display frame tag block in each Swf file that need merge respectively, the number that obtains with statistics is respectively upgraded the frame number value in the corresponding animation of being created for the Swf file definition tag block then.
9. method according to claim 6 is characterized in that, among the step B3, described will being placed in the independently display layer that is distributed for this Swf file for the defined displaying contents of animation definition tag block that this Swf file is created is:
The placing objects tag block binary array (object identity, layer sequence number) that it is specified is added in the display list; Wherein, object identity is the object identity of the described animation definition tag block of being created for this Swf file, and layer sequence number is the sequence number of the described independently display layer that is distributed for this Swf file.
10. method according to claim 9 is characterized in that step C comprises:
The display frame tag block according to the content of each binary array in the display list (object identity, layer sequence number), is play the displaying contents of each layer successively in a frame.
CNB2005100515742A 2005-03-07 2005-03-07 Merge display method of multiple animation file Active CN100412908C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100515742A CN100412908C (en) 2005-03-07 2005-03-07 Merge display method of multiple animation file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100515742A CN100412908C (en) 2005-03-07 2005-03-07 Merge display method of multiple animation file

Publications (2)

Publication Number Publication Date
CN1831870A CN1831870A (en) 2006-09-13
CN100412908C true CN100412908C (en) 2008-08-20

Family

ID=36994149

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100515742A Active CN100412908C (en) 2005-03-07 2005-03-07 Merge display method of multiple animation file

Country Status (1)

Country Link
CN (1) CN100412908C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105513115B (en) * 2014-10-16 2020-06-16 腾讯科技(深圳)有限公司 Method and device for converting SWF into Canvas animation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05232912A (en) * 1992-02-24 1993-09-10 Nippon Telegr & Teleph Corp <Ntt> Mehtod for displaying contents of moving image
JPH07334701A (en) * 1994-06-14 1995-12-22 Ieroo Shiyaaku:Kk Animation image compositing device
CN1393003A (en) * 2000-10-06 2003-01-22 索尼计算机娱乐公司 Image processing apparatus, image processing method, record medium, computer program, and semiconductor device
CN1437164A (en) * 2002-02-04 2003-08-20 爱尔得资讯股份有限公司 Automatic raster image making method for two (multil) change. cartoon and three-dimensional stereo picture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05232912A (en) * 1992-02-24 1993-09-10 Nippon Telegr & Teleph Corp <Ntt> Mehtod for displaying contents of moving image
JPH07334701A (en) * 1994-06-14 1995-12-22 Ieroo Shiyaaku:Kk Animation image compositing device
CN1393003A (en) * 2000-10-06 2003-01-22 索尼计算机娱乐公司 Image processing apparatus, image processing method, record medium, computer program, and semiconductor device
CN1437164A (en) * 2002-02-04 2003-08-20 爱尔得资讯股份有限公司 Automatic raster image making method for two (multil) change. cartoon and three-dimensional stereo picture

Also Published As

Publication number Publication date
CN1831870A (en) 2006-09-13

Similar Documents

Publication Publication Date Title
US6014137A (en) Electronic kiosk authoring system
CN104765614B (en) Color filling processing method and device
CN103827957B (en) The data structure of image processing apparatus, image processing method and image file
CN105677307B (en) A kind of mobile terminal big data processing method and system
CN102930572B (en) Cache uses antialiasing technology to reproduce the coverage values of text
CN102193960B (en) Content sharing system
CN104463957A (en) Three-dimensional scene generation tool integration method based on materials
CN108712682A (en) Dynamic image regenerator and method and dynamic image dissemination system
Schroeder AndEngine for Android game development cookbook
CN100412908C (en) Merge display method of multiple animation file
Stachowiak et al. The rise of film production locations and specialised film services in European semi-peripheries
CN103714558A (en) Image processing apparatus, image processing method, and program
Yang et al. Evolution of exhibition space strategies in smart museums: A historical transition from traditional to digital
CN106201838A (en) Video download progress display packing and device
Lange Entrepreneurship in creative industries: the paradox between individual professionalization and dependence on social contexts and professional scenes
CN103533397B (en) Program content delivery method and device
Salazkina Romancing Yesenia: How a Mexican Melodrama Shaped Global Popular Culture
Masè et al. Art and Business
CN101958005B (en) Image processing apparatus and method
CN107609050A (en) New page system and its works generation method based on HTML5
CN114007316A (en) Full-color lamp strip effect setting method and terminal
AuYong Unlocking The Potential Of A Creative Economyand Policy: The Development Of Malaysia As A Hub For Creative Content Technologies
CN104361622A (en) Interface drawing method and device
Yang et al. An approach of personalized 3D scene customization based on multimedia resources
CN112068821A (en) Intelligent park-based app visual construction 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