<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                Haxe編譯工具原來的目的是合成一些web技術到一種語言。支持Flash,JavaScript,和Neko,web開發者可以使用Haxe編譯工具來使用這三種技術而不用學習新的語法。 而且,因為Haxe,Flash,JavaScript和Neko可以在Windows,Mac OS和Linux上進行開發,許多開發者就可以使用Haxe而不用改變他們喜好的操作系統。 隨著時間的推移,更多技術的橋接也被開發出來。 基于Neko的一個重點,Haxe語言可以被進一步增強,而不用以任何方式修改編譯工具。這通向其他令人興奮的開發,比如SWHX(ScreenWeaver for Haxe)框架使用一個Flash GUI(Graphical User Interface)層來創建桌面應用,也可以使用我們自己的Neko Media Engine(NME),封裝了 Simple DirectMedia Layer(SDL)框架和函數作為一個2D游戲API。 這里的重點是,Haxe編譯工具并不是一項新技術,僅僅是一個程序,用來轉換一種新的語言到一些舊的技術中。 使用Haxe的好處是極大的,但是可以概括為下面幾點: * 使用現有的技術發揮它們最大的能力。 * 開發者之間的界限降低,提供更多的合作空間 * 開發團隊之間的知識增加,因為他們編寫代碼延伸到他們同行的技術 * 項目迅速建立,并且有更少的錯誤和平臺障礙 * 項目更容易維護,因為所有團隊成員都能理解語言語法而不用理解部署的技術 * Haxe類為一種技術開發,然后可以很容易的編譯到另一個技術. ## 編譯到Flash Flash是一個不錯的平臺。事實的確如此,作為最流行的web多媒體平臺,沒有其它工具可以撼動它的位置,很難為其找到一個競爭者(譯者注:如今HTML5的發展勢頭已經超過Flash)。以其在許多機器和操作系統下的能力,可以肯定的說Flash在未來一段時間內仍將如此。盡管傳言稱微軟的新的開發技術會威脅到它。 The Flash IDE, synonymous to developers who create Flash movies, contains its own version of a Flash file compiler, as does the new Flex Builder application from Adobe. These tools are probably the forerunners in commercial Flash development, but are not needed to create complete Flash applications. Since the introduction of ActionScript 2.0 — the scripting language behind Flash movies — developers have had the ability to write applications using pure code. Unfortunately, though, the Flash IDE is not the most ideal environment for building Flash files in this way, as it is aimed primarily at designers. Flex provides a better solution, but still has drawbacks. If you contemplate both Flash and Flex and their relative language syntax — ActionScript 1 and 2 for the Flash IDE and MXML & ActionScript 3 for Flex Builder — you will see two very different programs and languages compile to the same platform. Granted, the Flash IDE compiles to Flash versions 9 and below (ActionScript 1, 2, and 3) whereas the Flex Builder IDE compiles to Flash version 9 alone (ActionScript 3), but they inherently perform the same feat. haXe is able to perform the same routine of compiling from a source language syntax to the Flash byte code specification, much like the Flash IDE and Flex Builder, except that haXe is able to compile a single language to both the complete Flash 6 to 8 specifications and the Flash 9 specification. That ’ s pretty impressive in our book (pun intended). haXe makes all of this possible by providing a language that is loosely coupled to the output, which is why it is able to support so many platforms. All haXe needs to understand is which equivalent structures for each platform map to the haXe structures and how it should be serialized in the output file. The Flash SWF file, which is one such output, is a document containing a series of codes in the form of bytes. Each byte represents media, functions, variables, or properties that make up the content of the movie and describe to the Flash virtual machine (or player) the exact content and functionality of the movie. When compiling to Flash, haXe produces the same SWF output and provides all of the same features as the official Flash compilers produced by Adobe, though of course, certain functions within the haXe library may not be supported depending on which version of Flash you are compiling against. You can handle this using compiler directives that allow different portions of code to be compiled depending on the target technology。 For those of you who are used to the MTASC compiler by Nicolas Cannasse for ActionScript versions 8 and below, haXe steps in as the successor, reducing further development of the MTASC compiler to bug fixes only. When MTASC (Motion - Twin ActionScript Compiler) was released several years ago, many developers saw, for the first time, their first break into the world of Flash. Previously, many developers would complain that the Flash IDE was far too geared toward the designer and left little leverage for the developer. MTASC changed all of that by offering an all - code entry point using tools they were already familiar with. haXe follows this developer - friendly route, though with its powerful yet friendly syntax, it also offers designers the chance to tinker in the world of the developer. ## 編譯到JavaScript JavaScript has been around for some time, but for client - side browser scripting, there is no competition. While Internet Explorer provides access to the Visual Basic scripting interpreter, JavaScript is still the only scripting language supported by the majority of browsers, and so is the only choice for thousands of developers worldwide. Each of the well - known browsers supports quite a variation of the JavaScript API. The most noted differences are those between the Internet Explorer JavaScript engine and the Mozilla JavaScript engine, which have been the source of much pulling of hair for web developers everywhere for a number of years. When you build applications that rely heavily on client - side scripting over various browser types, it is a necessity to include numerous hacks and tricks to avoid facilitating functionality that performs well on some browsers, yet poor on others. When compiling to JavaScript with the haXe compiler, haXe provides a set of functions that form a small framework for maintaining suitable cross - browser JavaScript functionality. ## 編譯為Neko Haxe編譯到Neko字節碼格式,這和處理Flash字節碼的方式類似。編譯后的文件被Neko虛擬機使用,同樣和Flash虛擬機的形式類似,雖然一些用戶的支持必須使用一些第三方庫。 Usually, one would write for the Neko virtual machine for the purpose of creating server - side web logic using the mod_neko module or to create a desktop application for use in a command console or batch file. Using third - party modules, it is also possible to create desktop applications and full network ready server frameworks of any scale. Although not much has been mentioned yet about the Neko language, compiler, and virtual machine, they do form a fairly substantial part of this book. The Neko framework is discussed in detail in Chapter 9 , “ Building Websites with haXe. ”
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看