(Article 3) ffilmation engine definition file description

Source: Internet
Author: User

Definition files are XML files used to define the material source (used to create ffilmation scenes) loading a scenario, including all the definition files involved in it and all these definitions in the external SWF (not yet loaded)

@ For you, you only need to see a scene loading process, which is not limited to all of which are placed in the same XML, but if similar content or elements are put in the same file as trees. XML, Stonewall. XML or furnitrue. XML is a good exercise;

 

There are many reasons for separating the scenes defined in them to become more obvious and more application-oriented.Program:

@ You can share the definition descriptions of these elements between scenarios;
@ You can change the texture of a material. This change can be used in all scenarios where the material can be used;
@ The engine intelligently identifies loaded resources and definitions in advance, so you do not have to worry about duplicate;

@ You can balance your download time. In a large application, it is impossible to loaded all files from the beginning;
@ Think of a game as 10 levels. Do you need to load 10 levels of elements when the user has never reached 1 level? No;
@ If you manage your definition intelligently, each scenario involves only the definition it needs and the SWF file required for each definition, your loading time will become the best;
@ You may have some common elements (classes) in your application (SWF) because they are used in all places and scenarios.
A typical example is hero in your game. However, if you create a scenario, the resource is not particularly referenced in the XML of the scenario,
You will not be able to load that scenario in other ffilmation applications (only in your applications)
Ffilmation editor. For example, if you try to create a bitmap instance or class (not there), an error will occur;

@ Similarly, the definition can be nested. If you are building a definition file and want to use one definition in another file, just refer to the second file. You do not need to repeat the content. The engine will process the reference.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.