anyone knows why i get this error when flash compiles
Error: code:Client.URLRequired string:'A URL must be specified with useProxy set to false.' detail:'null'
at mx.rpc.http::HTTPService/send()
at mx.rpc.http.mxml::HTTPService/send()
at UJAT2/___Application1_creationComplete()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/mx.core:UIComponent::dispatchCreationCompleteEvent()
at mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()
at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()
at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()
at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()
This will compile but throw an error
*********************************************
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"
creationComplete="srv.send()" viewSourceURL="srcview/index.html">
<mx:Style source="main.css"/>
<mx:Script>
<![CDATA[
private function cargarDatos()
{
srv.url = "";
srv.send();
}
private function cargarDatos2()
{
srv.url = "";
srv.send();
}
private function filtrar(item:Object):Boolean
{
return item.name.match(new RegExp("^" + inputText.text, "i\*\t\s[']"));
}
]]>
</mx:Script>
<mx:HTTPService id="srv" resultFormat="e4x" useProxy="false"/>
<mx:XMLListCollection id="xlc"
source="{srv.result.*}"
filterFunction="filtrar" />
<mx:Panel width="568" height="569" layout="absolute">
<mx:DataGrid dataProvider="{xlc}" height="485"
editable="false" width="150" id="datagrid" scroll="true"
change="cargarDatos.refresh()" x="0" y="0">
<mx:columns>
<mx:Array>
<mx:DataGridColumn columnName="name" showDataTips="true"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
<mx:TextArea width="380" height="348" textAlign="justify" htmlText="{datagrid.selectedItem.desc}"
wordWrap="true" y="0" styleName="main.css" editable="false">
<mx:layoutConstraints>
<mx:Anchor right="30"/>
</mx:layoutConstraints>
</mx:TextArea>
<mx:Button x="158" y="356" label="Datos" click="cargarDatos()" width="67"/>
<mx:Button x="158" y="399" label="Datos2" click="cargarDatos2()"/>
<mx:Label x="158" y="429" width="148" text="{datagrid.selectedItem.desc.link}"/>
<mx:ControlBar>
<mx:layoutConstraints>
<mx:Anchor bottom="0"/>
</mx:layoutConstraints>
<mx:TextInput id="inputText" width="139"
change="xlc.refresh()" text="a" backgroundColor="#f0eff1"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
********************************************
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.