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


Similar Posts:


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

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

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

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

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 : 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

Flex :: Display And Parse Sensor Data (text)?

Apr 5, 2011

I have a sensor that sends data as text file. Data format as follow: dat=110405120000+000.00+000.00+005.65+000.00+040.71+000.00+000.00+000.20.

How can i parse this data? The output i want is:

date: 05-04-11
time: 12:00:00
ch01: 000.00
ch02: 000.00

[Code].....

View 2 Replies

Flex :: Change Starting And Ending The LineChart Of JSON Data With Slider?

Feb 28, 2011

My JSON Data file ise data.txt

[
{
"sayim":"1",
"x":"400",

[code]...

and my aim ise to create a Slider which can change starting and ending of the graphic, it is like what is showing in figure 6 in this website and here the MXML codes;

.
..
...
jsonDataArray = JSON.decode(urlLoader.data);

[code]...

The problem is "dataProvider" definition in LineChart, I wrote this code but it is still not working,

dataProvider="{dgg(sayim>=daySlider.values[0] && sayim<=daySlider.values[1])}"

what is the right code to control the LineChart with the Slider.

View 1 Replies

Flex :: Access Data Field Of A JSON Request Send By Client In JAX-RS?

Feb 2, 2012

I have the following JAX-RS service.[code]...

The JAX-RS service receives the request and respond successfully with some dummy response, but I have no access to the request.data field.

How do I access the data of the request message (which is {"type":"get_configuration","data":"some data"} in this particular example)? I think that I'm supposed to add some parameters to the handleMessage method like

public SomeResponse handleMessage(Object message) {...

but this does not work at all. The request got 415 response.

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

Data Integration :: How To Parse Data And Assign Variable To Text

Jan 30, 2007

I have three dynamic text boxes. variables respectively
(caption0,caption1,caption2).
My xml file is structured as:
<?xml version="1.0" encoding="iso-8859-1"?>
<captions>
<caption>Roll over this</caption>
<caption>This is the first Caption.</caption>
<caption>This is the second Caption.</caption>
</captions>

I am trying to create a rollover where when you rollover caption0; caption1 and caption2 are displayed in sequence. Everything works except though only the first caption is ever displayed. For the other two I get "level0.caption1" and "level0.caption2" instead of the text in the xml file above. How do I parse the data so that each of the variables are assigned the text in the xml file?

View 8 Replies

Html :: Data In A String Make Clickable Html Link Flex?

Jul 1, 2011

I have a scenario that I get an string with html data, this is not just html data it's an email (outlook) saved as an html file and dropped in the string.Now this string needs to be formatted to an html document and should be a clickable link in a datagrid. So when I click on the link, the HTML document should pop-up and should gave me a nice HTML page that is readable for the normal users. I hope it's a bit clear what I want o_0. don't know where to start.

View 3 Replies

Parse HTML Trough XML?

Feb 2, 2009

I would like to load in Flash the next bit:

Code: Select all<IFRAME SRC="http://tickertape.beurs.nl/beursnl/ticker.aspx?width=750&speed=15" NORESIZE SCROLLING=NO HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=750 HEIGHT=25></IFRAME>

I know this is not possible in Flash, but I thought maybe there is a roundabout to get this to work anyway..Is it maybe possible to load in the above mentioned bit of code with XML ?

View 1 Replies

Professional :: Html Hyperlink In Xml?

Jan 9, 2010

ow to do a hyperlink in xml  This is what I do know,  you can add the <a href="http://www.google.com">click here</a> but that does not work for me,when i save and preview my fla, it takes away my scroll bar that i have I have alsoseen somwhere you can use the <?[[DATA tag, but this aswell doesnt work for me in my FLA, is there somewhere i need to reference hyperlinks before I can modify my xml??

View 5 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

ActionScript 3.0 :: Parse HTML Out Of RSS Feed?

Jul 27, 2009

I am trying to make a rss aggregator and I am stuck at the moment as I can seem to parse out the HTML info that is held in the certain sections of the rss document. Below I have posted my AS3 code as well as the rss doc info. How to parse out the HTML from the description and title of the rss feeds.

ActionScript Code:
import fl.controls.UIScrollBar;
var finalNote:String = ""
trace( finalNote );
var urlVar:String = "rss_example.xml";// local XML file that loads by default
reloadRSS();// function to initially load or reload the feed
[Code] .....

View 3 Replies

ActionScript 3.0 :: Parse HTML From RSS Feed?

Jul 27, 2009

I am trying to make a rss aggregator and i am stuck at the moment as I can seem to parse out the HTML info that is held in the certain sections of the rss document. below I have posted my AS3 code as well as the rss doc info. Could some one please advise me on how to parse out the HTML from the description and title of the rss feeds.[code]

View 4 Replies

Adding Hyperlink To SWF File In HTML

May 29, 2002

I have been given an .swf file that needs to be added to an HTML page - no problem. That file then needs to link to another site. Is this something that needs to be added to the file before it is loaded onto a website?

I've seen the following code provided in other threads, but either it is meant to be used when creating the file, or I'm not using it correctly when I try adding it to my .asp page.

on (release) {
getURL ("<URL here>", "_blank");
}

If I'm not trying to do something impossible, edit the code below to make this file link:

<html>
<BODY BGCOLOR="#ffffff" TEXT="#000000" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 rightmargin=0 id=all>

[Code].....

View 7 Replies

ActionScript 1/2 :: Launch SWF From An HTML Hyperlink?

Oct 18, 2010

I have a completed Flash (AS2) project that's pretty involved.  Now, I need to launch it from a hyperlink on an html page.  I want the hyperlink to launch the ".app" or ".exe" file - not the html that Flash publishes.  I don't want the user to view the project in an html/browser window but rather as its standalone projector/exe.
 
I tried a regular hyperlink like this[url]...but that doesn't launch the .app.  Instead I got a browser screen showing the path to the app inside the "FLASH" folder.  The app is viewed as a folder named "GUIDE.app".  (weird)  So I surmise that a regular hyperlink isn't going to do the job.
 
How do I launch a Flash projector or executable file from a hyperlink on a separate HTML page?

View 5 Replies

ActionScript 2.0 :: Specify A Frame Name In A HTML Hyperlink?

Dec 31, 2003

can you specify a frame name in a HTML hyperlink to go to that frame in the swf file when clicked.

View 5 Replies

Cannot Parse Data From Xml?

Aug 10, 2009

I am trying to obtain strings from a xml file: I tried the following:
 
var url:URLRequest = new URLRequest("blog.xml");
var xml:XML; var rss:URLLoader = new URLLoader();rss.load(url);rss.addEventListener(Event.COMPLETE, readRss);
function readRss(e:Event):void{       xml = XML(rss.data);       txt_field.text=xml.entry[1].author.name;
}

[Code]...

View 6 Replies

ActionScript 3.0 :: Way To Parse Data

Feb 17, 2011

I am making a basic graphics program in Flex 3 and I am wondering how to parse data into drawings on the stage, but I'm just trying to figure out how it would work.

View 4 Replies

ActionScript 2.0 :: Possible To Parse Xml Data?

Jan 5, 2009

I have need to take in an xml document that looks like the following[code]...

I want to isolate the info from say section 10 to populate a movie clip and so on. I have parsed xml before so understand the basics, but am unsure as to how to manage this particular document.

View 0 Replies

Actionscript 3.0 :: Can't Parse XML Data

Apr 5, 2010

I've been following Lee's tutorial on XML Basics with AS3 and I'm having a problem displaying the output of an xml document after creating the XML object.

Getting the entire contents of the xml file works:
Code: Select all//Create new Loader Instance
var myXMLLoader:URLLoader = new URLLoader ();
//Create the Notifier Event

[Code].....

View 3 Replies

Xml :: Getting Static Data For Flash App With JSON?

Jul 9, 2010

I've flash app and i've static data (like ~18.0KB) for it which aren't changed often so I was wondering how to better get them. The static data may be in XML or JSON. One of my ideas was to put the static data in .js file within a function which would return them in JSON list and the other one was to return them in XML (as I like to work with XML more in Flash) somehow. But I'm not sure if it possible to put XML stuff in JS file to return them when function is called.. Or is XML pages also cached in browser and I will get the same performance result which I would get with cached JS files?

View 1 Replies







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