Johan - from memory, I'm not sure AIR needs the crossdomain file,
whereas browser-based Flash does.

That might explain the discrepancy.

(That is from memory, though - probably needs doublechecking...)

Cheers,
   Ian

On Thu, Apr 2, 2009 at 9:35 AM, Johan Nyberg
<johan.nyb...@webguidepartner.com> wrote:
> Forgot to include the code as promised in my previous post. Here it is.
> Please set url to wathever favourite RSS or whatever you want to access:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="loadSettings()" width="200"
> height="300">
>        <mx:Script>
>        <![CDATA[
>                import mx.rpc.events.ResultEvent;
>                import mx.rpc.http.HTTPService;
>
>                private var req:HTTPService;
>
>                private function loadSettings():void
>                {
>                        this.req = new HTTPService();
>                        req.addEventListener(ResultEvent.RESULT,
> resultHandler );
>                        req.resultFormat = "text";
>                        req.url = "" //set to the url of whatever, for
> example your favourite RSS feed;
>                        req.send();
>                }
>
>                private function resultHandler( _event:ResultEvent ):void
>                {
>                        myText.text = _event.result.toString();
>                }
>        ]]>
>    </mx:Script>
>                <mx:Canvas width="100%" height="100%">
>                        <mx:VBox width="100%" height="100%">
>                                <mx:TextArea id="myText" width="100%"
> height="100%" />
>                        </mx:VBox>
>                </mx:Canvas>
> </mx:WindowedApplication>
>
>
> --
> Johan Nyberg
>
> Web Guide Partner
> Engelbrektsplan 1
> 114 34 Stockholm
> 08 - 50 00 24 30
> 070 - 407 83 00
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to