<mx:HTTPService id="myService" url="configure.php" method="POST">
<mx:request xmlns="">
<mode>
{modeLabel.text}
</mode>
</mx:request>
</mx:HTTPService>
<mx:Button label="Start" id="startButton" click="{myService.send()}" width="88" height="38" x="52" y="36"/>
Приведенный выше код работает нормально, т. Е. Служба запускается, а configure.php выполняет свою работу, но вместо использования click = "{myService.send ()}" , если я использую вызов функции ( как сделано в следующем коде) служба не запускается или configure.php не выполняет свою работу.
<mx:Script>
<![CDATA[
private function start():void
{
startButton.enabled = false;
myService.send();
}
]]>
</mx:Script>
<mx:Button label="Start" id="startButton" click="start()" width="88" height="38" x="52" y="36"/>
Есть идеи, почему служба не запускается при вызове из функции?
Спасибо