开发者

build failing with flash player but working with in flashdevelop

The error I'm getting is

JSONParseError: Unexpected < encountered
    atcom.adobe.serialization.json::JSONTokenizer/parseError(

I'm using flash player 10.2.

Ha开发者_如何转开发s anyone come across this before? Seems odd that its publishing fine from within flashdevelop (using open in tab or open in window) but fails when I use the flash player.

I have checked the feed using JSONView and it seems ok.


Found the answer, needed to add a custom request header

request.requestHeaders.push(new URLRequestHeader("Accept", "application/json"));

Am guessing this is added automatically through the ide / browser maybe? Fixed it for me anyway :)


For the different verions: Is your standalone version of Flash Player the same as your browser one? When you select "open in (flashdevelop) tab" it uses the ActiveX version, when you select "Open in Window" it uses the ActiveX or Netscape plugin depending on your browser. When you chose the default "play", it'll play in the standalone version of Flash Player.

All 3 of these can be different versions. Also note that when you use the standalone version, Flash will select the last one opened. E.g., if you have 2 standalone exes on your computer (say 10.1 and 10.2), whichever was the last opened is your default - so just open whichever one you want to use.

All that said, your problem is your JSON feed :D

It seems you have a token wrong, but without the feed, it's hard to say more

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜