📜 ⬆️ ⬇️

About XFL format

At work, I often work with the xfl format, this is the new format of the original Adobe Flash files. Information about what xfl represents has already been written on Habré . I would like to go further.

Below is the internal structure of the xfl file, the structure of the xml files inside and a few difficulties that may arise when working with xfl files.


')
The XFL file can be opened with a regular winrar, since in fact it is a regular zip archive as well as gadgets for example. XFL can also be made with Adobe InDesign or manually))). Inside the XFL file will be next. the mimetype files, DOMDocument.xml, and the library folder.

one.

The mimetype contains this line inside: application / vnd.adobe.xfl, to refer to xfl.

2

DOMDocument.xml - this can be said our main scene, below what is inside:

< DOMDocument width ="681" height ="851" xmlns ="http://ns.adobe.com/xfl/2008/" xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation ="http://ns.adobe.com/xfl/2008/ ../Javascript/Scripts/XFL_schema.xsd" versionInfo ="Saved by Adobe InDesign Version 6.0" xflVersion ="1" creatorInfo ="Adobe InDesign CS4" > <br> < media > <br> < DOMBitmapItem name ="last page_back" originalCompressionType ="lossless" href ="LIBRARY/last%20page_back.png" /> <br> </ media > <br> < symbols > <br> < Include href ="LIBRARY/Page_1.xml" /> <br> </ symbols > <br> < timelines > <br> < DOMTimeline name ="Scene 1" > <br> < layers > <br> < DOMLayer name ="Layer 1" color ="#4FFF4F" > <br> < frames > <br> < DOMFrame index ="0" > <br> < elements > <br> < DOMSymbolInstance libraryItemName ="Page_1" > <br> < transformationPoint > <br> < Point x ="340" y ="425" /> <br> </ transformationPoint > <br> </ DOMSymbolInstance > <br> </ elements > <br> </ DOMFrame > <br> </ frames > <br> </ DOMLayer > <br> </ layers > <br> </ DOMTimeline > <br> </ timelines > <br> </ DOMDocument > <br><br> <br> * This source code was highlighted with Source Code Highlighter .


Who is familiar with flash immediately sees a familiar structure where the page size is first indicated
DOMDocument width="681" height="851"
further about xfl itself and we see the fact that the file was created using Adobe InDesign CS4.



3

The Library folder contains the downloadable files last page_back.png and Page_1.xml (movie clip in the library).

If you understand a little bit, then the file structure is quite understandable, but imagine that you have 1000 frames on a scene with 1000 objects, then manual editing will be very difficult.

XFL pitfalls



You open the XFL file via flash, it immediately creates an empty document and adds the contents of the XFL file with the correct page size, but the fonts that were used to create the XFL file will not be displayed, and those that you last used in flash will load. This, in my opinion, is a significant disadvantage of this format. This happens if the file is created in another editor, but mostly XFL and should serve as the fact that the designer drew and saved it specifically for the person engaged in animation or programming in flash.

But there are also pluses. XFL files weigh less than Fla, for example, if you take a 800 kb FLA file, then the same XFL will be 631 kb. XFL, unlike FLA, can edit any, which is also a big plus. Most likely, XFL will be widely distributed in the near future, but we must not forget that this is still an archive and the original FLA file remains FLA, because XFL is simply unarchived to FLA and XFL cannot be compiled.

Source: https://habr.com/ru/post/51855/


All Articles