Hi Alex,

I really do not remember why I added "as Array" to at the end for royale version of my source. I removed it and the evaluation is correct as flex version.

Sorry for taking your time.

Thanks,
Serkan

12.04.2019 20:19 tarihinde Serkan Taş yazdı:
Sorry Alex, you are right, i am going to check it send you the right one.

Thanks
Serkan

Android için Outlook <https://aka.ms/ghei36>'u edinin



Kimden: Alex Harui
Gönderildi: 12 Nisan Cuma 19:29
Konu: Re: Work on Emulation
Kime: [email protected]


In your earlier email, you showed source code like this:

service.headers = {Authorization:”Basic “ + encoder.toString()} as Array;

Now you are saying the source code is:

service.headers = {Authorization:”Basic “ + encoder.toString()}

Certainly the first one with “as Array” would result in a call to Language.as and return null since the expression is a Object and not an Array. The second one should not result in a call to Language.as.  Please verify that you have updated the .JS files and the debugger is using those files.  Then try single-stepping to see when various expressions return null, or use the console to evaluate expressions, or break up that line of code into sub-expressions to see which one is null, such as:

var foo:String = “Basic”:
var bar:String = encoder.toString();
var baz:Object = {};
baz.Authorization = bar;
service.headers = baz;

HTH,
-Alex

*From: *Serkan Taş <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Friday, April 12, 2019 at 1:58 AM
*To: *"[email protected]" <[email protected]>
*Subject: *Re: Work on Emulation

It is not string or Array, but "Object"

Here is the code piece in source "as" file :

    //----------------------------------
    //  headers
    //----------------------------------

private var _headers:Object = {};

    [Inspectable(defaultValue="undefined", category="General")]
    /**
     *  Custom HTTP headers to be sent to the third party endpoint. If multiple headers need to      *  be sent with the same name the value should be specified as an Array.
     *
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1
     *  @productversion Flex 3
     */
    public function get headers():Object
{
return _headers;
}
public function set headers(value:Object):void
{
_headers = value;
}

In flex version debug view, it is evaluated as below :

cid:[email protected]


Thanks,
Serkan
12.04.2019 06:16 tarihinde Alex Harui yazdı:
It looks like a String is passed in to see if it an Array. Should service.headers be an array or string?

-Alex

*From: *Serkan Taş <[email protected]> <mailto:[email protected]> *Reply-To: *"[email protected]" <mailto:[email protected]> <[email protected]> <mailto:[email protected]>
*Date: *Wednesday, April 10, 2019 at 5:41 AM
*To: *"[email protected]" <mailto:[email protected]> <[email protected]> <mailto:[email protected]>
*Subject: *Re: Work on Emulation

Alex, thank you for PR-406.

Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ?

cid:[email protected]


Here is the piece in ActionScript :

service.headers = {Authorization:"Basic " + encoder.toString()} as Array;

Thanks in advance,
Serkan





Reply via email to