flash - Flex Spark components not displaying -


<?xml version="1.0"?> <!-- simple example demonstrate spark button control --> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">      <fx:script>         <![cdata[             import flash.events.event;              // event handler function print message             // describing selected spark button control.             private function printmessage(event:event):void  {                 message.text += event.target.label + " pressed" + "\n";             }          ]]>     </fx:script>      <s:panel title="spark button control example"             width="75%" height="75%"             horizontalcenter="0" verticalcenter="0">         <s:vgroup left="10" right="10" top="10" bottom="10">             <s:vgroup width="100%">                 <s:button label="default button" click="printmessage(event);"/>                 <s:button label="autorepeat button" buttondown="printmessage(event);"                         autorepeat="true"/>                 <s:button label="disabled button" enabled="false"                         click="printmessage(event);"/>             </s:vgroup>             <s:textarea x="80" y="0" id="message" height="100%" width="100%"                 color="#0000ff"/>         </s:vgroup>     </s:panel>  </s:application> 

i'am compiling with

mxmlc main.mxml 

and application runs, window empty, how fix or can reason of that?, flex 4.6, settings default


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -