PHP :: JSON Parse Error Using Adobe Flex

Aug 5, 2009

I am trying to return results from my SQL database, using PHP to convert it into JSON, which is then read by Flex. Here is the parse error I receive -

JSONParseError: Unexpected < encountered
at com.adobe.serialization.json::JSONTokenizer/parseError()[/Users/mesh/src/as3corelib/src/com/adobe/serialization/json/JSONTokenizer.as:579]
at com.adobe.serialization.json::JSONTokenizer/getNextToken()[/Users/mesh/src/as3corelib/src/com/adobe/serialization/json/JSONTokenizer.as:168]
at com.adobe.serialization.json::JSONDecoder/nextToken()[/Users/mesh/src/as3corelib/src/com/adobe/serialization/json/JSONDecoder.as:83]
[Code] .....

View 2 Replies


Similar Posts:


ActionScript 3 :: Flex - Parse A Large JSON File?

Oct 21, 2010

I need to parse a large trace file (up to 200-300 MB) in a Flex application. I started using JSON instead of XML hoping to avoid these problems, but it did not help much. When the file is bigger than 50MB, JSON decoder can't handle it (I am using the as3corelib).

Try to split the file: I would really like to avoid this; I don't want to change the current format of the trace files and, in addition, it would be very uncomfortable to handle.Use a database: I was thinking of writing the trace into a SQLite database and then reading from there, but that would force me to modify the program that creates the trace file.

View 3 Replies

HTML :: Using JSON To Parse Data In Flex - Hyperlink RollOvers

Feb 18, 2010

I am using JSON to parse HTML data with customized html tags in Flex. Flex's support for HTML is pretty minimal, so I am wondering if it's possible to do a simple font color change rollover effect on these links. Currently I have found that Flex only supports a few HTML tags, but also supports CSS through Flex's whack CSS methods. Can I manipulate HTML that is written in my JSON files through an external CSS file? Or better still using a simple tag with the JSON file?

View 2 Replies

Actionscript 3 :: POST JSON Using Adobe Flex?

Mar 19, 2012

I'm trying to POST some JSON data using Adobe Flex but having some problems. I'm now getting the error message "A URL must be specified with useProxy set to false", even though I do have useProxy set to false.

Update : code below is now working.

[Code]...

View 1 Replies

Flash :: Get And Parse JSON In Actionscript?

Apr 11, 2012

What I want to do is make a get request to this URL: [url]... which should return some JSON and then parse out certain information from it.

How would I go about doing this in Actionscript 3? I'm more concerned with figuring out how to get the data to feed to a JSON parser rather than parsing the JSON, since there seem to be plenty of questions about parsing JSON. The reason I want to do this in AS3 is that I have a 3D flash visualization set up and I want to get this data, parse out the relevant bits, and then display the parsed bits in the visualization.

View 3 Replies

ActionScript :: Parse JSON Dates With It?

May 11, 2011

I have dates in JSON which are generated from ASP.NET pages using the JSON.NET library. [code]...

How do I parse these with ActionScript from Flex 3 Professional? I'd like to have this in a native data format.

View 3 Replies

Professional :: JSON.parse Works In Swf, Not In Projector

Jan 12, 2012

I am running flash cs5.5 and attempting to use the JSON calls that are in flash player 11.  I patched my install so that I could select flash 11 as the target.  When I run in a browser, everything is fine.  When I publish to a macos projector, the JSON pieces do not work.
 
Is there any way to make it work?
 
Here is my code:
 
private static function on_complete(e : Event):void
{
trace ("Http on_complete!");

[Code].... 
 
This works as expected in the browser, however in the projector it never gets beyond the ob=JSON.parse call.  I can tell where it gets by uncommenting the amount=xxx lines
 
I cant tell what it is doing because as far as I know the debugger in cs5.5 is flash 10, so it doesnt work for debugging.  I am wondering if whatever it uses to cram into a projector file is running flash player 10 as well?

View 1 Replies

Actionscript 3 :: Unable To Parse JSON Using Flash

Jun 1, 2011

I am attempting to parse some JSON from a URL via Flash/AS3. Here's my code so far:

> import com.adobe.serialization.json.JSON;
> import com.adobe.serialization.json.JSONDecoder;
>
> var loader:URLLoader = new URLLoader();

[code]...

The trace(loader.data.toString() + "

") outputs a bunch of HTML.

View 1 Replies

Parsing - Flex 3: Getting Error Of "Parse Error At '<mx:ComboBox>'>

Sep 15, 2011

<mx:List columnCount="5" rowCount="11" width="100%" height="100%" dataProvider="{parentDocument.crewPositionsAC}" useRollOver="false" alternatingItemColors="[0xffffff, 0xe5e5e5]" borderStyle="none">
<mx:itemRenderer>
<mx:Component>
<mx:Text text="{data}" color="#840021" selectable="false" />
<mx:ComboBox id="studentType">

[Code]...

Anybody able to see what's causing the error?

View 1 Replies

Json :: Unable To Encode Flex Grid Data Into JSON On Sorting Columns?

Nov 28, 2011

Created an editable flex grid which exposes a method called getGridData() to javascript. I am using the JSON.encode() method of the [url]....library to convert the grid object's dataProvider into JSON before returning it.

ExternalInterface.addCallback("getGridData", getGridData);
public function getGridData():String
{[code].....

However, when I sort a column in the user interface, the encode method is failing throwing the following error

Property usingCustomCompareFunction not found on mx.collections.SortField and there is no default value.

View 1 Replies

Actionscript 3 :: Parse JSON Object To Custom Class Object In It?

Aug 8, 2011

I want to parse JSON string to some my custom object in Action script 3. Is there some libs to do this.[code]...

View 3 Replies

Actionscript :: Parse Html In Adobe Air

Jan 10, 2010

I am trying to load and parse html in adobe air. The main purpose being to extract title, meta tags and links. I have been trying the HTMLLoader but I get all sort of errors, mainly javascript uncaught exceptions.I also tried to load the html content directly (using URLLoader) and push the text into HTMLLoader (using loadString(...)) but got the same error. Last resort was to try and load the text into xml and then use E4X queries or xpath, no luck there cause the html is not well formed.Is there simple and reliable (air/action script) DOM component there (I do not need to display the page and headless mode will do)?Is there any library to convert (crappy) html into well formed xml so I can use xpath/E4X.

View 2 Replies

Flex :: Adobe AIR. Local Network Error?

Apr 16, 2011

For example, in local network, when Adobe Air is reading files from local server (\Serverstorage) and network will be in down for a second, Air becomes eat a lot of memory and it is increasing up to 1GB (while normal memory use is 100 kb or less).Just reading file with File('file path on local server'); from unstable network can cause this error.
Have anybody seen that in projects?

private function init() : void
{
file = new File("\Serverdragracing

[code].....

View 1 Replies

Actionscript 3 :: Resolve Adobe Flex Error / Load Never Completed?

Aug 4, 2009

How to resolve Adobe Flex error: "Error #2036: Load Never Completed"?

View 2 Replies

Flex :: Adobe - RSL Error: The Loaded File Did Not Have A Valid Signature

Sep 26, 2011

I'm using Flex SDK 4.5 to create swf files, recently I got the following error when try to open my swf file:

[Code]...

I totally have no idea whats going on with rsl loading step. how to solve this without have to statically linking rsl into swf file?

View 1 Replies

Bug/Error In The Adobe Flex SDK 4.5 When Removing Series From Cartesian Charts?

Mar 2, 2012

I have a problem with the cartesian charts in the Adobe Flex SDK 4.5 and 4.5.1. Perhaps it's a bug, because it's not in the SDK 4.0, 4.1 and 4.6. Or it's just a problem of my code.

I made a little example project to range over series data in a CartesianChart (Line/Area/Column/Bar), a little bit like the google finance chart. When I add all series to the chart, the problem didn't occur. Only when I have multiple series and remove one or more series and than range over the data, the series data get compressed:

Chart image It seems like the horizontal axis didn't change or didn't get an update that the chart data changed, when I range over the current data.

[Code]...

Had someone the same problem or has an idea how to remove a series in another way?

View 1 Replies

ActionScript 3.0 :: Import For Json - Use "JSONObject" With Adobe Cs4

Mar 8, 2011

I am trying to use "JSONObject" with adobe cs4 but it claims it is not a compile-time constant. What import do I need to use? I have tried using import JSON but that didn't work.

View 8 Replies

AS2 :: Post JSON Data From Flash With The JSON As The Body Of The Request?

Nov 5, 2010

I'm working on a Flash AS2 application that needs to post JSON data to a web service.In previous projects, I've used LoadVars.send() or LoadVars.sendAndLoad() successfully to manage this:

var send_lv:LoadVars = new LoadVars();
send_lv.data = JSON.stringify({some json object});
var response_lv:LoadVars = new LoadVars();
response_lv.onData = function(rawdata) {

[code]....

In somepage.php, I can grab that JSON data using $_POST['data'].However, on this project, the developer of the web service requires the JSON content to be the BODY of the request (i.e., not a name/value pair). Is this possible with LoadVars?

View 1 Replies

Actionscript 3 :: Json - Decode JSON - JSONParseError: Unexpected H Encountered

Oct 14, 2011

I'm new to JSON. This is the .json I want to decode but I always get this error:

[Code]...

View 1 Replies

Actionscript 3 :: Json - Counting Elements In JSON Array Which Is In An Object

Feb 23, 2012

I have a pure ActionScript 3 problem, but the simplified test case I've prepared is in Flex 4 for better visibility (the source code is below): Since Flash Player 11 / AIR 3 support JSON natively, I've decided to move a multiplayer game, which used XML for communicating with server, to JSON. But I have a frustrating problem, that given two Objects like

[Code]...

View 1 Replies

Professional :: Reproducible Error: Flash Can Not Parse This Document

Oct 27, 2010

I have a reproducible error: I am being forced to fix corrupted flash files that give the "Flash can not parse this document" error. But shortly after I fix the problem, the files are re-corrupted.
 
Here is how the problem is reproduced: when I update a custom component that is used in other symbols in the library. When a new version of a custom component symbol added to the library, replacing an older version, the symbols that contained the old symbol are corrupted in the XML. This is tedious and time consuming to work around.

View 2 Replies

Flex :: Adobe Air: Drag Application Crash - Error #3200: Cannot Perform Operation On Closed Window

Nov 23, 2009

Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with:

[Code]....

View 1 Replies

Flex :: Dynamically Create Axis Via ActionScript In Adobe Flex Charting Library; Adobe Bug?

Mar 21, 2011

Multiple axis creation via MXML works fine:
http:[url]...

But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....

View 2 Replies

Actionscript 3 :: Json : Parsing JSON Data?

Sep 28, 2011

I am sending a request to a server, and in return I get a long block of JSON.

{
"response":"success",
"assignments":{
"17733":{
"asnid":"17733",

[code]....

Is there a way to do this? I checked if the property was enumerated and it returned true, but I cant find a way to access this data.

View 1 Replies

Actionscript 3.0 :: Json : How To Post JSON Data

Dec 13, 2011

I have to work with webservices in Actionscript. I found the following code that allows me to use JSON URLs that implement only the GET method. However, it doesn't work for POST methods (doesn't even enter the "onComplete" method). How can i "POST" JSON data using Actionscript 3.0?

package
{
import flash.display.Sprite;
import flash.net.URLRequest;

[code]....

View 1 Replies

XML Parse Error 4157: The Name Attribute Was Not Found On The String Element On Opening Program

Nov 16, 2009

Recently, whenever I open up the program I get an XML parse error in the output window that reads: *** XML Parsing Errors ***Line 4157: The name attribute was not found on the string element  <string playername="" tiptext="Specifies that the gradient use the reflect sprea... Line 4164: The tipText attribute was not found on the string element  <string playername="" ti`text="Lets the user drag the specified sprite." This is not specific to any .fla file, but seems to be related to Flash itself. The program seems to work fine otherwise. Can anyone shed some light on this?

View 1 Replies

Sql :: Casue Of SQLite Error: 'Error #3132: Data Type Mismatch' In Adobe AIR

Oct 20, 2011

"SELECT * FROM locations JOIN section_has_location ON locations.location_id = section_has_location.location_id WHERE section_has_location.chapter_id =2 AND section_has_location.section_id=2"

I get the error:

SQLError: 'Error #3132: Data type mismatch.', details:'could not convert text value to numeric value.', operation:'execute', detailID:'2300'

[Code]...

How do I fix the query as to not cause the error? update: I exported all the data, and imported into a new clean database. This seems to have solved that error.

View 1 Replies

ActionScript 3.0 :: Json - Use A JSON API In Flash?

Jan 15, 2012

I was wondering if someone could explain or point me in the direction of how to implement an API that uses JSON in ActionScript 3.0. What I specifically want to know is how would I grab specific information. The following is how I do it in XML but I don't know how I would do something similar in JSON as in getting the equivalent of an XML tag. For example with the twitter API I'd like to grab the text [URL]

[Code]....

View 1 Replies

Flex :: JSON Array - How To Get UID

Aug 6, 2010

api_result = '{"response":[{"uid":1969258,"first_name":"Walle","last_name":"Woo"}]}';
var myobj:Object = JSON.decode(api_result);
So, how I can get uid, first_name and last_name from "response" array?

View 1 Replies

Xml :: Recursively Parse In Flex?

Sep 10, 2010

how can I recursively analyze/modify XML in Flex / As3?

Let's say I have this XML:

[Code]...

How can I find/change, let's say all 'font' tags that have 'size' attribute and multiply it by 2 (no matter where it is)?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved