Are you new? Read the FAQ and catch up on!
1k views

Plantilla de archivo mxml para compilar con Flex

Plantilla del archivo mxml necesario para compilar con el compilador de flex desde línea de comandos.

MXML
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="pack.*" layout="absolute" creationComplete="initApp()" width="640" height="480">
  3.  
  4.     <mx:Script>
  5.  
  6.            public function initApp():void
  7.            {
  8.                canvas.init();
  9.            }
  10.  
  11.    </mx:Script>
  12.  
  13. <ClasePrincipal id="canvas" width="100%" height="100%" themeColor="#ffffff" />  
  14. </mx:Application>
  15.  

­

Simplemente indica al compilador que el punto de entrada del programa es la función init de la clase ClasePrincipal.

Tags: MXML flex mxml

Embed: