ActionScript 2.0 :: POST Array Variable To Webpage?

Sep 15, 2009

I have a webpage that accepts POST variables, I can post normal variables to it from flash like this:

Code:
lv = new LoadVars ();
lv.myvar1= "test1";

[code]........

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Post A Stock Price On A Swf Webpage?

Jan 13, 2012

Looking for help! I need to post a stock price on a swf webpage. The stock symbol SNA.V is only available from yahoo finance (as far as I can tell). It's a Canadian company traded only on TSX. Anyway, I need a way to display the current stock price and have it refresh by itself. Yahoo finance offers a widget, but does not support most international codes. I don't need anything other than the current price in text. I can get flash to retrieve the external text from [URL].. - but, I can't get it to refresh on its own - also, the swf won't access the external source once it's online (just displays a security warning). I'm looking for any ideas to work around this issue.

View 11 Replies

ActionScript 3.0 :: Send Post Data To A Php Page On Webpage?

Feb 8, 2009

I'm making a contact page in as3 and I need some help. How do I send post data to a php page on this web page http://parallels.fm. Basically I have three dynamic text fields and a submit button. If I can send post data from that page to a php page that would be great.

View 1 Replies

Actionscript 3 :: Opening A Webpage From A Flash Sending POST Vars

Dec 11, 2011

I want to open a web page on the same tab when the user clicks a movieclip. I'm using this method:

var url:String = "http://www.google.com";
var request:URLRequest = new URLRequest(url);
try {

[Code]...

how to open it sending POST vars. Is that possible?

View 2 Replies

ActionScript 2.0 :: Variable Names Sent Via POST?

Nov 14, 2009

I'm working on a simple form in AS2 that will send some variables via POST. These are being sent to a CMS in the background. Unfortunately, the CMS mandates that the variables must be named a certain way. They must be named fields[thefieldname] which really messes up the Actionscript involved. Does anyone have any thoughts about how I could escape these [ ] characters so they don't get interpreted wrongly as an Array by actionscript?

Code:
on (release) {
var msg:LoadVars = new LoadVars();

[code]......

View 1 Replies

ActionScript 2.0 :: How To Post Variable Using GetURL

Aug 11, 2007

Why am I not able to pass variable to PHP using getURL?I have this actionscript ...

Code:
var bb_debugcount:String = "4";
getURL("myserverpage.php", "_self", "POST");

[code]....

View 1 Replies

ActionScript 2.0 :: Post Variable To Php Page From Flash

Jul 30, 2008

I am trying to set up a form in a flash movie that will post the users entry to a php page. I then need the php page to re-direct the user to a page to show a result.

I have the following AS in the flash form. It seems to post to the php page but from within the flash movie. Rather than taking them to the php page, as a non-flash form post would.

on (release) {
loadVariablesNum("search.php", 0, "POST");
}

Is there a way I can get the flash form to post to the php page in the same way a non-flash form would post.

Hope this makes sense! Basically, when the user clicks the submit button, I need the browser to load another php page that gets the user's input via post.

View 1 Replies

ActionScript 2.0 :: Pass A Post Variable Into Flash?

Aug 21, 2003

How can I pass a Form post variable into Flash?

View 3 Replies

ActionScript 2.0 :: Post An Array To Server [MX]

Feb 8, 2003

OK, you can use loadVariables and loadVars and a few other commands to post (or get) a variable to a server. What I'm trying to do is post an Array to a server and have the server output a text file of the array.

I have been toying with perl / cgi a bit: gaining some in site on Data Base programming. Would Perl be a decent program for the job of outputting a text file?

View 7 Replies

ActionScript 2.0 :: SendAndLoad W/ Array Via POST In PHP?

Apr 22, 2007

I'm sending an array of 20 items to a PHP script. Here's the sendAndLoad call:

Code:
rankedSubmitBtn.onRelease = rankedSubmitBtn.onReleaseOutside = function():Void
{

[code].....

View 2 Replies

Php :: Send An Actionscript ByteArray As A POST Variable (within Facebook)

Dec 18, 2010

I would like to use Flash to send a ByteArray (of a PNG image) to a php file, in a facebook application. Is there a way to do this by sending the ByteArray as just one POST variable instead of as the entirety of the POST data?

There was a nearly identical question here: How can I send a ByteArray (from Flash) and some form data to php? but the problem is different; instead of smuggling other variables in other parts of the request, the image itself has to be sent as just a variable because Facebook commandeers the post data and puts in its own junk.

If not, can I send the image in some form other than a byteArray?

View 2 Replies

ActionScript 2.0 :: Use LoadVars To Send POST Without Attached Variable Name?

Jan 12, 2009

Let's say I'd like to post some data to a server side script. If my data is

var data:String = "<data><tag1>hi</tag1></data>";

and I'd like to send it with LoadVars, I can do:

var lv:LoadVars = new LoadVars()
lv.data = data;
lv.sendAndLoad("http://thescript/", lv, "POST");

However, this results in the POST looking like this:

data=<data><tag1>hi</tag1></data>

if I want to send it without the variable name (no "data=", just the actual data), how is this possible? In AS3 I can just use the .data property of a URLRequest and it will work, however I can't find a way to do this in AS2.

View 1 Replies

Pass Variable From Flash AS3 To C# Asp.net Webpage?

Mar 4, 2010

In my .fla file i have several buttons. On my hosting webpage i need to know which button was pressed. I was going to use fscommand which works when passing a variable to a regular form, but I cannot use it when passing to a webpage.How do i establish communication between flash and my hosting C#asp.net webpage?

View 1 Replies

Professional :: Sending A Variable To A Webpage?

Apr 24, 2010

I am trying to post the score that the player achieves to a database. I have set a web page "highScores.aspx" which gets a query string variable "webScore" and puts it in a database. This works fine as tested in a browser.
 
The problem I have is getting the correct information into the query string variable. I have:
 
form.loadVariables("http://www.rightjustified.co.uk/highScores.aspx", "GET");
 
where the text in question is located inside "form" (which is a movie clip). I've been following this tutorial [URL] and while not really relevant, it's got me further than anything else. The problem with this tutorial is it relies on the user entering text, whereas I am just displaying out the score in some dynamic text. This means that in output I get the following error:
 
[Code]....
 
I should point out, I do not need to read the text to get the value as it is stored in a variable beforehand, I just display it to the player via some dynamic text, but I'm not sure how to use this to my advantage.

View 1 Replies

ActionScript 3.0 :: How To Pass Array Via Post Request

Jul 31, 2009

When i crate flash mail list I past the variables via an object

Code:
variables.name = formName;
variables.mail = formMail;
etc.

View 2 Replies

ActionScript 2.0 :: Html Post Setting A Flash Variable In The Next Page?

Feb 18, 2007

Is it possible that I go to an html page , (which contains a flash movie) and let the movie start playing in a certain behaviour according to a parameter passed in the URL?

View 3 Replies

ActionScript 3.0 :: MySQL, Php: Post A Variable, And Retrieve Info From Db In Flash?

Aug 2, 2009

Currently I'm setting up a webservice, which includes a login to access the member area.I'm testing all components seperately, and I've ran into a problem. When the user logs in I want flash to retrieve the user_id as a variable, so that I can use this user_id for member related database access. However, I'm having problems with retrieving the user_id.The login is done by inputting the email and password of the user. If these variables match the data in the database the user is send to the member area. I want to get the user_id by posting the email variable to a php file. In the php file the following code is responsible for this:

PHP Code:
$email = mysql_real_escape_string($_POST["email"]);

View 2 Replies

ActionScript 3.0 :: Post An Array To Server And Receive It Back?

Jan 17, 2010

I have some basic experience with using URLRequest to POST variables to my server which works fine.How do I post an array to my server and receive it back?

View 3 Replies

ActionScript 3.0 :: Get A Variable From The Webpage To Pass It Into Flash?

Oct 3, 2011

I want to get a variable from the web-page to pass it into flash, and depending on its value to change the original image of button in flash movie. in html code:

[Code]...
 
and further code processing 'completely different buttons' when the page is loaded, it shows the top layer of the button (which defaults has value "main"), and only when the cursor is over those 'completely different buttons' (unconnected with the code, besides that they are on the same layer) goes into the right state " clients "

View 3 Replies

ActionScript 3.0 :: Creating An Array From A String Send Via POST From A Php Loop?

Oct 13, 2011

I need some help creating an array from a string send via POST from a php loop.The string looks sorta like this: keyword=key1val &

text=text1val & keyword=key2val & text=text2val
(spaces added for readability)

I have a little bit of control over how the string is sent. So I could add numbers to the keys in the string, so they read like this

keyword1=key1val & text1=text1val & keyword2=key2val

basically I want to then end up with an array

noteCards[0] = ["key1val", "text2val"];
noteCards[1] = ["key1val", "text2val"];

View 2 Replies

ActionScript 2.0 :: Internet Variables - Change The Value Of A Variable On A Webpage

Nov 7, 2008

I have been using AS2 for a while now but am having some trouble when it comes to the internet side, I basically would like to be able to change the value of a varible on a web page or something and use this value on a different computer, like an mmorpg but it does not have to be that fast, I have looked around and am having trouble working it out, I know you can use servers and stuff but I don't want to have my computer running 24/7 so someone else can use it.

View 1 Replies

ActionScript 2.0 :: Send Variables To Php Via POST, Which Returns A Different HTTP POST?

Jul 16, 2009

Im building a reservation form, using actionscript and php. I use sendAndLoad to send variables to php via POST, which returns a different HTTP POST response in case of sucess or not.

Is there anyway to "read" HTTP POST responses with actionscript?

View 4 Replies

ActionScript 3.0 :: Eval - Making Dynamic Post Values To Post To A URL

Jul 15, 2010

I am making dynamic post values to post to a URL.

[Code]...

Maybe I am doing this the hard way with eval, is there an easier way, such as passing an array of post variables?

View 3 Replies

Actionscript 3 :: After Shuffling Array - Variable = Array[index] Gives 0, Trace(array[index]) Gives Correct Number

Aug 16, 2011

I think it would be simplest to explain it like this:

[Code]...

View 1 Replies

ActionScript 2.0 :: Calling A Function With An Array Variable As Arguments Is Resetting Array?

Oct 12, 2006

I'm going to post the full code of the two functions, disregard the "fluff" unrelated to the two functions as it is all working flawless, I've tested this HEAVILY and cannot understand why it keeps setting the entire array to undefined!

Code:
// processReplace Function
function processReplace(transferFiles) {
var processArray:Array = transferFiles.slice();

[Code]....

Basically it's supposed to check to see if the file exists and return as true if it does and add it to a replace array, then the replace array is processed into a single string and put into a dialog box through the flash wrapper prompting them to "replace the files or not".

It makes the replace array just fine, it actually even has the right "count" in it but it's setting all the "filenames" to undefined because of the exists = processSearch function.

I even tried to make a new array and run the search just from that one and set the values from the old one and it's still failing.

Is it because of the "break" or can anyone figure it out? Iknow it's hard because you can't use the code

View 1 Replies

ActionScript 2.0 :: Change The Value Of A Variable Listed In An Array Using The Array?

Aug 25, 2008

I want to change the value of a variable listed in an array using the array. for example:

Code:
var theVariable:Number = 15;
var theArray:Array = [theVariable];
now if I try this

Code:

theArray[0] = 20;

I just get an array with 1 value of 20 in it and it no longer references theVariable what i want to do is change the value of theVariable with out removing it from the array but referencing it from the array in a loop or something.

View 5 Replies

Loop Through An Array And Use The Array Value To Reference A Variable?

Sep 25, 2009

I want to loop through an array and use the array value to reference a variable.

The Setup:
(For illustration only. Not actual script)
My MCs:
triangle_mc
square_mc

[Code]....

View 1 Replies

ActionScript 3.0 :: Using An Array Variable In Another Array

Jan 27, 2011

Sorry if the title is a little confusing. Here's what I meant - I have an array and and object. Let me give a visual:

This is my object:

obj["id"] = ["1","2","3"];
obj["name"] = ["na","no","ne"];
my itemArray:
itemArray = ["id","name"];

[Code]....

but it doesn't work. How do I actually use the arr[i] variable in the array? :s

View 1 Replies

ActionScript 3.0 :: Add Array Variable To MC?

Feb 8, 2011

Wanting to add an array to a MC like:

var mc:MovieClip = new MovieClip();
mc.myarray[0] = movieclip1; // some mc name
mc.myarray[1] = movieclip2; // or push it

[code]....

View 2 Replies

ActionScript 2.0 :: Variable In Array, XML?

Oct 22, 2011

I basically need to load information from an XML. Then depending on which button is clicked(apartment in a building) that specific info from the xml needs to load in a txt field.

Here is my actionscript and xml code. I'm stuck on how to assign " i " to each apartment in the building.

[Code]...

View 1 Replies







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