ActionScript 3.0 :: Sending User Details To PHP For Creating Session Variables
Jun 3, 2010
I have a webpage where user enters details. These details are sent to php and session variables are created. My new swf then grabs these variables and displays them in a movie. Now the whole idea is for this movie clip with the details then to be sent to someone as a link. But, if the receiver then opens this link, they wont have the session variables though, and the details will not display.
View 1 Replies
Similar Posts:
Jul 20, 2005
I am trying to write a secure login using flash. I worked out that the login must be separate from the protected content otherwise a decompiler will get round it very quickly. At the moment I have a login swf that posts variables to a server side script which then creates a session for a valid user.
The idea is to then forward on to the protected content. However I am unsure how to pass the users info to the swf so a user could not modify before the swf gets it and thus see another members content or what I can do to stop someone just accessing the content directly by just knowing the swf file's location.
View 2 Replies
Mar 31, 2011
So I am successfully able to send variabls from Flash to PHP, but I am still unable to figure out how to send the USER to the php page along with their variables. The reason I want to do this is because the PHP script in question spits out a bunch of text to the user based off the variables sent to it from flash.
Right now, when the user clicks the submit button in flash it sends the variables to flash ok, but to the user, they just continue to sit idly on the flash page, even though it no longer serves a purpose.
how can I get flash to send the user AND their data to the php script when they click the submit button?
Here's what I'm using now (inside flash):
//variables used to send data to server for processing
var scriptRequest2:URLRequest = new URLRequest("qm-results.php");
var scriptLoader2:URLLoader = new URLLoader();
var scriptVars2:URLVariables = new URLVariables();
[Code].....
View 1 Replies
Aug 26, 2010
I have a SESSION that looks like this:
array(1) { [1]=> array(11) { ["aantal"]=> int(1) ["id"]=> string(2) "29" ["filmtitel"]=> string(16) "2_fast_2_furious" ["film_id"]=> string(1) "1" ["zaal_id"]=> string(1) "1" ["zaaltitel"]=> string(6) "zaal 1" ["tijdstip"]=> string(8) "17:30:00" ["stoeltjes"]=> array(3) { [0]=> string(2) "19" [1]=> string(2) "20" [2]=> string(2) "21" } ["dag"]=> string(8) "woensdag" ["verwijder"]=> int(1) ["vertoningId"]=> string(2) "31" } }
so there is an array and within that array is another array called "stoeltjes" with 3 items.
What i would like to know is how i can direct the content of "stoeltjes" to jquery so i can assign it to a flashvar and send it to as3.
View 1 Replies
Apr 28, 2011
sending session data from flash to the current PHP page.
Basically a random variable is created in AS3, I need for that random variable to be accessible on the same PHP page as what the flash is playing on.
View 2 Replies
Sep 7, 2009
where can i get a sample user details form and validation?
View 1 Replies
Feb 24, 2011
This is my first query at any flash forums. I have a assignment where the name and password textfield is on the moon designed on the screen.As the user enters his name and password then presses enter the moon has to fade away so another animation can take place.Is there some action script...that flash recognizes that user typed and pressed entered event then moon fading takes places?.
View 2 Replies
Feb 24, 2011
a) A full moon is there on the screen in which Name and Password field is there.
b)The movement the user types his name and password and after pressing enter the moon should fade for some other animation.
Is action script needed for this?.
Am just a sort of general flash animator I don't know how to do things differently.
The animation further should continue where a steel door should open, two velvet ropes should be pulled aside which will make the bookcase wall swivels around to reveal the next animation
how to achieve point a and b.I will try pondering the rest on opening the steel door and pulling the velvet ropes that swivels the bookcase and goes to reveal another animation....
View 1 Replies
Feb 22, 2011
We have a sort of game, generated with Flash in AS3, on our website where the reader is invited to eliminate the California Budget Deficit. It's connected to a database where we keep track of the responses and print them in chart form and post the results on the website so everyone can see the most popular budget items the readers want to cut.
See the interactive in question here:
[URL]
We've had many, many requests to have an option where the reader can get a copy of his/her choices that he/she can print out. I've thought about having a movieclip pop up that shows those choices (and that would be simple enough), but in addition to that, what I'd really like to do is have a way to download those choices to the reader's computer as a text file or maybe have a "Print" button on the movieclip showing the choices that would print just that movieclip. The database we have wouldn't really be suitable because it's set up to simply show which were chosen and which not, and the names of the submissions and choices are variables that don't really mean anything except to us when we put it all in an excel file.
View 1 Replies
Aug 4, 2010
I want to manage a username session for lifetime. means for example if u look a website [URL] in this website i have registered and i haven't logged out but whenever i open up this website my username appears there. No need to login again. so i want to do the same for my one of the games website. i have developed my website using php mysql flash.
View 3 Replies
Nov 13, 2010
i have a php page,inside i include a myflash program.in myflash program i have a function to add to cart when user want to buy something..but i want if they want to click the add to cart button the user first must login to the php page.login module i put in same page with flash program..how can i make if user press the add to cart button,if he not yet login the warning box will appear tell he must login first.i can make it with javascript in php page.. but in flash i donk know how.
View 7 Replies
Jan 17, 2011
I've a flash facebook application, i can take the session info from flash client and send the session information to server.
I need to check if the user connected to the server via facebook application or not. That's why i need to get the user's session from facebook page directly by my server.
How can i do it? I use C# for all database and communication system. Flash interface does only application responsibilities.
View 1 Replies
May 31, 2010
I am trying to get variables from my php script to my swf. I have this php
Code:
<?php
if(isset($_POST['action']) && $_POST['action'] == 'submitform'){
$name = $_POST['name'];
$receiver = $_POST['receiver'];
} if($name=="" || $receiver=="") {
Which hopefully creates two session variables (not done sessions before). With this done, how can I load these variables in my as3?
View 4 Replies
Oct 29, 2006
I'd like to create a website that displays a swf file. Is there a way I can make it so that the content of the .swf file comes from session variables (probably coldfusion). So, if someone types in their name, I want to save their name to the database & then later display their name in the swf file.
View 1 Replies
Jan 7, 2012
I need to have a banner that changes every 5 seconds. Problem is that when I move from page to page it starts at the beginning. If I had a session that recorded each change and that could be read by flash on initialise then this would work. My prefered platform is PHP but can use ASP
View 1 Replies
Jan 7, 2011
What's the risk if it is between 2 websites or 2 webservices or between a site url and flash or embedded javascript ?
View 1 Replies
Mar 31, 2011
So I am successfully able to send variabls from Flash to PHP, but I am still unable to figure out how to send the USER to the php page along with their variables. The reason I want to do this is because the PHP script in question spits out a bunch of text to the user based off the variables sent to it from flash.
Right now, when the user clicks the submit button in flash it sends the variables to flash ok, but to the user, they just continue to sit idly on the flash page, even though it no longer serves a purpose. So I guess my question is, how can I get flash to send the user AND their data to the php script when they click the submit button?
[Code]...
View 2 Replies
Apr 3, 2003
I am using flash mx I have a form, with a confirmation page that comes up when the user clicks on the submit button.
I want the user to also receive an email confirmation.
I have a php file someone gave me to use for this...
my problem is, when the user clicks on the submit button, it calls the actual php file.... so I know I have coded it wrong in flash..
here is my flash script;
globalStyleFormat.background = 0xCCFFFF;
globalStyleFormat.scrollTrack = "0xCCFFFF";
globalStyleFormat.textSelected = 0xFF0000;
globalStyleFormat.applyChanges();
[Code].....
View 1 Replies
Feb 4, 2010
I have multiple frames with stop-points and labels on my timeline and an action where if the user holds down the button for >1 sec it will go to one frame, if <1 sec it will "gotoAndPlay" a warning animation. after that animation plays i want them to be sent back to the initial frame that they were previously in.
View 3 Replies
Aug 19, 2009
I am making a site that is in Hebrew and English. It contains two .swf files. The 1st .swf file allows the user to choose whether he wants the site in Hebrew or English. When he goes to the 2nd .swf file via a link I would like the 2nd .swf file to already know what language the user chose. How would I do this? using getURL and variables?
View 2 Replies
Sep 11, 2010
so making a high score board i can use in my games. the tutorial i found (every tutorial i found, in fact) was AS2, so i've taking the principles in the tutorial and converting them to AS3. I'm pretty darn close to having it work. i have it successfully pulling the data in the php/database to the flash file and listing the contents of the high score board, but i seem to be missing something when sending new name and score info to it.
here is my test file: [URL]
you can see the high score list comes up (the info coming in is from when i went through the AS2 tutorial), but as you can see it's not adding the name and score you enter in the first part to the list.
here is code i'm using to send the info:
Code:
var sendScoreVars:URLVariables = new URLVariables();
sendScoreVars.userName = userName;
sendScoreVars.myScore = userScore;
[Code].....
View 1 Replies
Oct 20, 2009
I have been trying for the last two days to get flash to pass variables to ASP with no luck.
[Code]..
View 1 Replies
Jul 7, 2009
i wanted to make the step of sending variables from flash to PHP. I just made a simple PHP script which takes in three variables and uses them to send a mail. So after searching a while i found something that should work, but when i tried it nothing happened, no error nor any email recieved. Here are my scripts:
ActionScript Code:
var myVariables:URLVariables = new URLVariables();
myVariables.to = "name@domain.com";//can be replaced with your own email
myVariables.subject = "Test Mail";[code].....
View 9 Replies
Jan 19, 2008
i have an email box on my site. It has 2 input text boxes, name and email. It also has a few check boxes that i made. Now here is the problem. The two input boxes work just fine, however, i need it to also send a variable to my php file when a box is checked. send a variable to php that is NOT a text field
View 6 Replies
Oct 13, 2008
I am currently working on an online connect four game where the state of the game needs to be updated after ever move. i've had no problems sending variables from a php script to flash but i'm having difficultly sending variables from flash to php when trying to update a database. i am getting this error message:
The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
To try an understand the process and figure out what i am doing wrong i've stripped down both my actionscript and php files to the bare minimum but still it wont seem to work. here is my actionscript:
Code:
var game_id:String = "1";
var postURL:String = "updateMoveScript.php";
var variables:URLVariables = new URLVariables();
[Code]....
i know the php query is fine as i've tested it by changing the $game_id variable to the value i want to send.
i've tried changing urldataformat from variables to text and also messed about with changing post and get and about every different possible combinations of doing this but with no joy.
View 2 Replies
Oct 4, 2002
I load a new swf on level 0 to replace the one already there and I'd like to pass variables (an object) from the unloading movie to the loading one. I can't use cookies or shared objects. I remember reading something somewhere about using javascript to do it but can't find it.
View 2 Replies
Nov 16, 2008
I've created a drawing application intended as an interactive art piece for a gallery. I'd like to have what each visitor draws in one scene to somehow be carried over into the next scene and be displayed on clicking a button. Ideally, the user-drawn images will scale and position themselves accordingly to maximize the screen space. This way, if only three people have visited and drawn something, their three images would enlarge to fill the screen. If 12 people draw something, those 12 images would shrink to fill the space.
I'm thinking I might need to look at creating adaptable/expandable grids, but I'm also just stumped on how to carry user-drawn images over to other scenes. I have very little AS background and need things spelled out for me explicitly...
I'm working in CS3, but writing in AS2. On the stage, I have a palette of colours the user can choose from, a movieclip called "canvas," and another called "controller." Here's my code:
Attached to a movieclip called "Controller" is:
onClipEvent (load) {
topDog = "window1";
_root.createEmptyMovieClip("holder",100);
[Code]....
View 2 Replies
Nov 6, 2010
I want to send variables from my Flash (AS2) movie to a PHP file that would then process the variables and echo them, but echo in an HTML page. Basically, I want to make my Flash movie form the equivalent of an HTML form, in that, when it's submitted, it sends the variables by POST and opens the PHP page for the PHP page to process and deal with, instead of sending the variables and loading the response from PHP into Flash.
I've been unable to use loadVariables in the usual way that I do it.
Actionscript Code:
form.loadVariables("myPHPfile.php", "POST);
Because that sends the variables to the PHP file, but then does not open the PHP file in the browser. Is there anyway that I can make this work? How can I make the variables send from Flash and then open the PHP page in a new browser window, just like an HTML form would?
View 2 Replies
Jun 5, 2011
how to send data via ActionScript 3.0, I just wanted to make sure that my code is on the up-and-up. I'm having some problems getting my data to send, and I'm wondering if it's on me, or on my client's backend.
Code:
function add_score():void {
var myRequest:URLRequest = new URLRequest(baseVar + "main add_record");
[code]....
View 1 Replies
Jan 21, 2007
I am working on the contact form for a website that is done entirely in flash. The following is the code I have for sending the variables to the emailForm.php script that I created. The only problem I'm having is that everytime you send the contact information, a new web browser window opens up (it opens the php file in the web browser). I'm testing this on my local server and it works great, except for the fact that everytime I send it, I dont want a new browser window opening up.
View 1 Replies