ActionScript 3.0 :: Send And Receive Variables To And From A PHP File?

Nov 14, 2009

I'm trying to create a file that shows data from a database depending on an id number the user inputs in Flash. I am having trouble sending to PHP the id so it sends back the appropriate data from the db.

This is the AS3 code that tries to send the value of the idNumber to PHP[code]...

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Send And Receive Variables

Jan 25, 2008

I know you can send all the variables using: url...Is there a way to do this but only send the variables I want to? Say I only wanted to send "user" and "pass" but not "content".

View 4 Replies

ActionScript 3.0 :: Send And Receive Variables With HTTPS?

Feb 13, 2009

I am using as3 for some time now, but i have never tried to communicate with a server. I have to send some values to a server and also receive some values using HTTPS.I found some stuff about HTTP, i havn't tried them yet. I hope this is not too difficult because it has to be figured out by Monday.

View 0 Replies

ActionScript 2.0 :: Way To Send Variables To Php File And Process Them Inside Flash File

Feb 14, 2005

Im pretty new with the flash -> php -> mysql thing .. And I have made a script that sends some variables (that a user inserts in some input forms) with some var names, and then php handles it and insert it into my MySQL database its kinda ugly that a page pops up and opens the php page.So I was wonderin' if there is some way to send the variables to the php file and process them inside the flash file. without openin' some fancy browser window ?

View 3 Replies

ActionScript 2.0 :: Send Variables To A Php File?

Jun 10, 2005

I've searched everywhere, but can't find one thread/result that suits my situation.I'm trying to post data into a database, through php. I don't want to reload the page, so I want this to happen through Flash. I thought about using the LoadVars() class, but it just simply isn't working.How would I about doing this? Say I have three variables, blah1, blah2, and blah3, all of which are strings. How do I send these variables to a php page with the POST method?

View 4 Replies

ActionScript 3.0 :: Send And Receive From PHP

May 26, 2009

I would like to send information to a php script that queries a database.

eg

send two strings clientName and userName to php

PHP queries the mysql database and returns the result.

How would I us URLVariables or URLLoader? or is it something entirely different.

View 10 Replies

Php :: Send And Receive UDP From Webpage?

Mar 4, 2012

im newbie in send end recive UDP things..i need to send (maybe receive) some data from PHP web page to local software.this software can recive and send data via UDP 1987 port.is there a way to do? javascript activeX or flash library or somethingSoftware= VOIP SoftPhonePHP Web Page = CRMall I wanted was actually make a button to call and if possible recive length of the call

View 1 Replies

ActionScript 2.0 :: Can Php File That Send Variables To Flash WITHOUT Swf

Apr 11, 2005

Can i put ACTIONSCRIPT inside a xml file and make it work inside a swf?Since is not basic, where can i learn more about xml processing instructions?Other thing....Can a php file that send variables to flash WITHOUT the swf ask for it?

View 1 Replies

Actionscript 3 - Send And Receive Data Between Flash & .Net?

Jan 6, 2012

Calling ActionScript 3 function from C#

i have a project which is is a desktop application in .Net, and from .Net 3 String value is Passed to Flash. My question is how to receive data coming from the desktop application in flash as3? because here i don't have any URL to load data.

View 1 Replies

ActionScript 2.0 :: Send And Receive Data To / From Flash And PHP

Mar 16, 2006

I'm trying to send and receive data to/from flash and php, but I can't receive any data from php. I'm running this locally and the path is correct.

From PHP
Code:
<?php
require( "../weeklybread.php" );
$query = mysql_query( "SELECT * FROM $table" );
while($myrow = mysql_fetch_array( $query )) {
$message = ($myrow['message']);
[Code] .....

myVars.sendAndLoad("[URL]", myVars_received, "POST");
So I can't see anything inside the text field, I can't even trace it.. it says undefined in 20px caps.

View 1 Replies

Actionscript :: Load Variables From A File And Send It To A Dynamic Text Box?

Jun 17, 2011

I'm pretty inexperienced with actionscript, and I'm having the hardest time trying to figure out how to load variables from a file and send it to a dynamic text box. The content of an external file, "varload.txt", is "name1=John". Here is actionscript of my flash file:

[Code]...

View 1 Replies

ActionScript 2.0 :: Collect Dynamic Variables In Flash To Send To .php File?

Jun 27, 2003

Let a qualified-user place a dot on a country map and this dot will be shown on the map. When other users come by they see dot's and those dot's trigger a image.

1 Create a map, duh

2 Use the mouse to get the coordinates (_x and _y position) onRelease will be the selected coordinates.

3 Create a preview-scene were the qualified user sees the placement of his dot.

4 If oke, a image upload scene is triggered (the selected _x and _y coordinates are hidden)

5 The qualified user selects a image on his computer.

6 Again a preview scene, now with the dot on the map and the selected image.

7 If oke the user sends the coordinates and image to the server (i will use php-files to upload the info and a mysql-db to store the info)

I am stuck with step 2. In the attach file you can see what i have so fare.The trace messages are the data i want to send to a php script. And think i must create an array in flash something like:

Code:
coords = new array();
for (i=0;i<=v;i++)[code]...

You gotta see the attach .fla to understand this. I have the values collected in "controller" movieClip.

View 4 Replies

ActionScript 3.0 :: Send Off Multiple Variables In An Object (from A Class) To The FLA File?

Feb 13, 2009

I have the livedocs wide open and I still can't figure out how to send off multiple variables in an object (from a class) to the FLA file...[URL] The setup: I have a class that extends EventDispatcher. I created an Object called _pass, public var _pass:Object;. In my last function (everything is cool up until now), I have four variables that need to be passed to the main fla. Let's say they're param1, param2, param3, param4.

It was explained to me that I could use the public var _pass:Object; by first creating an instance of the object like so, _pass = { param1, param2, param3, param4 }; (each param is available in the function). Having setup an object instance, I could then dispatch the object to read from within my fla: dispatchEvent(new Event(Event.COMPLETE));.

But I get these errors:

1084: Syntax error: expecting colon before comma.
1083: Syntax error: rightbrace is unexpected.

As the livedocs show, you can use an associative array (with braces and a colon), but I don't need that. I just need to pass my variables that are pre-made to the FLA.

View 2 Replies

ActionScript 1/2 :: Send And Receive XML Nodes From The Socket Server?

Jun 15, 2009

Ok so I can send and receive XML nodes from the socket server I need to know how to take the nodes and the values within them.... like for example I want the X Y positions from the node sent to me from the server "<playerpos name="javageek1212" X="34" Y="23" />" Basically I want the values from within that node ok?

View 5 Replies

Flex :: Console - Send / Receive Same Window In TextArea

Apr 21, 2010

Any example of a telnet/chat or other console like FLEX application where you can use the same TextArea as input/ouput area. I've been trying to modify the app at: [URL] but so far, computer says no. All the implementations I've seen use a combination of TextInput and TextArea.

The challenge is that we'll be using this app to telnet into some old routers and we'll need to do a fair amount of copy/pasting. Based on what I've seen, it seems that I would need to point the mouse into the TextInput in order to be able to right click and paste, which is not very sleak.....

View 1 Replies

Flash :: Sockets - XMLSocket Can Receive Data But Not Send

Dec 20, 2010

I am attempting to connect to a python twisted socket server with Flash using XMLSocket. The connect works fine, and so does the receive. However I can't send data to the server. Is there a specific format I should be using? The reason I ask is because I couldn't read any data with the XMLSocket until the data was in the form "something", that is, the data string had to be valid xml followed by the null character. Is there a trick to sending data?

I don't think this a cross site security problem, because if it was, I believe I wouldn't be able to connect or receive. I am able to connect to the server using telnet and a java client without issues. EDIT: I figured it out, the problem was my server needed to have the data sent to it end with"

View 1 Replies

ActionScript 3.0 :: Cannot Receive Or Send Data When Online - Security?

Jun 24, 2010

I have made a game that sends and recevies data from an online leaderboard. It uses PHP and mySQL, and all works fine when running the .swf off my computer. The problem is, when the game is uploaded and running online, it fails to both receive and send the data to the leaderboard. I don't know why! When I first ran the game offline, a security box appeared that told me I had to allow it to access the server. So, I'm thinking it might be a security problem. Is there a similar security setting that I have to enable on the server somewhere? Or some code I can put to the game to override it? Note that everything is on the same server at the moment so I dont need any of that CrossDomain stuff, I think.

View 7 Replies

ActionScript 3.0 :: Send And Receive Image In Flash Form Javascript?

Sep 20, 2011

I want to resize a image using flash resizer.java script browse and upload a image and send to flash resizer and flash resizer resize the image and send back to javascript.Is it possible to send and receive image from javascript and if yes then please let me know what I need to do on flash end and how i can make javascript accessible to my flash code.do i need to load my full sourse code or javascript done there job with SWF only. 

View 2 Replies

Flex :: Adobe - Send/receive Data From/to Media Server

Oct 27, 2009

i want to make a simple chat with flex as3 and red5 media server

my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)

i just don't know how to to send and receive and how to receive from the server

View 2 Replies

ActionScript 3.0 :: Send Post Data And Receive Response From Https Url?

Jan 21, 2011

i am using flash cs5 with AS3 along with PHP 5, i am calling a https page and sending post data to it and retreiving the response, its working fine inside action script (FLASH CS5 IDE) but when i am embedded flash in html to use it from my web server (WAMP) then it is unable to send and receive data from https url.

i have turned on the mod_ssl module from php.ini for both php and apache.

but still there is no gain. can you advice me any method to control this thing with in action script 3, (i tried php curl but not useful) or the right way to do it, i want to post and receive data from https url from action script or php.

View 1 Replies

Flex :: Using NetConnection And URLStream To Send/receive Data At High Frequency

Jun 17, 2009

I'm writing a Comet-like app using Flex on the client and my own hand-written server.

I need to be able to send short bursts of data from the client at quite a high frequency (e.g. of the order of 10ms between sends).

I also need the server to push short bursts of data at a similarly high frequency.

I'm using NetConnection.call() to send the data to the server, and URLStream (with chunked encoding) to push the data from the server to the client.

What I've found is that the data isn't being sent/received as soon as it's available. For example, in IE, it seems the data is sent every 200ms rather than as soon as NetConnection.call() is called. Similarly, URLStream isn't making the data available as soon as the server is sending it.

Judging by the difference in behaviour between the browsers, it seems as though the Flash Player (version 10) is relying on the host browser to do all the comms. Can anyone confirm this? Update: This is very likely as only the host browser would know about the proxy settings that might be set.

I've tried using the Socket class and there's no problem with speed there: it works perfectly. However, I'd like to be able to use HTTP-based (port 80) connections so that my app can run in heavily fire-walled environments (I tried using a Socket over port 80, but that has its problems).

Incidentally, all development/testing has been done on an internal LAN, so bandwidth/latency is not an issue.

Update: The data being sent/received is in small packets and doesn't need to be in any particular format. For example, I might need to send a short array of Numbers, and this could either be encoded in AMF (e.g. via NetConnection.call()) or could be put into GET parameters (e.g. using sendToURL()). The main point of my question is really to see whether anyone else has experienced the same problem in calling NetConnection/URLStream frequently, and whether there is a workaround (it's also possible that the fault lies with my server code of course, rather than Flash).

View 2 Replies

ActionScript 2.0 :: Send List Of Variables From Php To Flash And Send Back Random Selection To Php?

Nov 16, 2010

I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.

I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.

View 2 Replies

ActionScript 2.0 :: Send List Of Variables From Php To Flash And Send Back A Random Selection To Php?

Nov 16, 2010

I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.

View 6 Replies

Media Server :: Receive Stream.send Commands On Server-side?

Nov 12, 2010

I am recording a video and while recording I issue some NetStream.send("doSomething", params) commands from client side. When I am playing back this video I receive the doSomething events on client side. No problems so far.Can I receive those events on server side? I want to handle those events on server side. Not client side.

View 2 Replies

Data Integration :: Send And Receive Data From Mysql?

Jun 17, 2007

I would like flash to send and receive data from mysql.

To send data I would like to create 5 input fields, and then use a submit button.

Then to retrieve the data I would like to use the data grid or a dynamic text field.

View 6 Replies

ActionScript 3.0 :: Code The Variable In The Html-file And Receive It In The As-file?

Sep 19, 2010

I have trouble passing a variable from HTML to Flash.I use swf-object2.2.how to code the variable in the html-file and how to receive it in the as-file?Its a simple shopId = 110

View 3 Replies

Receive An Image File Through Flex's HttpService?

Jun 30, 2011

I've written this piece of code to use a PHP script to send data to Flex.[code]...

If there is no way to use HttpService for this end (i.e. send image files), how can one do it then? I've seen it in an app I worked on so I'm positive it can be done.

View 2 Replies

Flash :: Asp.net Mvc3 Receive Mp3 File Sent By (application / X-amf)?

Jan 16, 2012

when I use the Request.InputStream in MVC3 action method to save the file sent by action script I got a corrupted file. When I used firebug to trace the request I realized that the Content-type is "application/x-amf" and has the file name at the end of the stream. knowing that I can't change the action script I need a way to save the file correctly to disk.

View 2 Replies

ActionScript 2.0 :: Import Some Variables From A Txt File And Treat Them Like Normal Variables In Fla File?

Oct 27, 2009

How can I import some variables from a txt file and treat them like normal variables in fla file? something like in txt file

Code:

&variable1=2&
&variable2=8&

[code]...

View 2 Replies

ActionScript 3.0 :: Call A Server Based File, And About 50% Of The Time Receive?

Oct 26, 2010

In my application, I need to call a server based file, and about 50% of the time receive the following error.

[Code]...

View 2 Replies







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