rendered paste body<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" paddingLeft="10" paddingRight="10" paddingBottom="10" backgroundColor="0xD6B076" creationComplete="standard()"> <mx:Style source="sartoMenuBar.css"/> <mx:HTTPService id="menuListRPC" url="http://127.0.0.1/public_html/site-debug/data/mainMenu.xml" result="menuListRPCResult(event)" showBusyCursor="true" resultFormat="e4x"/> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; //<mx:XML id="xmlMenuList" source="{menuListRPC.lastResult.menuitem}" format="e4x"/> [Bindable] private var xmlMenuList:ArrayCollection = new ArrayCollection(); private function standard():void { someValue.text = "das macht was ich will"; menuListRPC.callback = menuListRPCResult; menuListRPC.send(); } private function debug(text:String):void { someValue.text += "\n" + text; } private function test():void { debug("test ..."); debug(xmlMenuList.toString()); } private function emailClickHandler (event:MouseEvent):void { navigateToURL (new URLRequest ('mailto:sarto@gmx.at')); debug("response of emailtitle"); } private function menuListRPCResult(event:ResultEvent):void { someValue.text = "willkommen auf der erde, mensch"; xmlMenuList = event.result.root.menuitem; } ]]> </mx:Script> <mx:VBox height="100%" horizontalCenter="0" top="50"> <mx:Panel id="mainPic" title="sARTo.at" cornerRadius="3"> <mx:Image click="test()" source="assets/solomon_blogstyle.jpg" scaleContent="true"/> </mx:Panel> <mx:ApplicationControlBar id="menuBar" cornerRadius="3" width="{mainPic.width}"> <mx:MenuBar dataProvider="{xmlMenuList}" styleName="sartoMenuBar" id="myMenuBar" labelField="@label" fillColors="[ 0x997700, 0xBB3300 ]" borderColor="0x997700" fillAlphas="[0.5,0.2]" cornerRadius="3" rollOverColor="0x997700" selectionColor="0x997700"> </mx:MenuBar> </mx:ApplicationControlBar> <mx:Panel id="content" width="{mainPic.width}" title="sARTo.at" cornerRadius="3" backgroundImage="assets/bg.jpg" backgroundSize="100%" backgroundAlpha="0.9" > <mx:RichTextEditor id="someValue" height="700" text="das macht nicht was ich will"/> </mx:Panel> </mx:VBox> </mx:Application>