Есть такой вот код:
Код AS3:
<?xml version="1.0" encoding="utf-8"?>
<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" minHeight="0" width="300" height="200">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Button x="220" y="169" label="Confirm" enabled="true" id="_confirmButton"/>
<s:TextInput x="10" y="10" id="_autLogin" enabled="true"/>
<s:TextInput x="10" y="40" id="_autPass" enabled="true" displayAsPassword="true"/>
<s:TextInput x="10" y="70" id="_autHost" enabled="true"/>
<s:RadioButton x="146" y="74" label="No" selected="true" enabled="true" id="_localhostNo"/>
<s:RadioButton x="189" y="74" label="Yes" selected="false" enabled="true" id="_localhostYes"/>
<s:TextInput x="10" y="100" enabled="true" id="_autDB"/>
<s:ComboBox x="10" y="130" width="128" enabled="true" id="_autEncode" selectedIndex="0">
<s:ArrayList>
<fx:Object label="UTF-8" data="utf8" />
<fx:Object label="KOI8-R" data="koi8r" />
</s:ArrayList>
</s:ComboBox>
<fx:Script>
<![CDATA[
import flash.net.*;
var gw:NetConnection=new NetConnection();
gw.connect("http://metsys.com.ua/amfphp/gateway.php");
var res:Responder=new Responder(onResult, onFault);
function onResult(responds:Object):void
{
trace(responds);
}
function onFault(responds:Object):void
{
for (var i in responds)
{
trace(responds[i]);
}
}
]]>
</fx:Script>
</s:Application>
ругается на строку:
Код AS3:
gw.connect("http://site.com/amfphp/gateway.php");
1120: Access of undefined property gw. DB_Authorization.mxml /DB_Authorization/src line 28 Flex Problem
в нете ответа на вопрос в чём проблема не нашёл =(