ActionScript 2.0 :: Post Vars To Page In New Window?
Apr 21, 2008
I am just trying to send some variables from flash to an asp page. Using the below method the variables are sent to the page.
sendText.loadVariables("http://archive.mysite.com/livefeed/pages/login.asp", "POST");
My issue is that I want the page to open in a new window and then have the post method send the vars.
Presently it does not open a new window.
View 2 Replies
Similar Posts:
Jul 31, 2011
I have developed a facebook application in which I am sending data from Flash to Php.Its actually a game based on Flash 8 and at the end I send data by using
loadVarsNum()
using POST method to flash but the problem is this data can be easily tampered so I want know that how can I secure my data from theft or any hack
View 2 Replies
Apr 23, 2008
I have developed a facebook application in which I am sending data from Flash to Php.Its actually a game based on Flash 8 and at the end I send data by using
loadVarsNum()
using POST method to flash but the problem is this data can be easily tampered so I want know that how can I secure my data from theft or any hack.
View 1 Replies
Nov 30, 2011
I created a Flash application that reads POST data from a form. A user clicks the button, and the data gets posted to the flash app in a new window (_blank). Now takes the data and then spins a wheel to give users a prize. If they don't win a message pops up letting them know they didn't win. If they don't win, clicking the OK button needs to close the browser window.
I've tried a number of solutions and it seems that the only way to get this done is to launch the window with javascript and then use ExternalInterface.call('window.close'); to close the window from within the Flash actionscript (3) because otherwise the window won't close (I've tried just using window.close and window.close() with no luck)
I understand how to launch a new window with javascript, but I don't know how to simultaneously launch and POST data to that window (the Flash application has to have the POST data. Is this the best solution? Is there a way to close a browser window easier than what I'm describing?[URL]
View 1 Replies
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
Jun 16, 2007
Have a thumbnail image acting as a button - sitting on my HTML page.When the user clicks it, the button uses the POST method to send a specified variable.I think I can handle the variable from there using javascript - which will talk to my embedded swf.
View 3 Replies
Dec 28, 2009
so i've got a swf that opens a new window with a swf . (AS3) i want to send these 4 :
[Code]...
how can i send these 4 to the clients.swf and how do i check on the other side if they exist or not ? i searched and got all sort of details about flash -> php , as2 to as3 , swf loaded in the same swf as child etc. But i couldn t not find something spefici to my problem . Also i want to use something like POST so the url looks clean as it is .
View 4 Replies
Jan 29, 2011
What i want to do is open a new browser window, (preferably a pop-up window) and have it display results based on POST data sent from flash. Like a form that targets _blank or something.
View 1 Replies
Jul 15, 2011
I'm building an AIR application. Basically, what I'm looking to do is using navigateToUrl() to open a browser window, assign it a "name" and then, send variables to that newly opened window using the POST method.
EDIT : I need the window to be visible, this is why I absolutely need to use the navigateToUrl() function
I already know that I CAN'T DO something like this, that the AIR application will send the variables using the GET method...
var vars:URLVariables = new URLVariables();
vars.myVar = "Hello my friend";
var req:URLRequest = new URLRequest("http://example.com/my-page.php");
req.method = "POST":
[Code].....
View 1 Replies
Feb 23, 2011
I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.Here is my code:
PHP Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);
[code].....
View 2 Replies
Feb 23, 2011
I am having a bit of trouble retrieving variables from an ASP page. It returns the entire page whereas I just need the variable strAnswer from the page.
Here is my code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onDataSaved);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
[Code]......
View 1 Replies
Jan 4, 2010
i'm sending flash vars to php, but the .swf refresh when the fuction "send" is call.
fo exemple:
var myFlashVars:LoadVars = new LoadVars();
myFlashVars.cor="Blue";
myFlashVars.send("http://urlpage.php","_self");
when this happen, the page refresh and also the .swf
View 3 Replies
Jan 19, 2010
I need to open a new page from Flash, using navigateToURL(...)
I need to send a variable to this newly opened html page that does not appear within the url as a query string, so i'm using POST.
However each time I try it the variables appear within the query string... what am I doing wrong?
ActionScript Code:
var link:String = "test.html";
var urlVars:URLVariables = new URLVariables();
urlVars.username = "username";
var urlRequest:URLRequest = new URLRequest(link);
urlRequest.data = urlVars;
urlRequest.method = URLRequestMethod.POST;
urlRequest.contentType = "application/x-www-form-urlencoded";
navigateToURL(urlRequest, "_blank");
Cheers,
Matt / MSFX
View 2 Replies
Feb 9, 2010
I am trying to use
Code:
var myData:URLRequest=new URLRequest("scrip.php");
myData.method=URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();
[Code]......
to send data to a script and I want it to go to that page too. Kind of like a if you had a flash login screen that just took a id and it sent you to the next page with that. I can do it with get put I need the id hiden
View 1 Replies
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
Nov 4, 2009
I have a site the runs in flash. IE7 will not reload the vars in flash, the vars set by flash in the swf. when the page is reloaded. The thing that bugs me out is refreshing the page actually refreshed the page. The flash started how it was supposed to except the variables in flash didn't reset.This only happens when the "Temporary Internet Files" settings in IE is set to "automatic". But works how it should when "Everytime I visit The Page" is checked.
View 3 Replies
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
Sep 22, 2009
I have a Flash Form, which sends Variables to a PHP page through getURL - Post method.
My requirement is that : i need to redisplay the Form variables (name, email and so on) back in Flash as a confirmation after the data has been entered into the database in the PHP page.
View 1 Replies
Mar 27, 2012
I'm using the FB API and it's working fine. I can post a photo just fine, and I can post to the users wall with me/feed but I need the post to include a link to another FB page. I learned yesterday that you can't post a link within a wall post - ie the users feed, so I'm trying to post a like, but not having any luck.
View 2 Replies
Oct 28, 2009
I'm working on a sample i found on this site:
[URL]
it captures the webcam & saves the image then posts it to a page.
but it seems that i couldn't catch the saved image
i'm capturing the response in a aspx page and save the image in a file. here's my asp.net code:
if (Request.Files.Count == 0)
{
Response.Write("ERROR: No files were uploaded");
return;
[Code].....
View 1 Replies
Oct 7, 2010
Can someone point me to a simple example of posting to a user's facebook pages using a query string? ie I'm not using facebook connect.
View 1 Replies
Jun 3, 2009
I have a rails app that embeds a swf. The swf takes user input and posts to the server. For testing purposes, the controller is just redirecting the browser back to another pagewithout processing the data. Interestingly, after the post, the server log and the firebug log shows what clearly looks like a successful redirect (200) showing the correct URL GET, but the browser does not actually move to the new page and is stuck on the same page with the flash app. Same behavior occurs in both Firefox and Safari.
View 1 Replies
Jan 27, 2011
I am currently using URLLoader to get the source code of a webpage, problem is, I need the source that is is created after its javascript runs (what you would actually see in a browser), not the true source code.
I can manually see this Post-Javascript source by loading the page in firefox and then putting "javaScript:" followed by my javascript function in the URL area. It shows me the CURRENT source of the page.
Any way in as3 to get the final html (post-javascript) of a page?
View 3 Replies
Mar 26, 2011
I'm working on a sample i found on this site:t captures the webcam & saves the image then posts it to a page.but it seems that i couldn't catch the saved image, im kinda rusty on'm capturing the response in a aspx page and save the image in a file. here's my asp.net code:
if (Request.Files.Count == 0)
{
Response.Write("ERROR: No files were uploaded");
[code].....
View 2 Replies
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
Mar 9, 2011
how to one page to another page without opening new window only url changed using flex?for example you can click log in button user name and password correct then going to home page without opening new window at the same window..
View 1 Replies
Jul 16, 2009
i needed to change the code below to post the userAnswer from radio button group, to an ASPX page so i can read the data in and post it to a database.
[Code].....
View 4 Replies
Oct 15, 2009
I want is to take a the text from and input text box and when you press a submit button have it post to a php page. All was going well... but then I changed my code from value1 = "password" to value1 = password.text; and the php instead of coming back with the user's password, comes back undefined. WHY WHY WHy, does it except it when I say value1 = "password" and not with the value1 = password.text; (and 'password' is the instance name of the input text... (not using flash vars)
[Code]...
View 14 Replies
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
Nov 6, 2009
I basically have a form inside of Flash that I need to submit to a server-side processing page, which will then return either json or xml telling if it succeeded or not ( json, xml I suppose ). My version of Flash is CS4 and I'm wondering if there are any libraries or frameworks I can use to accomplish this.
View 2 Replies