hey all, I'm trying to pass the url of a feedreader to a flex object from the html. To do this i'm using flash vars and am trying to get back the xml.
It seems to keep dying, any ideas? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="usehttp()"> <mx:Script> <![CDATA[ import mx.rpc.http.HTTPService; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; [Bindable] public var myXML:XML ; private function usehttp():void { var service:HTTPService = new HTTPService; service.url = "{getsite()}"; service.addEventListener("result", httpResult); service.addEventListener("fault", httpFault); service.send(); function httpResult(event:ResultEvent):void { var result:Object = event.result; myXML = new XML(result); } function httpFault(event:FaultEvent):void { var faultstring:String = event.fault.faultDetail; Alert.show("Unable to get site."); } function getsite():String { var item:String = Application.application.parameters.site; return item; } } ]]> </mx:Script> <mx:TextArea id="xmlText" text="{myXML.toXMLString()}" /> </mx:Application> the modifications to the index.html.template were as follows: } else if (hasRequestedVersion) { // if we've detected an acceptable version // embed the Flash Content SWF when all tests are passed AC_FL_RunContent( "src", "${swf}", "width", "${width}", "height", "${height}", "align", "middle", "id", "${application}", "quality", "high", "bgcolor", "${bgcolor}", "name", "${application}", "FlashVars", "site=http://news.yahoo.com/rss" // mod here, "allowScriptAccess","sameDomain", "type", "application/x-shockwave-flash", "pluginspage", "http://www.adobe.com/go/getflashplayer" ); } else { // flash is too old or we can't detect the plugin var alternateContent = 'Alternate HTML content should be placed here. ' + 'This content requires the Adobe Flash Player. ' + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>'; document.write(alternateContent); // insert non-flash content } // --> </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="${application}" width="${width}" height="${height}" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="${swf}.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="${bgcolor}" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="flashVars" value="url=woo" /> <embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}" width="${width}" height="${height}" name="${application}" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" flashVars="url=woo" //mod here type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed> </object> </noscript> <iframe name="_history" src="history.htm" frameborder="0" scrolling="no" width="22" height="0"></iframe> </body> </html>

