Flex Design

The Flex compiler, which is often referred to as mxmlc, is a collection of subcompilers, used to create a SWF. The two main subcompilers are flex2.compiler.as3.Compiler, which compiles .as files, and flex2.compiler.mxml.Compiler, which compiles .mxml files. The flex2.compiler.abc.Compiler is used to extract type information from precompiled ABC (ActionScript Byte Code), like from SWC files. The flex2.compiler.css.Compiler is used to compile Runtime CSS SWF's. The flex2.compiler.i18n.Compiler is used to compile translation files, usually .properties files.

Each of the subcompilers implements a common interface, flex2.compiler.Compiler. This interface declares a method for each phase of compilation: preprocess, parse1, parse2, analyze1, analyze2, analyze3, analyze4, generate, and postprocess. Historically most of these phases line up with how ASC is designed. A flex2.compiler.Source is passed into preprocess() and parse1(). It represents a single file from the CompilerSwcContext (flex2.compiler.CompilerSwcContext), FileSpec (flex2.compiler.FileSpec), SourceList (flex2.compiler.SourceList), or SourcePath (flex2.compiler.SourcePath). The parse1() is suppose to return a CompilationUnit, which is then passed into each of the following phase methods. The analyze phase methods register the type dependencies of the CompilationUnit. The generate phase method emits byte code.

Most of the subcompilers wrap an instance of flex2.compiler.as3.Compiler. In each of the phase methods, some work is potentially done and then the same phase method is called on the wrapped AS3 compiler. For example, in flex2.compiler.mxml.InterfaceCompiler.parse1(), the mxml document is parsed, an AS skeleton is generated, and then parse is called on the wrapped As3 compiler with the skeleton.

Categories:

6 Responses so far.

  1. webistick says:

    hi, this blogs Post is very helpful.
    Please Visit - Webistick.com
    Web Design and Development Company

  2. best article and best services also check this best services provider Website and design development services in affordable prices

  3. My name is Ruben Gjevik I am 23 years old. For me, Web development is more than just a hobby it is my job With 8 years of experience in WordPress and with an approved course in web development. If you need a Domain or Web Hosting then click here https://rubengjevik.no/

  4. Thanks for this informative information. I must suggest your readers to Visit Web design and development

  5. website design company Delhi - pointersoft.in is a leading website designing agency in Faridabad, and offers professional Best Best Web Design Company Delhi and Web Development Company in Delhi.

  6. This is very usefull information. Thanks for sharing it. latest technology news 2022

Leave a Reply