Hi Serkan,

Try to debug where the variable named “parameter” gets its value.  One thing to 
keep in mind is that Flash might automatically convert server results into XML, 
but the Royale code may not be doing that yet.  There may be code needed to 
intercept server results and check the resultFormat and convert the String to 
XML.

HTH,
-Alex

From: Serkan Taş <[email protected]>
Reply-To: "[email protected]" <[email protected]>, 
"[email protected]" <[email protected]>
Date: Monday, March 11, 2019 at 1:19 PM
To: "[email protected]" <[email protected]>
Subject: Re: Work on Emulation

Hi Alex,


After implementing event type filter, I passed the event cast error and for 
now, I am getting an error below line (4) in the second picture below:

[cid:[email protected]]

When I check ctype, it is : "application/xml"


[cid:[email protected]]

[cid:[email protected]]

There has been discussion before 
https://github.com/apache/royale-asjs/pull/383#discussion_r249286044<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fpull%2F383%23discussion_r249286044&data=02%7C01%7Caharui%40adobe.com%7Cb691fb7e0cbb4bb03cb208d6a65ed6a7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636879323607205693&sdata=5QLuYyBaMpBRgd%2F%2FHs982B4Bq1oyIe4wfeUPRJya5nk%3D&reserved=0>
 and I commented that it was working without casting.

The value on watch window :

parameters: "username=pinara"

And rising exception for today.

I am not sure what to do for now. It looks like the object is string but as I 
remember the flex version was also working.

I need your advice.

Thanks,
Serkan
5.03.2019 07:27 tarihinde Serkan Taş yazdı:
Sure Alex,

I just want you to see the main idea. I need to make some imports vs. to make 
it work.

After all I am going to let you know.

Thanks,
Serkan
4.03.2019 22:17 tarihinde Alex Harui yazdı:
Hi Serkan,

That part looks ok, but I would expect there is more to it to get it to work 
from your app.  There would probably be changes o MXRoyaleClasses or 
mx-royale-manifest.xml and all changes should go in a Pull Request.

Thanks,
-Alex

From: Serkan Taş 
<[email protected]><mailto:[email protected]>
Reply-To: "[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Date: Monday, March 4, 2019 at 11:10 AM
To: "[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Subject: Re: Work on Emulation

Here it is;


////////////////////////////////////////////////////////////////////////////////
//
//  Licensed to the Apache Software Foundation (ASF) under one or more
//  contributor license agreements.  See the NOTICE file distributed with
//  this work for additional information regarding copyright ownership.
//  The ASF licenses this file to You under the Apache License, Version 2.0
//  (the "License"); you may not use this file except in compliance with
//  the License.  You may obtain a copy of the License at
//
//      
http://www.apache.org/licenses/LICENSE-2.0<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0&data=02%7C01%7Caharui%40adobe.com%7Cb691fb7e0cbb4bb03cb208d6a65ed6a7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636879323607205693&sdata=Lyi34S1%2FqKs735RQx2aST6e7uKoNsm%2F62scAtJ21dXA%3D&reserved=0>
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////

package mx.net
{

 import org.apache.royale.events.EventDispatcher;



   public class URLLoader extends org.apache.royale.net.URLLoader
   {

        override public function dispatchEvent(event:Object):Boolean
        {
            try
            {
                if(event.type == "httpStatus")
                {
                    var type:String = event.type;
                    var status:int = event.value;
                    var bubbles:Boolean = false;
                    var cancelable:Boolean = false;
                    event = new HTTPStatusEvent(type, bubbles, cancelable, 
status);
                }

                return super.dispatchEvent(event);
            }
            catch (e:Error)
            {
                if (e.name != "stopImmediatePropagation")
                    throw e;
            }
            return false;
        }

   }


}


4.03.2019 22:05 tarihinde Alex Harui yazdı:
I would like to see you create the class.

Thanks,
-Alex








Reply via email to