Skip to main content
Participant
August 1, 2017
Question

an air sdk bug

  • August 1, 2017
  • 0 replies
  • 229 views

Hi, bro

     I found a bug in my project.

     There are the codes.

    

import flash.net.URLLoader;

import flash.events.Event;

import flash.net.URLRequest;

var urlLoader:URLLoader = new URLLoader();

urlLoader.addEventListener(Event.COMPLETE, onLoaded);

urlLoader.load(new URLRequest("http://apilew.tv189.com/user/phoneLogin.json"));

function onLoaded(e:Event):void {

    trace(e.target.data);

}

     When i run these codes in Flash CC with ActrionScript3 SDK, i got the expected response like this

{"code":"100052","msg":"用户登录类型不存在"}

     BUT if i run them with AIR SDK, i found the Chinese characters changed to "?", like this

{"code":"100052","msg":"?????????"}

And i found this url works expected in web browser, so i think this is a bug.

I have to use air sdk in my project, so will you plz contact me if you have any idea.

Wish you a good day.

E-mail:52539204@qq.com

This topic has been closed for replies.