Have you tried this?

<mx:Script>
    <![CDATA[
    var myUrl: String = "http://news.smartcode.ch/index.php?
id=1&type=100";
    ]]>
</mx:Script>

<mx:HTTPService
    id="feedRequest"
    url="{myUrl}"
    useProxy="false" />


--- In [email protected], "pfeisingermarkus" <[EMAIL PROTECTED]> 
wrote:
>
> Hello,
> I got a Typo3-RSS-Feed as a typical php-url, which i try to read 
with
> 'HTTPService' in Flex 2 Beta 2:
> 
> url="http://news.smartcode.ch/index.php?id=1&type=100";
> 
> What I get is an error:
> 
> "The reference to entity "type" must end with the ';' delimiter.
        "
> 
> There also is no change when I use &amp; instead of '&'. I think 
Flex
> has a problem with '&' in the url. Any suggestions?
> 
> markus
> 
> ps: see the whole test-application below:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; xmlns="*"
> layout="absolute" creationComplete="feedRequest.send()" >
>       <mx:HTTPService
>               id="feedRequest"
>               url="http://news.smartcode.ch/index.php?
id=1&type=100"
>               useProxy="false" />
>       <mx:Label x="20" y="50" 
text="{feedRequest.result.rss.channel.title}"/>
>       <mx:DataGrid x="20" y="80" id="dgPosts" width="400"
> dataProvider="{feedRequest.result.rss.channel.item}" >
>               <mx:columns>
>                       <mx:DataGridColumn headerText="Posts" 
dataField="title"/>
>                       <mx:DataGridColumn headerText="Date" 
dataField="pubDate" width="150" />
>               </mx:columns>
>       </mx:DataGrid>
>       <mx:TextArea x="20" y="245" width="400"
> htmlText="{dgPosts.selectedItem.description}" />
>       <mx:LinkButton x="20" y="300" label="Read Full Post"
> click="navigateToURL(new URLRequest
(dgPosts.selectedItem.link));" />
> </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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to