ActionScript 3.0 :: Posting Data To Server And Returning XML Results

Apr 2, 2012

I've created a function to send Post data to my server, and this then outputs xml to the page. What I can't find any information on how to get this data from the page back into flash.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Posting Data To Server?

Dec 17, 2010

I'm wondering what is the best way to post arbitrary data to the server in the same format, as forms in web browser? I'm using this thing by now, and it seems it more useful to load data from server, but not the uploads.

View 3 Replies

Flex :: URL Encoding - Posting Data On Server

May 27, 2009

I want to post data to a URL on my server from a Flex app. I am using the following
UrlParam = UrlParam + '&name='+ name.text + '&business=' + buisness.text; navigateToURL(new URLRequest(UrlParams),'_self');
The problem I am having however is that if I enter a business with an ampersand ("A&b.com") then the name does not send. Does Flex have anything out of the box to do the encoding from & to %26?

View 2 Replies

Media Server :: FMS Seems To Stop Returning Data?

Mar 26, 2010

I'm currently working as part of team of developers and we've run into an issue with our FMS project.In our site the user is able to record video of themselves which is turned into flvs and stored by the FMS. These videos are played back at a later time. The site works fine but intermittently stops recording new videos or streaming previously recorded videos.The only solution at this point is to restart the server. The server logs show that the onDisconnect event handler is running when users terminate their sessions and we can see that the number of active connections does not appear to be exceeding the limit on the server. There are no runtime errors to indicate that anything has gone wrong.From looking at output from the app it just seems like the publish and unpublish event handlers stop running but nothing actually breaks.The user doesn't realize anything is wrong until they try to watch their videos only to get a blank screen.

We're wondering if perhaps it is a garbage collection issue? Either the garbage collector in the FMS is running and taking a really long time to reload the app or perhaps it isn't running at all and somewhere some memory is overloading.

View 3 Replies

Php :: Flex With AMF Returning Results Slowly?

Sep 3, 2010

I think this is just a matter of fine tuning some different elements, but I'd like to know your take. I've got a Flex app, using the Flex 4 data services, communicating with Zend AMF services. One of the services returns all the results in a database using SELECT * FROM table there are ~1200 rows (140KB package size).

My problem is the response time, it's rage inducing. Total duration is always between 7-8 seconds. All but about 150ms of that is latency. I broke up the PHP to figure out exactly where the latency was and turns out return $rows is eating up ~6.8sec latency. I can deal with 1-2sec, but when I start waiting around for 8sec I feel kinda dumb. I cross checked the query response speed directly from the database, and just like I was expecting the total query time is 45-60ms.

PHP, this is basically just the generated Flex data service code, although in production it isn't the same:

public function getAllProject_entries() {
$stmt = mysqli_prepare($this->connection, "SELECT u.*
FROM $this->tablename u");

[code]....

View 1 Replies

Flex :: HTTPService Issue Returning GeoCode Results To DataGrid

Jan 5, 2011

I am creating a Flex3 app to return some results from the Google Geocoding API. I am using the HTTPService Events sample from TourDeFlex as a reference guide to mimic. For now, I have hardcoded the response from Google to use this XML response: [URL] Network Monitor suggests that I am getting a valid response from the XML, but I imagine I have not referenced it correctly for populating my DataGrid?

[Code]...

View 1 Replies

Data Integration :: Posting Data To PHP Script?

Apr 29, 2009

What are the best methods (if there are any) when submitting data to a PHP script to check if the "submitter" is the flash object and not a user hitting the URL?

View 5 Replies

ActionScript 3.0 :: Posting Web Data?

Sep 3, 2011

am trying to use AS 3 (for which I have beginner skill) to send and receive data to/from an ASP page (this ASP page is done) that interacts with a MS SQL databaseThe Flash SWF would send a name and password entered by the user in the SWF to the ASP page; the ASP page script (already written) would check with the DB, return either YES or NO (YES if the name/password is found, NO if not), plus return a score number, and then the ASP page script would write these 2 variables as a response to the Flash SWF (var data = YES or var data = NO, plus var score = 'the score numeric value'.

View 4 Replies

ActionScript 3.0 :: Posting Form Data Via Php Using As3?

Jan 31, 2010

I have a simple form in my flash cs4...I am unable to get it to post to the php script here is the code I have:

Code:
var req:URLRequest=new URLRequest("mailer.php");
var vars:URLVariables = new URLVariables();

[code].....

View 3 Replies

ActionScript 2.0 :: Flash8 - Posting Data To PHP / MySQL Database

Oct 11, 2006

How I can send some text in a dynamic flash textfield to a mySQL database and vice versa? Basically I've created a text field - assuming it has to be dynamic (with an instance name of "tUserdata"), it's going to be multiline text, and upto 255 characters. As the user clicks the submit button, the data held in the flash text field is sent to the mySQL database and stored there. I understand that i have to use PHP as well - and heard i need to use the loadVars function. Need Coding in PHP and connecting to a MySQL database, and what actionscript I need to insert.

View 3 Replies

Professional :: Real Time Posting And Receiving Data To And From Txt Files?

Apr 6, 2010

The component itself receives all its parameters from a .txt file. The editor is a read/save form that initially loads the parameters into it's form fields, and then overwrites the .txt file when the user hits submit. You then refresh the component on whatever website you have it to see the changes.Here's the php code that I found to get me going:

<?php  //Capture data from $_POST array  $title = $_POST['Title'];  $comments = $_POST['Comments'];  $image = $_POST['Image']  //Make one big string in a format Flash understand  $toSave = "Title=".$title."&Comments=".$comments."&Image=".$image; 

[code].....

View 2 Replies

AS :: Flash - Send Additional Information While Posting Video Data?

Jan 20, 2011

I'm now saving the snapshot this way:

vidBmpHolder.draw(main.media.videoLocal);
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(vidBmpHolder);

[code].....

View 2 Replies

Php :: Calling A Page With MySQL Query From Javascript Function Then Returning Results To Another Javascript Function

Jul 8, 2010

I am refactoring some code. I have a PHP page that contains a MySQL query and stores the result in a PHP variable $my_result. This result is then echoed to a Flash SWF during embedding with SWFObject. I now want to call this PHP page that makes the query from a javascript function like so - one change I have made to the PHP is that instead of storing the result in a variable $my_result I am echoing the result. Javascript function to call the PHP page and make the database query

[Code]....

View 2 Replies

Php :: Recording Audio On Website: Red5 Stream Or Posting The Audio Data?

Sep 6, 2011

Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:

1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.

2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.

View 1 Replies

Flex :: URLLoader Returning No Data?

Sep 4, 2010

in AS3 I'm trying to load a URL (a Yahoo address) into the application so I can process the source code and pull things out of it.However, when I load it, or any other page, I get 0 bytes back.Here's my current code.

private function doSearch():void {
var req:URLRequest = new URLRequest("http://yahoo.com");
var loader:URLLoader = new URLLoader();

[code].....

View 1 Replies

ActionScript 2.0 :: Returning XML Data Into An Array?

Dec 2, 2009

I've been trying to figure out what I'm doing wrong here. I the below code works, but I want another function to be able to use the data stored in the 'sectionPathes' array.

How can I 'return' this data, so that other functions/etc can use it.

[Code]...

View 2 Replies

Media Server :: Stream.getOnMetaData() Not Returning Anything?

Jan 22, 2009

I'm currently trying to return the metadata of recorded streams using Stream.getOnMetaData(), but it never returns an object. If I trace server-side, the stream is found, as I can get the size and length of it, but no metadata object comes back to my client. Does anyone have a sample using this method properly?

Server-side code:

Client.prototype.getStreamMetaData = function(streamName)
{
trace("return stream metadata: " + streamName);

[Code]....

Neither of my client Responder functions (result or status) get called on the client when I invoke NetConnection.call() on this.

View 4 Replies

ActionScript 3.0 :: URL Loader Returning Wrong Data

Jul 15, 2011

I have a problem with connecting as3 with php. I get the data return from php is wrong.
This is my code
AS3:
var file:String="test.php";
// Define global variable
function GetXMLfile(){
var loaderphp:URLLoader=new URLLoader();
var urlRequest1:URLRequest = new URLRequest(file);
loaderphp.addEventListener(Event.COMPLETE, GetCharInfo);
[Code] .....

View 1 Replies

Actionscript 3 :: Returning An XML Object After Loading Its Data?

Mar 23, 2012

I have created a class which loads the data from an xml file.

[Code]...

View 1 Replies

ActionScript 3.0 :: Returning Child MovieClip Data?

Mar 20, 2011

I'm trying to construct a "getter" function in which a movieclip obtains it's childs current frame label, but for some reason I cannot get it to work.

Part of Block.as :

ActionScript Code:
public function getStatus(acs:String):String {
return (MovieClip(this.getChildByName(acs)).currentFrameLabel);[code]........

View 0 Replies

ActionScript 2.0 :: Sorting Variables And Returning The Variable Name And Data

Apr 12, 2011

There are 12 color variables, and each answer adds a number to each variable.At the end of the quiz, all the variables are put into an array, and sorted. Then the 3 highest variables are displayed. I have gotten this far. My problem is that I need to link the variable name (color) with the number it returns.[code]

View 2 Replies

Data Integration :: Run A Query And Convert The Results To An XML String?

May 30, 2007

I need to run a query and convert the results to an XML string. I *think* I need to do all of this in PHP but I wanted to get some guidance as sometimes I make things more difficult than necessary.

Do I have 2 scripts... one to query and one to process the results to XML? Or can I put them both in the same script. To do the latter is not proper OOP practice, correct?

Once that is done, I can get the data into Flash. I need it to be XML though because the same data is being used elsewhere outside of Flash.

Is this the proper, most efficient way of handling this task?

View 4 Replies

Professional :: Ql Database And Display Results Based On The Data?

Jul 4, 2010

Is it possible for recent versions of flash to directly (or thru Php) access (& update) data from a mysql database and display results based on the data?
 
So if my database were like this (math scores):User 13Jerry | 20Kane | 7 the flash output would be a bar graph like this (those hyphens would be bars in flash)
 
Is this possible these days? Google analytics does something like similar to this.
 
I last used flash somewhere in 2003/4. Never after that :-) I've completely lost touch.

View 6 Replies

Media Server :: Returning Values From Admin API / Connecting To FMS Without Flash?

May 26, 2010

I am trying to connect to an FMS application without flash (no SWF). To the best of my knowledge,the only way to accomplish this is thru the admin APIs, is that correct? If so, how do I return meaningful values from the admin API? I can call functions and stuff using the broadcastMsg API call but I can't seem to get back any values. All that is returned is a useless "Success" type message. I have tried using shared objects and the getSharedObjects API call, but the call doesn't return any info on the contents of the shared objects, just their names and some info on their persistance.
 
Is there another way of accomplishing my goal outside of the Admin API? If not how do I return meaningful variables from the Admin API? Is there a way to hack or extend the admin API?

View 2 Replies

ActionScript 3.0 :: Returning Data From A Function Called Via Event.COMPLETE?

Aug 3, 2010

i am trying to return an XML object, but having issues. The object is only created via an Event.complete function. I need to return the XML created from my loadXML function via my grabXMLfromFile function.

Code:
function grabXMLFromFile(attrPathToXML:String):XML {
var fileUrl:String = attrPathToXML;
var myUrlRequest:URLRequest = new URLRequest(fileUrl);

[Code].....

View 3 Replies

ActionScript 3.0 :: Capturing Data In A Text Box On Results Screen For Quiz

Mar 19, 2009

I have a little quiz, where at the end the results are calculated and the test takers are taken to a results screen which calculates their results.

I have AS3 code creating the message screen, and the score is calculating ok. I want to capture the users name on the results page, and this is not working. I have attached the code which calculates the score and where I added the instance name of the test box when they login. I get an error when I publish. The error is "Access of undefined property name name_text"

obviously this is not how to capture that information, but not sure how to do it. Again, I have a text box with the instance name of "name_txt", and I am trying to capture that data on a results screen using AS3.

Code:
feedback.text = "Congrats" +name_txt+ "on finishing the exam!
Your score is "+Math.round(score*100)+"%
You may now close the exam window.";

View 1 Replies

ActionScript 2.0 :: Passing Numeric Data In Via Flashvars Results In Losing Zeros?

Mar 8, 2010

I'm modifying someone's old AS 2 Flash application and I need to pass numeric data in as a string OR have a properly formatted USD currency string in the end.

Currently, I might pass something like Data1=$34,000.00&Data2=$12,344.18&etc...

in via FlashVars. Assuming I show Data1 in a dynamic input field, I'd get something like "$34,0"

I'm not too concerned whether this is a super clean, proper solution or a functional hack-like solution with this application. It's needed, but only for a short time.

View 1 Replies

Media Server :: Fms Live Stream Server Stops Sending Data Around 4+hrs?

Mar 21, 2012

My rtmp client connects to the server ok and rtmp data flowing ok for about 4hours, in the wireshark trace I can see that the server just stops sending data roughly after 4hours. The server version is 3.5.1, and I also try it on a 4.0 server the data stops coming from the server as well after 5+hours. There are no errors or any indication of session disconneciton in the diagnostic logs. I have also looked thru the settings in applicaiton.xml and server.xml I just don't see any obviious reason for the issue. I do send rtmp Acknowledgement to server after the client receives "window size" bytes, and the client sends ping response to server.

View 1 Replies

ActionScript 3.0 :: Wait For Data - Send A 3 Byte Message To The Server (C) And Have The Server Return A Response?

Dec 17, 2010

I made a server connection with AC3 and C, I need the client(AC3) to be able to send a 3 byte message to the server (C) and have the server return a resopnse. So far everything works except for the fact that the feedback isn't fast enough becuase AC3 just tests for data once and moves on instead of waiting like in C. I'm using a binary socket at the moment but I was wondering if there was any way to wait for new data before moving on

View 2 Replies

Media Server :: Location Of The Server Page Data To Edit?

Aug 3, 2011

What the directory location of the default webpage data when the Adobe Interactive FMS 4 video is installed at?When the page loads it has all of the Adobe products and featurs on the page, I just need to know the location so I can edit it.

View 1 Replies







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