Xml - Sending Data From MXML File To JSP File (and Receiving) Using HTTPservice?

Jul 9, 2011

I want to retrieve data from a Database and display inside a datagrid in a Flex web application. The way I'm thinking of doing it is :

Send the Query data from .mxml file to the .jsp page using HTTPService. In the .jsp, connect to the database and retrieve the data using select statements. send the results back to the .mxml using HTTPService.

I know what to use but I have an ambiguity. In the (.mxml) I use xxx.send() to send the data. What do I use in the (.jsp) to send it back ? I know that I should store the results in an XML in the .jsp file, but how to do that ?

View 1 Replies


Similar Posts:


Php :: Sending And Receiving Data?

Feb 28, 2012

Not getting data back into flash from php that queries mysql data, think the problem is with my as3 code here?The php works, the as3 posts to the php ok, its the returning of the variables to as3 that I am unsure about and seems to be the problem?

public static function MineData():void{
var myRequest:URLRequest = new URLRequest("login.php");
var myLoader:URLLoader = new URLLoader();

[code].....

View 1 Replies

Xml :: (Flex 3) Get Data From A File Using HTTPservice And Save The Return Data As An Array?

Oct 15, 2009

I have an xml file (externally saved) that is similar to the following:

[root]
[main]
[title]...[/title]

[Code]....

What I like to do is to get what's in [title] tag using HTTPservice, import it into Flex, and save it as array objects, and do the same thing for [content]. This way I can later refer the array object saying title[0] or content[2].

View 1 Replies

ActionScript 2.0 :: Sending/receiving Data From An API?

Aug 4, 2009

We are thinking of adding a feature to a main page of a flash site that I will be building shortly, but it requires sending data out to an API where it will be processed and send back to Flash.The form will need to post a number of variables to a URL and then interpret the response code.. is this possible in AS2?

View 9 Replies

Actionscript 3 :: Sending And Receiving Data From Flash To PHP?

Jul 29, 2011

I know this is frequently asked, but I have looked all over the internet to find the mistake I'm making with the code I've used to send and receive data from AS3 to PHP and viceversa.Can you find the mistake? Here is my code:

AS3:
import flash.events.MouseEvent;
import flash.net.URLLoader;

[code].....

View 3 Replies

ActionScript 3.0 :: Flash.net.Socket Sending But Never Receiving Data?

Jul 20, 2011

I'm trying to make a barebones, simple flash client communicate ANYTHING to a server over a regular socket. I setup the listeners:

socket = new Socket();   socket.addEventListener(Event.CLOSE, closed); socket.addEventListener (DataEvent.DATA, onSocketData); socket.addEventListener(Event.CONNECT, connected); socket.addEventListener(

[code].....

View 1 Replies

ActionScript 2.0 :: Starting With XML Sockets - Sending And / Or Receiving Data

Jul 18, 2004

I've begun playing with Flash and XML Socket Servers and I thought I started taking to it easy, I was able to connect and disconnect to a socket server I wrote and Unity but I seem to be having problems sending and/or recieveing data. I wrote a small amount of code to try it out:

[Code]...

It seems to be connecting fine but when I click and I try my send,

View 2 Replies

ActionScript 3.0 :: Flash - Keep Animation Running While Receiving Large Data File?

Feb 3, 2011

I'm developing a web application with Flash CS5 and AS3.0. The problem I'm having is this:At a certain state, the application goes to a frame with a "loading..." animation that loops continuously until the next state is reached. The animation is inside a MovieClip that lives on this frame on the stage (I'm not creating or animating it dynamically). While in this state, the app is waiting to receive a large xml file from an XmlSocket connection. The file takes a few seconds (literally - not milliseconds) to be received fully by the Flash player, and during this time the loading animation stops. I believe the socket is blocking the animation thread until it's done receiving the entire file.Does anyone know of a workaround that would allow the animation to keep playing while the socket is receiving? I've seen pseudo-threading hacks, but those always deal with computations or other activities that can be accomplished by calling a call-back function multiple times. Since I'm just listening on an open socket, there's no callback I could pass to a pseudo-thread.

View 2 Replies

Flex :: Load An External Mxml File Into A Parent Mxml File?

Mar 9, 2012

This is a project I'm working on for a simple demo tutorial application in Flex. I am using mxml pages. You can see to the left that I will have my main application and then other mxml files (In the Examples Package) as the examples that will be loaded into the main application mxml. How can I dynamically pull the value from the object in the list to load the child mxml file into the container that I have further down in the application?

View 1 Replies

Properties :: Flash HTTPService : Reading The Connection Data From Property File?

Dec 19, 2011

i have my HTTPService, it looks like this :

<s:HTTPService
id="setCustomerInstalledPackageService"
url="http://localhost:8090/myapp/servletName"

[code]......

View 1 Replies

Data Integration :: Sending Data In Flash To External Text File

Apr 9, 2007

I will be creating a program to use for data entry. I'll be studying zebras in kenya and I won't have the internet there as I'm recording the data. I'd like to be able to send the data I generate in flash to an external text file. I understand I need some sort of script to do that, but is this something I can run just on my machine? (I'll probably make the data into xml format).

View 1 Replies

Flex :: Get Id Value Of Main.mxml File To CustomPanel.mxml File?

May 16, 2011

I have a method in CustomPanel.mxml and I need to use id which is available in Main.mxml. Below is my sample code

Main.mxml
<local:CustomDivideBox id="div1">
Custompanel.mxml[code]....

View 2 Replies

Flex :: Include An MXML File Inline Another MXML File?

Jul 25, 2011

I would like to include an MXML file in my MXML file in the same way you can include an external file in AS3 using the include directive. Using the include directive brings the code from the external file into the original file at compile time placing it in the same scope. For example,

Application.mxml:
<Application>
<source="external.mxml"/>

[code].......

View 4 Replies

ActionScript 3.0 :: Sending Data And Uploading A File?

Feb 20, 2009

I have a job application form where i am taking users basic info as name,email, phone no along with this i am asking him to upload his CV(a doc /pdf file)

How can i post all data on one submit. I am using PHP at backend.

I can send data and upload file seperately.Isit possible to upload file and submit data at a time.

Can we send additional variables with File Reference object.

View 3 Replies

ActionScript 3.0 :: Sending And Getting Data From External File?

Nov 22, 2010

I'm running it in actionscript 1 and 2 since 3 wouldn't work when getting data from external media. I'm trying to find out how to post data to a PHP file and getting from that file I'm trying to make the flash for something that works like a game but differently. Since I just found out how to make the HTML stuff show up but a lot of times, some of my text will not appear so I don't know what's going on.

how to send and get data both at the same time from a sample file?
 
The sample file is example.php
 
It has to sent information like ID and NAME and it has to get information like Description and userID

View 3 Replies

ActionScript 1/2 :: Sending And Getting Data From External File?

Nov 22, 2010

I'm running it in actionscript 1  and 2 since 3 wouldn't work when getting data from external media. I'm  trying to find out how to post data to a PHP file and getting from that  file I'm trying to make the flash for something that works like a game  but differently. Since I just found out how to make the HTML stuff show  up but a lot of times, some of my text will not appear so I don't know  what's going on.
 
how to send and get data both at the same time from a sample file?
 
The sample file is example.php
 
It has to sent information like ID and NAME and it has to get information like Description and userID

View 8 Replies

Python :: Flex Mxml File Being Run On Server As Swf / Html File Be Made Non Cachable?

Apr 28, 2011

I have a application developed in flex deployed on server. In the application data is filled by user and saved in cookies so as to be available even when the user closes the application. However if new version of application is released the user can still access the older version saved in the cahe. How can it be assured that whenever a new version of application is released the application is loaded from the server and not from the cache and at the same time data saved in the older version (in cookies) can also be accessed in the new version.

View 2 Replies

ActionScript 2.0 :: MXML Project In Flex 2 - Make SWF File As Main Executable File?

Nov 26, 2006

I have to make a project for school. It will be like a tutorial, but into an application. I already made a part of it in MXML and a bit of action script but I encountered a few problems that are over my newbie limits. So the Flex Builder 2 makes a SFW file, in the main folder of the "project". I want to make that SWF file my main executable file. I have a folder with some pics, and another folder with Action Script Files. The code lvl that I know atm is ABSOLUTE BEGINER... I don know how to make my SWF file have a specific name when I run it.Here is a picture of a training exercices that should make thing more clear:Some people told me that I should use a HexEditor and stuff. Is it ture(what u think?).

Next problem. I dont know how to make the Stage to be fix. I mean.. I dont want the stage to be resizeble. I tryed to change the stagescalemode but that wasn't it. I toke a look at the help files of Flex from the net, about the Resize action and SystemManegment, but I didn't find out what I wantend.

View 4 Replies

Flex :: Buttons And Styles - Creating A SWF File Using A MXML File

Aug 11, 2009

I am creating a SWF file using a MXML file. The MXML file define several MX:Button and uses an external stylesheet to style them. There is a problem I am facing at the moment, I am aiming to style the buttons in a way that is similar to the way I can style HTML button elements. However, I could not achieve such look and feel. For example, I could not find a way to define the color and thickness of the borders for each side of the button (top, bottom, left, right), the background color, the margins, the padding, the width, and the height of the button. Also, selector such as hover, active, focus are not available. I was only able to change the size and the font color of the button successfully.

View 2 Replies

Flex :: Calling Another Mxml Function In Other Mxml File?

Sep 27, 2011

i have defined some functions in a component mxml file let us say addbutton() now i want to call this function in main mxml file.

View 2 Replies

Get Id Value From One Mxml File To Another Mxml File In Flex?

Jul 21, 2011

My Application is in Flex 3.5. My Code is Here,How to take the id value of textare?[code]...

View 2 Replies

Flex :: Convert A Mxml File To A Component That I.e .swc File

Aug 7, 2010

i hav tried to covert .mxlml to .swc file using flex builder it's not working when i integrate with other application.. how to get .swc using SDK..

View 2 Replies

Generate Mxml File From Excel File?

Jul 29, 2011

How to generate mxml(flex code) from excel file.how to Create flex code from xls file.

View 1 Replies

ActionScript 3.0 :: Saving Data To Text File - Appending Data In Text File - Importing Data From Text File

Aug 23, 2011

How can I save data to a text file and also append a record to data in an existing text file? I've used Authowrware previously and it was quite easy to create a large string of data (a comma separated list) and export that to a text file (and create the text file if it didn't already exist). I could then easily append additional rows of data (records) to the text file. We want to build a questionnaire that will store the data locally on the computer in a text file. Each record may have a few hundred data points in a comma separated list.

View 8 Replies

ActionScript 2.0 :: Send The Data Using SendAndLoad Method To Asp File And Get Data Back From Asp File

Feb 13, 2008

I am the fan of kirupa but this is my first thread in forum. I have some problem with sendAndLoad method with actionscript 2.0. I am developing a online game with flash mx , MS SQL 2000 and asp. The problem is I send the data using sendAndLoad method to asp file and get data back from asp file. But when the internet connection is not good there is a problem like jam or lost packets. How can I prevent the lost of packets. Some of the data are important. Is there any way to solve this?

View 1 Replies

Javascript :: Is It The Index.template.html File Per Project Or The HTML File Created Per MXML Application

Sep 26, 2011

I was reading about Flex- JavaScript communication via ExternalInterface.But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MXML application ?

View 3 Replies

ActionScript 3.0 :: Flash - Receiving Variables From PHP File

Oct 1, 2010

I m trying to receive some variables from a PHP file in AS3.

AS3 code :
package {
import flash.display.MovieClip;
import flash.events.*;
import flash.net.*;
public class bakar extends MovieClip {
[Code] .....

The problem is I am getting output as :
Code:
username is undefined
email is undefined
I am using a WAMP server.

View 2 Replies

ActionScript 3.0 :: Get A .swf File As Result Of Compilation Of Mxml File In Flash Builder 4 IDE - Not Flash CS5

Jan 13, 2011

I have to work with a .fla file. I would like to rewrite this file in AS3. Is it possible?
I mean, I would get a .swf file as result of compilation of mxml file in Flash Builder 4 IDE, not Flash CS5 (I don't know CS5, I'm a newbie) . Main target is getting a .swf file by compilation of mxml file, not fla file. Could you explain in detail how this code works? For example what's TXT ? Is it a inputText? Where is this variable defined?
Now I 'm linking .fla file ....

[Code]...

View 1 Replies

Flex :: Refreshing An XML File Through HTTPService?

Apr 21, 2010

I'm having a problem refreshing an xml file. I am bringing it in through an HTTP service component and putting it into a bindable array _cattArr, that I am using as the dataprovider for a grid.When someone adds an item to the datagrid, it saves to the same xml file. Then I close the window, reopen it and don't see the item that has been added.It is writing to the xml file, because when I restart the flex app, the item has been added, it's just not refreshing it. I have tried to resend the httpservice, but still no luck. What is the correct process for doing this?

View 3 Replies

Xml :: Loading File Using HTTPService In Flex

Jun 27, 2011

So I have been trying to load data from an XML file into a datagrid. The project is in Cairngorm framework. The XML file is in the web content folder. I have a HTTPService call in the Services folder.

[Code]...

When I make a selection in one dataGrid it is supposed to populate another dataGrid with the data in the XML file. Below is the Classes datagrid. When i click on a class it is supposed to populate the next data grid.

[Code]...

View 1 Replies







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