ActionScript 3.0 :: Retrieving Post/get Data In Flash?
Jun 1, 2009
I have a page, written in php that recives and ID value for Album information stored in an XML file. The XML File contains a links to "Samples": I'm trying to get my flash file to "retrive" the data (the ID value) from the php page (the flash file will be embedded), and make a list of samples that can be played. A sorta of an Audioplayer. I already know how to retrive XML data, but the retrival of the ID value from the PHP is a puzzle for me...
View 5 Replies
Similar Posts:
May 26, 2006
I have form in flash with input text fields with Var field set to t2_2 t3_2 t4_2... what i want to do when user enter values and press buton it should post data(values) to aspx page - how can i do that ? i saw what i did
[Code].....
then i can access t2_2 value on aspx page, so what shoul i put before getURL so it will set values from texboxes
View 2 Replies
Oct 4, 2011
I have this little piece of code to retrieve data from a local SQLite database (to an AIR app):
import flash.filesystem.File;
import flash.data.SQLConnection;
import flash.data.SQLStatement;
[Code]....
It is only a "proof of concept" piece of code and it "lives" in the first frame of the timeline of the Flash IDE. What happens? When I compile my SWF (AIR for iPhone), I get this error:
SQLError: 'Error #3115: SQL Error.', details:'no such table: 'background'', operation:'execute', detailID:'2013'
I created a basic db with a Firefox extension (SQLiteManager). What can cause this error? The table exists!
View 1 Replies
Mar 31, 2011
I'm trying to parse an image file, but i get the 504 error. Normal data, like text or numbers its ok...
View 1 Replies
Aug 2, 2011
My goal is to simply echo $_POST['imageVar']; back with content headers as a quick and dirty means to "export" an image from a flash application. I saw an example of this as follows, but it does not work with my php version/config:
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
// get bytearray
[Code].....
View 2 Replies
Oct 5, 2010
I have a web page with a button that does a redirect to another web page with a flash movie in it. The button on the first page sends http post data as part of it's functionality.
View 1 Replies
Dec 8, 2009
I'm basically interacting with a third party API flash file to send HTTP POST requests to my server. know I'm on somewhat the right path because it requires a crossdomain.xml file, and before I added that part nothing in the POST variables was showing up, however since I added that file there are 4 variables that are set, these POST variables are sent by the application to give me basic information about the file.. but I actually need to read the RAW POST data to actually save the image being sent by the Flash.I'm aware there are 3 ways...$GLOBALS['HTTP_RAW_POST_DATA'] $HTTP_RAW_POST_DATA which is probably the same as the firstfile_get_contents('php://input')For whatever reason, neither of these "work". By "work" I mean they're not being set, when I var dump them I get nothing.
Could it be that there's a setting in php.ini that I need to set, or perhaps the Flash application is truly not sending the actual image? I think it's doing the right thing, because it's a semi popular API and it's used by a couple other sites so I'm pretty sure it's right on their end.
View 1 Replies
Feb 19, 2010
I have Flex application requiring to filter users depending on there database groups.Depending on which group they are, the're is a config.xml file that is use to populate the swf.Here is how I figure how to do this : 1. The client comes to a .aspx page with a form requiring a username and a password. 2. On the server side I confirm the user credential . Once the username/password is valid I redirect to the mxml file with the config.xml file in the html headers (post).My problem comes when I need to get the post data from the http request. Let's say I have this code :
<mx:Application initialize="init()">
<mx:Script>
<![CDATA[
[code].....
View 2 Replies
May 25, 2011
I have a developed a application that allows users to draw simple images on a canvas. The name of the movieclip(canvas) is canvas_mc.
I need to save this drawing on the server using php. I have to convert the movieclip (canvas_mc) into png and jpeg and save it. I have successfully save it on local drive using some classes available in
[URL]
How can I save it on server using PHP. I have been asked to use the post method. If possible give me the code also as I just moved into programming from design :-)
View 1 Replies
Sep 16, 2010
This code is being run from a frameset in IE8. When the new window is opened, the form data is not being recognized. It appears that the http header, "content-type: application/x-www-form-urlencoded", is not being passed into IE and this is causing the post data not to be processed. The data is there, IE is just doing nothing with it.
This code works fine in FF and Chrome, and in fact the correct headers are passed in FF and Chrome.
NOTE: The new page is on a different site, but i don't know why that would cause a problem with a POST and not a GET.
Flash code:
varSender = new LoadVars();
varSender.title = _parent.tCourseTitle;
varSender.notes = input_txt.text;
varSender.send("http://example.com/notes/print.cfm", "_blank", "POST");
I have tried adding the header to the send request, but that has no effect at all. The contenttype header is still missing and it still works everywhere but IE.
My current work around is to use a GET instead of a post, but that's ugly and it limits us in the size of data we can pass but for now at least it works.
View 1 Replies
Feb 18, 2010
Using localconnection i can send data from one swf to another.
[Swf 1] Send data to [SWF 2] - This works with LocalConnection
[SWF 2] Sends this data to [PHP script]
Is there a way to send data from SWF 2 to PHP script without post data? or what would be the secure way to do it?
View 4 Replies
Jul 13, 2011
I am making rest calls with a urlload.load(urlRquest).
also
urlRequest.method = URLRequestMethod.POST;
urlRequest.contentType = "application/xml";
When I make the calls within the Flash IDE, I get HTTPStatusEvent.status = 400 (or whatever) when an error occurs. And the IOErrorEvent.data contains xml (or sometimes a string).
However, when I run the swf in a browser (Firefox Mac or PC), the HTTPStatusEvent.status = 0, and the IOErrorEvent.data is empty. (Interestingly in Safari Mac, I do get the 400 status, but still no data.)
View 1 Replies
Sep 7, 2010
I'm experimenting with data retrieval from xml spreadsheets. I have 5 links in the xml labelled:
<link0>index.html</link0>
<link1>about.html</link1>
<link2>portfolio.html</link2>
<link3>links.html</link3>
<link4>contact.html</link4>
In my movie, I have a loop, which upon each revolution a dynamic 'counter' ticks from 0 to 4, then resets etc:
[Code]....
View 3 Replies
Dec 2, 2009
i have xml structure.
<?xml version="1.0" encoding="utf-8"?>
<ul>
<li><a href="http://www.google.com">Google</a></li>
[code]....
View 5 Replies
Jan 18, 2006
I've just started out working with cookies in flash and looked at the poms tutorials [URL]Is there a list of commands that could get the users browser software etc for example?
View 2 Replies
Oct 29, 2006
I have XML data that is loaded into a mulitdimensional array.
I would like to call that information later in my actionscript but it seems that the array has not populated before I want to use it.
I am using the onload() method of the XML object.
I can trace the contents of the array directly after it is loaded with my loop, but later in the code a trace returns "undefined". My array is globally scoped.
View 14 Replies
Nov 9, 2009
I'm not even sure if this is possible, but I'm looking to retrieve a string from an embedded XML file, using a variable as the XML element's name. Here's what my code currently looks like, although it doesn't quite work:
Code:
private final function getAreaTitle(_index:int):String
{
var _element:String = map_XML.mapnode.@title[_index];
[Code]....
I'm not massively familiar with the XML format, so apologies if I've not explained myself very well. As you can hopefully see, I have one XML file containing my map data and another containing my text, such as area titles and locations. What I'm trying to retrieve in the example above is the string with the label "title_training" from the "text_XML" file. Of course, the function should be able to return the title for any area, so I need to find a way of converting "_element" in to the right format
View 1 Replies
Dec 18, 2003
is it possible to get data from mysql database and post it to a flash movie dynamically without refreshing browser?
View 6 Replies
Oct 13, 2010
I'm using mx.rpc.http.HTTPService to retrieve data from a web service. On the initial call to "loadWsData", HTTPservice accurately retrieves all the data.
However, on any and all subsequent calls HTTPService does not accurately retrieve the data; rather it always retrieves the first data set. I've confirmed that the web service is providing accurate data, both from web browsers and a ruby ws client script.
[Code]...
View 1 Replies
May 26, 2009
i have a datagrid which grows in size depending on the result of a call to my db. The call to the database returns an object with 30+ values for each row. When the number of rows returned exceeds about 80-90 the datagrid renders odd. It displays the first 50-60 rows fine but then it displays blank rows and they even continue to display outside the border of the datagrid.what is happening? Im using mxml webservice to retrieve the data.
<mx:DataGrid dataProvider="{resultsData}" rowCount="{resultsData.length}" allowDragSelection="false"
id = "confRoomLookupResults" width="948"
[code].....
View 3 Replies
Nov 22, 2005
okay, so i have a basic drawing app based on
drawing = false;
data = '';
_global.linethickness = "2";
[code].....
View 2 Replies
Mar 24, 2007
i've been setting up a high score table in my game, and everything is working, but i cant work out how to get variables from the URLLoader.data that im retrievingif i trace loadedScores.data, i get this&name1=matt&score1=323250&name2=1234567890123456.. . and so o've tried passing it to a URLVariables constructor, but it says the string doesnt contain the correct name/variable pairs or something, and loadedScores.data.name1 doesnt work.
View 8 Replies
Jan 1, 2007
how to create a form submission and retreiving data from it. Is it possible to create /link our data to Microsoft Access? whats the difference between get and post ?how will we retrive data using both methods?
View 4 Replies
May 13, 2009
I'm developing an AS3 module where the user interacts with certain hardware. One part is highlighting the hardware's features when the user hovers certain points on it. There's quite a lot of work to be done here (about 6 modules with about 30 highlights each) so I figured I would make it as changeable as possible.
On the stage I've placed all instances of a movieclip that acts as the pointer for the highlights. This movieclip uses a class that animates it upon mouseover/mouseout (hence only two animation functions are required for them all). At the same time I want to display a unique text for every point, and this is where the trouble comes in.
I figured I could attach data with each instance to the class somehow, and then create a new text field upon accessing the class. This is what I came up with:
Code:
// Features
f1.name = "V�xla mellan anv�ndnings- och vilol�ge.";
f2.name = "Display.";
f3.name = "Visa den elektroniska programguiden.";
[code]....
As you can see I tried using the instance property name to attach the data, it failed though (I didn't get a compile error for this but I couldn't retrieve the data in the class).How would you approach this? Do I have to create a variable for each instance's data, then match them (same number etc.)?
View 4 Replies
May 1, 2011
I am creating an application in Flash CS4 that will load data from an XML file and add a movieClip for each item to the stage. Each movie clip contains a NumericStepper component and Input text field.
The user needs to be able to change the fields and update the XML file for the event.CHANGE event.
The XML file needs to be formed like this. I need to be able to navigate between sections and load the data for each one.
<sections>
<section>
<data>
[Code].....
I just need a push in the right direction. I using the Object Oriented Programming methods with a Document class and movieClip classes to control my application. I have been spinning my tires creating several crippled versions.
View 1 Replies
Feb 28, 2011
I need to access successfully loaded XML data from the main document class BUT from objects multiple levels deep. I could hack around this setting properties deep down from the top but it doesn't seem like good practice. Is there a better way?
View 4 Replies
Jul 7, 2011
I want a random image from the xml to be loaded and displayed when gallery is opened, together with gallery thumbs. Then remaining images are to be loaded in the background.
I am having problems pushing and retrieving data from the array that I have set up. The trouble I am have relates to the following code (but I attach a zip with all code and assets).
ActionScript Code:
private function _xmlCompleteHandler(event:LoaderEvent):void {
trace("loading complete");
_slides = [];
[Code].....
View 0 Replies
Sep 26, 2011
I would like to get the content of a shared object (flash cookie) generated by a player, or more precisely by quizzes generated by Articulate Quizmaker.I know where is generated that cookie, I just would like to get the content of a variable inside. But impossible to access it :sI tryed :
var user_so:SharedObject = SharedObject.getLocal("nameOfTheCookie");
if(! user_so.flush()) // sends a boolean, true if the cookie exists
{
[code]....
View 6 Replies
Sep 25, 2007
I want to design a component for retrieving real time data. A service schedule that displays a variety things:
Customer I.D.
Schedule time for service
Service type
Whether that service is delayed or on -time
Service completed
This would be displayed on the website.
Now to my question, would Flash Professional 2004 be the appropraite environment ( application ) to do with
View 2 Replies
Jun 11, 2006
Code:
regKnop.onRelease = function() {
naam = naamMc.user.text;
[code]....
View 1 Replies