Note that there are some explanatory texts on larger screens.

plurals
  1. POHttpService not working in<window> in adobe air
    primarykey
    data
    text
    <p>I am having a windowed application as my base application. To avoid the tab bar icon for the app in the task bar , I close the native window and open up the contents from another window. Here I will be calling the http service method.But nothing happens,and no error is shown in compile and run time. All the other actions are working fine. why am I not able to call http service within window in adobe air</p> <p>code in main app to open new window:</p> <pre><code>public function init():void { nativeWindow.close(); var newWindow:MyWin = new MyWin(); newWindow.systemChrome = NativeWindowSystemChrome.NONE; newWindow.type = NativeWindowType.LIGHTWEIGHT; newWindow.transparent = true; newWindow.open(true); } </code></pre> <p>code for window:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Window name="MyWin" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="httpService()" &gt; &lt;fx:Script&gt; &lt;![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.http.HTTPService; public function httpService():void { var httpSer : HTTPService = new HTTPService(); httpSer.url = "http://flexairapp..."; httpSer.method = "GET"; httpSer.addEventListener(ResultEvent.RESULT, httpResult); httpSer.addEventListener(FaultEvent.FAULT, httpFault); httpSer.resultFormat="text"; var parameters:Object = new Object(); httpSer.send(); } public function httpResult(event:ResultEvent):void { var dataResult:String = event.result.toString(); } public function httpFault(event:FaultEvent):void { var faultstring:String = event.fault.faultDetail; } ]]&gt; &lt;/fx:Script&gt; &lt;/mx:Window&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload