Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Send("flash.php", "POST")



l = new LoadVars();
l.user = login_name;
l.company = login_company;
l.email = login_email;
l.phone = login_phone;
l.send("flash.php", "POST");


Works great, but it opens the "flash.php" window.
I want the php/sql submission to happen out of view.

Is there a way to invoke the "flash.php" with out having it launch?

I'm going to put a javascript close.window command, but that seems cheesy



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 06-15-2004, 06:27 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Send And Post In Flash Between 2 Swf;s
I'm sander working on a deaf page for the deaf community, and i like flash alot, but i'm still having troubel with sending variables,

what is supos to happen :

check : http://www.globaldc.nl/flash

--> the first gap in the bridge will load another swf ( not in a movie clip but in level 4

now if you trigger in that movie clip the woman the paper and the rose the stone at the back of the window will drop,
i want to communicatie with the main flash file so that the gap in the bridge is filled with a solid rock, ill have the movie clip made , but how to trigger from a level 4 loaded *.swf ?

hope someone could help me.
tnx

Using POST To Send Data From Flash To ASP
I cannot seem to get POST to work in a LoadVars.send method.

"GET" works fine, but I have to use POST for security.

I am sending the variables to an ASP script. When I try to retrieve the POST using request.form I get NOTHING. If I change the LoadVars method to "GET", everything works fine.

WTF!!!!!!!!!!!!!!!!!!

///actionscript:

doSave_data = new LoadVars();
doSave_data.message = "Hello From Flash";
doSave_data.send("myfile.asp", "_new", "GET");


///myfile.asp:
myMessage = request.form("message")
// does not work!

myMessage = request.form
// does not work!

myMessage = request
// does not work!

Can You Not Send GET,POST Or SESSION Variables To Flash?
Is it not possible to send GET, POST, or SESSION variables to flash ??

Because I have tried all three methods and each time I get a blank text box.

Can anyone confirm for me that reading these variables is not possible ???

please I need to know !!!

thanx

Send Post Data From Flash To Php/mySQL And Display Results In Flash
Could someone explain to me simply how to connect flash with my server and vice versa?
My flash movie takes a var from the URL string:
<param name="movie" value="product_info.swf?products_id=918">
and
<embed src="product_info.swf?products_id=918"...>
Getting the value of products_id is easy but I want to send the var products_id to a php page, do some mySQL on it and return the results to my flash movie. I'm using loadVariables (or sendAndLoad) but nothing comes back. I know the scripts are ok as i've tried to send the vars by getURL("page.php","_blank","POST") and it works but loadVars() doesn't. Thanks in advance!

Send Using Post
how do i go about sending a variable "item" to this php file


Code:
System.security.allowDomain("http://localhost/");
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(selectedFile:FileReference):Void {
selectedFile.upload("upload.php");
};

Send Using POST
I'm putting a password that links from a flashsite to a html secure site using username and password fields,
the problem is that the "send to POST" in get url of the password doesnt work. Insteag uses GET.
How may I solve this problem to link both pages.

thanx in advanced

Send Variables Using POST
I'm trying to send variables to a perl script.

The script works fine, as I can send variables to it using the following line...

PHP Code:



on(release) {

    getURL("http://www.mySite.com/cgi-bin/myScript.pl?var1=content1&var2=content2", "_blank");
}




But, how do I attach variables if I want to use POST?

POST Variables-Send The Php
Hi,

Ive got my mailing list script all set up, it came with a front end , but i want to allow the user to sign up by filling in a form in flash. I have been trying to send the variables to it but i have been unsuccessful. If anyone knows please let me know.

Thanks
-Mike

Send Using Post Not Working When _blank Is Used?
When I send my variables from a flash movie using "get" to an ASP page all is fine, even when I use "_blank" my variables still load. However when I use "Post" they don't load when I use "_blank", they only load when I send them to the same page , but this is no good to me becuase it reloads the Flash movie.

Any ideas?????????

//send Using Post. From Loaded Movieclip
I hav a main.swf which loads an ext .swf called supply.swf,
supply has a form on it w/ a submit button using send variable using post to the correct .asp url. although when i click submit nothing happens. I have radio buttons w/ values of 0&1 that are making a variable in _root, and text fields w/ jus theyre variable names. does this pose a problem. how do I submit the data from _root, I know the variables are being set because I made little dynamic test boxes that display the variable being set. could someone please help me out hte url is
http://www.sdginteractive.com/fh02 go to the suppplier page and you can see it is a rather large form. like i said i set variables 2 ways input boxes and setting _root.variables.
then SUBMIT using post to the url specified.

Forcing POST To Send Specified Vars?
There are several http calls that my application makes that requires authorization data to be passed back to the server. This data is located in an authorization object. i currently have a string that appends to the http request but i'd like to know if there is a way to tell POST to send only certain variables, i'd just like to avoid having the auth info passed through as a url string.

Send Data Via Post To A Php File
ok this is the error

**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 5: The property being referenced does not have the static attribute. LoadVars.send(_root.address, post); Total ActionScript Errors: 1 Reported Errors: 1

this is the code

stop();
function mysend() {
post = _root.nickname + " : " + this._parent.talk;
loadVariables(sendaddress,_root.chattl);
LoadVars.send(_root.address, post);
this._parent.talk = "";
}


its job
send the var _root.post to file chat.php using the post mehtod

please help

Encrypting POST Data To Send To PHP
Hey,

I was wondering if there was an effective way, in Actionscript 3.0, to encrypt a string or int so it can be semi-safely POSTed to a PHP file, where it will be decrypted.

I was thinking something along the lines of this:
1. POST the plain text of the String or int
2. Also, POST the encrypted version, probably encrypted with a one-way hash algorithm (MD5, SHA1, etc.).

In the PHP, I would test whether the plain text (after it is encrypted with the same algorithm as in the Flash) is equal to the encrypted value that was POSTed.

(Is/Are) there (an) existing librar(y/ies) in Actionscript for MD5, SHA1, base64, or other changes of base? If so, how can I implement them

-mecablaze

Using LoadVars To Send Data By POST
Hi all,

For some frustrating reasons, Flash MX is refusing to send data to my PHP page using the POST method. Here's the code I use:


Code:
dataLoader.send("http://localhost/coe/register.php", "_self", "POST");
However, it always got send as a GET. I have no idea why, and the strangest thing of all is that sendng by POST was working only a couple of days ago! I didnt touch the Flash file save for the PHP script.

Any ideas?

LoadVars.send Doesn't Want To Use POST
Subject says it all... I have a loadvars object, that should send some vars to a a PHP script via POST, but even when specified that it should use post, it uses get.... Why?

Possible To Send POST Data To PHP File Without Lo
Howdy.

I know I'm posting up a storm tonight.

I was wondering if it were possible to have a flash movie send post data to a php file without the php file loading in the movie window. i'm sending the post via the LoadVars() function.

The only thing i can think of is to send load the PHP file and send the post data into a small hidden IFRAME within the same html doc as the flash movie; or if need be to have it open a small sized window popup.

I'm not sure how to or if you can do with with LoadVars() though. Does anyone know of any way I could work through this?

Thanks!

Redirect W/ Send Varibles Throuhg Post?
I bassicly just need the browser to redirect to sendscore_ball.php and send the variable _root.score with it throught the comunication method POST when you click a button. could someone help me?! I've looked all over for a sallution!

Using The Post Method To Send Vars To Php Actually Sends Get ?
Ok i have a site where people can send large amounts of text through to a mysql db from flash it goes from flash to php to mysql. here is the flash code

Code:
var senderLoad = new LoadVars();
sender.onRelease = function()
{

senderLoad.theName = testiname.text;
senderLoad.theEmail = testiloc.text;
senderLoad.theMessage = testimsg.text;
senderLoad.objtype = "testimonial";
trace("Sending... " + senderLoad.theName + " " + senderLoad.theEmail);
senderLoad.send("sendflash.php",senderLoad,"POST");



}
Now this all goes to the sendflash.php which gets the variables using the $var=$_GET['theName']; etc. Yes that is Get but in my code i have POST for some reson it is not sent POST ?? but get i can see it in my browser after i hit the sender button it makes all the vars go into the url. Why dose it do this ? as you all already know sending large amounts of text through the get method is not a very good way to go about things anyone know why this code works this way ? I have tried putting get into the actionscript and i think if memory serves it didnt post anything ??
thanks in advance

oh if it helps the original tutorial where i got this code was from gotoandlearn it had a senderLoad.sendAndLoad("sendflash.php",receiveLoad ); this dose not even pass the variables for some reason i even tried all the original code with the original php file he supplied in the tutorial and it just sent blanks to php. It was a send email form so i made it work the only way i could get it to and made it into a insert message to db form.

URLLoader Using POST Fails To Send Variables
hopefully this is simple and I'm just missing something obvious. I'm trying to hit a php page using POST data and load the response. what actually happens is the php page is hit using POST but without data. if I navigateToURL with the URLRequest instead of URLLoader.load, the data is sent.


Code:
import flash.events.*;
import flash.net.*;

some_button.addEventListener( MouseEvent.CLICK, _handle_click);

function _handle_click( in_mouse_event:MouseEvent):void {

var url_variables:URLVariables = new URLVariables();
url_variables.a = 1;
url_variables.b = 2;

var url_request:URLRequest = new URLRequest( "index.php");
url_request.method = URLRequestMethod.POST;
url_request.data = url_variables;

var url_loader:URLLoader = new URLLoader();
url_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
url_loader.addEventListener( Event.COMPLETE, _handle_complete);
url_loader.addEventListener( IOErrorEvent.IO_ERROR, _handle_io_error);
url_loader.load( url_request);
//navigateToURL( url_request);
}

function _handle_complete( in_event:Event):void {
trace( "complete");
}
function _handle_io_error( in_event:IOErrorEvent):void {
trace( "io error");
}
thank you for any help

Advanced Dynamic Send / Post Question...
Ok...

Here is the site in question...

http://studioauditions.com

The end goal will be to have the buy now button dynamically take the the user to the actual hard link of the product page...

which would be something like

http://www.frontendaudio.com/ADK_A_51_D ... p/1007.htm




I currently am having the client attach these hard links into the id3 tag artist field and calling on it that way...

BUT, the actual dynamic text field in the lower right corner contains the name of the product proper.

If you type that name into the http://frontendaudio.com search field it works perfectly...

is there a way to do this dynamically with flash / php / asp etc..

basically send and load the text string into a page as a variable to load into a search field and then execute that search....

Send Data Usig POST Method But In NON Unicode
system.useCodepage is for text files
I want something like this sending data using POST.
I know how to do in HTML form, but how does it look in FLASH?

Can Anybody Tell Me How To Make This Forum To Send Email When Someone Reply To My Post?
Hi,

I need to be informed when someone reply to my posts anybody know how?

thanks

Send Variable (POST) On Popup Window (javascript)
I want to send variable from my flash file...

usually i used this script:

on (release) {
getURL ("request.php", "_blank", "POST");
}

but, now i want to remove MENU, ICON, ADDRESS, etc on my explorer...
so i try to use this script:

on (release) {
getURL ("javascript:openNewWindow('request.php','popup',' width=450,height=335,toolbar=no,scrollbars=no');") ;
}

and this on my html file:

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>

but, i don't know how/where i can put "POST" method and "TARGET"...
as i know getURL on flash have 3: URL, TARGET, METHOD

on (release) {
getURL ("request.php", "_blank", "POST");
}

anybody can help??? or have another way to do this???

thx b4

My Post Clip Doesn't Grab Latest Post Until Refresh Or Next Post
ok, i have a movie that has a posting feature

problem is, when i submit a post, SOMETIMES the clip that handles the posting reads in the text before it has been written to the text file, resulting in the post not being shown when the text is reloaded. it will show if the browser is refreshed, or a new post is submitted afterwards

basically, i'm just loading a text file at the start of the clip and if a post is submitted, i go back and load the text file again

hope that makes sense....any ideas?

Specific Size Window With "Paypal Send Variables Using POST"
I know that through Javascript you can control a popup window using javascript.

But I need to control a window, with or without javascript, but using the POST method such as:

code:
_lv["send"]("https://www.paypal.com/cgi-bin/webscr
return="+return_str,"_BLANK", "POST");


The reason being is that i have fairly complicated variables to send to paypal, and from the looks of it, I cannot use variables by using getURL like below:

code:
getURL("javascript:javascript:
openNewWindow
('https://www.paypal.com/cart/add=1&business=order@myaccount.co.uk
&item_name=anyname&amount=21.99
&return=http://www.mywebsite.co.uk&cancel_return=http://www.paypal.com','paypal',
'width=600,height=400,scrollbars,location,resizabl e,status');void(0);");



Unless that is, someone knows different, if so how would I substitute a fixed price (for example) with a price that is currently a variable in the flash movie.

Send("flash.php", "POST")
l = new LoadVars();
l.user = login_name;
l.company = login_company;
l.email = login_email;
l.phone = login_phone;
l.send("flash.php", "POST");


Works great, but it opens the "flash.php" window.
I want the php/sql submission to happen out of view.

Is there a way to invoke the "flash.php" with out having it launch?

I'm going to put a javascript close.window command, but that seems cheesy

L.send("flash.php", "POST");
l = new LoadVars();
l.user = login_name;
l.company = login_company;
l.email = login_email;
l.phone = login_phone;
l.send("flash.php", "POST");


Works great, but it opens the "flash.php" window.
I want the php/sql submission to happen out of view.

Is there a way to invoke the "flash.php" with out having it launch?

I'm going to put a javascript close.window command, but that seems cheesy

Post Or Send To A ".mdb" File
Ok I hope you experts can help me

I want to send user info (only five fields of txt) to a database file.
I have created "instance names" and Var names for the five fields of info.
For the sake of an arguement... in my flash file lets call them

Instance: t1,t2,t3,t4,t5
Var: t1_2,t2_2,t3_2,t4_2,t5_2

I have an asp data base server (my host does that is).
I am using Flash MX
I have MS Acess application.
I have created a database file on the server and on the local website folder.

Please help... I begining to think this is not possible or that I am just asking in the wrong way!

Thanks in advance!
Bryant

Send Real Fax/send Pdf In Mail, Using Flash
Hi, I am a moderate flash designer and mostly make animations. I don't work with actionscript too much so I really need your guys' help. I need 2 things.

First: I am making an internet fax demo where I want someone to enter their email in a simple text box, click send, and it will email a pdf document to the email address (a sample fax).

Second: In the same demo, there will be another text box, where a user would enter a fax number, hit send, and it will fax them the pdf (or the stuff in the pdf in any other format) to their fax machine.

is this doable using flash? I don't even mind if i have to use a php or a xml file. but in that case, i also want to know what to write in the actionscript to call those files.

I would really appreciate if someone could please help me out with this. I had been searching all night, i found some actionscripts but have no clue what they mean.

Send "net Send" Messages By Clicking A Flash Button
Is it possible to send "net send" messages by clicking a flash button?
I want to send a message to another computer on the intranet to register that a certain button has been clicked.

I think the easiest way to do this is to create a batch file and run that on mouse release of the button, does that mean i need to have the flash file as an exe? Or is there an easier way to net send via a flash button.

Thanks.
MJ

Send "net Send" Messages By Clicking A Flash Button
Is it possible to send "net send" messages by clicking a flash button?
I want to send a message to another computer on the intranet to register that a certain button has been clicked.

I think the easiest way to do this is to create a batch file and run that on mouse release of the button, does that mean i need to have the flash file as an exe? Or is there an easier way to net send via a flash button.

Thanks.
MJ

Usig Buttons To: Send Me An E-mail / Send Data From A Feedback Form?
As the title may suggest, i need some way of making an email button, and also feedback form buttons; both submit and reset. i thought this would be fairly standard stuff but didnt get any answers in the general help forum... its all for the last page of my site at www.geocities.com/jamesmbrannan if you would like to take a look

thx for any help/ advice
lev

How To Send To Send An Action Between Browser Frames
my doubt may look silly. but pls help me.

I have a left frame with a swf movie containing buttons. And when when I click the buttons I want the movie in the right frame to go and play a particular frame.

how do I do this?

Flash In Php Post ?
hi all,

is there a way of getting a flash object to work in a php post ? i want to put some free lessons on how to do a particular form of juggling/dance/martial art onto a forum im making and just cant seem to find anyone that can even tell me wether its possible or not.

Many Thanks

GS

Flash Get Post From Php
Hi guys I come up with something I need to know how to get and post data from php and php from mySQL. Is there any tutorial or references from where I can learn flash php integration. thnx guys help will be appreciated.

Using Php's GET And POST With Flash?
I've read on php, I have some basic idea on how to use it, but I need two things.

1 - How do I go to a php file with a GET or POST in it? As in, myfile.php?do=Hi

Would I do a simple "getURL("myfile.php?do=Hi","_blank");" ? Or do I do something completely different?

2 - Once I get to myfile.php?do=Hi, how do I made the "do" variable inside my .swf? I want my flash file to be able to use "Hi" in order to show something.


Thanks for any help!

Post-it On Flash
Some one can help me with this?
I nedd a note area... the user put de note on any place of scene e type our
comment...
After this the user press a button named save...

All information is saved on MySQL database using PHP including note
position...

Anyone can send me a link with some informations about can i do this?

How To Post A Flash Sig...
Hi all, I just wanted to paste a flash swf movie as a sig and I was wondering if anyone can supply me the html. Akin to <a href....> <img...>. Thanks in advance.

How Do I Post A Flash
How do I post a flash on an invisionfree forum?

How To Post A Flash Sig...
Hi all, I just wanted to paste a flash swf movie as a sig and I was wondering if anyone can supply me the html. Akin to <a href....> <img...>. Thanks in advance.

POST To Flash
Hey guys I am trying to pass a variable from a PHP script to a flash file running actionscript 2. HELP!!! Can loadvars() work for this? Does anyone have any examples or resources I could check out? Thanks

Post From Flash To .asp ?
Hi guys...

I have an assignment in school, where i'm to create a site that gives players an opportunity to contribute to a new add-on for World of Warcraft.

On the form i want to have a pop-up with a map (flash) where you can choose location.
See form

The location you choose should then be posted to the .asp page (form.asp) in the location textfield, so that when you submit, the location you chose on the flash map is sent along with the other information.


- Is this possible?? And if so, how do i post the info from Flash to the textfield


Any help will be greatly appreciated

Flash/PHP POST Vs GET In Netscape
I'm having a problem when calling external PHP scripts in Flash using load variables when viewed through Netscape...
When I use POST as the method, none of the variables are passed to or from the script...
When I use GET as the method, the script seems to be called twice and the output is doubled...
If I use neither, and attach the variables to the end of the address in a query string, the output is quadrupled...
In IE, POST works fine, but the results from GET or a query string are the same as above.
Any ideas?

POST From Flash In Netscape Vs. IE
Greetings -

I am using a function in my Flash application to post a variable value to an .asp page, in order to call up that page in a new window with information, pertaining to the submitted variable value. Works just fine in IE. However, in Netscape, the variable posted by Flash does not appear to be received by the .asp page.

Anyone seen similar problems and/or know of a solution? Thanks much!

Post Ups And Forums In Flash MX
can a user post questions on a flash web site? I work in a music store and I'm trying to see if there is a way where users can post up what they need up on the web stite... like if they need a bass player or drummer and what not.. is that possible in flash? or do I have to make a forum like this one in another software?

and what software did Flash kit use to make this forum?

thanks

3ars

How Do I Post A Flash Site? Please Help.
I made this site with Flash 5, and want to see it online but dont know how to post it. I'm not sure if I'm creating my sites correctly and would like to view them online as everyone else when they surf the web. I made up this company Vital Graffix...(it doesn't really exist) the zip file attached is a site I made for the company. Maybe someone knows where I could post it, and how. I checked out some sites that offer free hosting, but I have no clue how to use their FTP programs, I'm stuck. I'd like to post my site for free just so I can test it, and get a real look at it, maybee some constructive critism as well. Much thanks to anyone who can help me out with some info.

Sending POST To Flash From PhP... Just Look.
I know how to send a flash variable to a php file using a POST cmd... Now, let's assume that I want to make exactly the opposite.

I want somekind of "Please wait" screen to appear in front of the buttons in the flash, so that the user cannot send another sql-request to the server until the current one is finished.

The buttons are all in the flash portion of the site. If you press a button, it posts the variables to the Php file in the frameset.

When the SWF sends the variables to the PHP, movieclip plays (a please wait screen).

The please wait remains until the PHP loads a
code that I will add at the end of the page.

When it loads, it sends (Post or Get, preferably, and if possible.) to the flash telling it to stop playing the movieclip.

The user will then be able to make a new selection.

Possible ?

Help Me To Post The Values From Flash To PHP
Hi All,

I have a problem with the getURL method. wat happens is wen I say getURL("aaa.php","_blank","GET"); on a click of button, the values retriewed are added to the URL and goes like a lengthy URL which I dont want.

Can anyone please help me as to how i can send the values without getting them with the URL.

I hope someone can help me out from this

regards
Chikku

How Do I Post Values From Flash To PHP
Hi,

I would really be thankful if anyone could put me out of this problem
I have a multipage customization for a product and from each page the values are taken and assinged to one var at the end of the file that is on the order button. so I need to pass these values from flash file to a php file.

i have used the get url method in the following way

getURL ( callurl, "POST");

but wat happens is all the valeus taken as query strings are added to the URL and becoz of that anyone can change the values there and refresh it which might lead to big problems like change of the price etc.

can Anyone help me out with this PLZZZZZZZZZZZZZZZ

Chikku

Copyright © 2005-08 www.BigResource.com, All rights reserved