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




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



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 02-26-2007, 08:00 PM


View Complete Forum Thread with Replies

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

PHP/Flash How To Send Session Variables
I have a database that requires unique logins and that works in flash. I have another part that opens a pop up window (html) to view account info. **The problem is that I can not get flash to send the session variable so they can view account info.

I do not want to have another round of logins at this point so how do I get flash to send the session var. By the way I know flash is getting the var because I have done testing and have traced test variables. Here is the smartclip code below.

on (release) {
getURL ("javascript:window.open('"add url add"?session','"add winName add"','width="add winW add",height="add winH add",scrollbars=1, top='+((screen.height/2)-(" add winH/2 add "))+',left='+((screen.width/2)-(" add winW/2 add "))); void(0);");
}

the session variable name is 'session' so where does the
?session go becuase I have tried every concievable placement.


Thanks in advance
HWORB

PHP/Flash How To Send Session Variables
I have a database that requires unique logins and that works in flash. I have another part that opens a pop up window (html) to view account info. **The problem is that I can not get flash to send the session variable so they can view account info.

I do not want to have another round of logins at this point so how do I get flash to send the session var. By the way I know flash is getting the var because I have done testing and have traced test variables. Here is the smartclip code below.

on (release) {
getURL ("javascript:window.open('"add url add"?session','"add winName add"','width="add winW add",height="add winH add",scrollbars=1, top='+((screen.height/2)-(" add winH/2 add "))+',left='+((screen.width/2)-(" add winW/2 add "))); void(0);");
}

the session variable name is 'session' so where does the
?session go becuase I have tried every concievable placement.


Thanks in advance
HWORB

Flash Button To Send Session Variables In Php?

Flash and PHP Session Variables
Hello,

I am creating a website that will have a flash music player on there. My client wants the music to start playing automatically, but if a person clicks the stop button, then when they go from page to page the music will be turned off. Other wise it will be one when they go to a new page. I was thinking of doing this with session variables in php. When the user clicks on the stop button, it will create a session variable. Then when they go to a new page, the php code will check for that session variable, if it exists it will load the flash file with it not playing automatically and vice versa. Is this possible?

Any advice will be greatly appreciated. Thanks!



Filereference Session/cookie Problem..is It Secured To Send Session Id Explicitly?
hi, i am using fancyupload(combination of flash upload(file reference) and javascript).. the problem with file reference is that it doesn't send cookies and sessions to the upload script but i need to do authentication in the upload script to prevent any illegal uploads....

i read that session id must be sent to the upload script... but i wanna know if it is a security issue to send session id explicitly like this...

the fancy upload operates by giving the url through the javascript so basically i need to append the session id to the url making visible to the public.... so is there any harm that can be made if this session id is seen by everybody.... i read somewhere that this can be a risk for CSRF(cross site request forgery)??

is there a more secure method to do it??

and another question this how i wanted to do my upload

- load my php page where the upload form is found.... (i create a $_SESSION['upload_allowed']
- then i append the session id to the url of the upload script (e.g. "/includes/upload.php?PHPSSID=".session_id()
- when a user uploads a file....the flash uploads the file and calls the script upload.php?PHPSSID=1231231313
- the upload.php checks if $_SESSION['upload_allowed'] is found and allows the copy the file if it is found...

i wanna know something... i create a session $_SESSION['upload_allowed']... the flash uploads a big file(say it takes 1hr)..... and after the upload is complete, it calls upload.php.... but what if the session lifetime is less than 1hr.... the upload will fails isn't it??

when does the flash actually calls upload.php, when upload is complete(to temporary file) or at the start of upload??? i am confused with this

srry for such a long history...

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

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

Send Session Variable In Flash
I want to send a session variable out of flash. It would be a URL I am sending out.

How would I do this? Do I need php or asp?

Posting Session : Post Everything
Please do so... i wanna know the new stuff
Besides the enabling movies part.

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.

Using Session Variables With Flash
I have a flash navigation that will be included into several different .html, .php files. The customer I am building the site for doesn't want a full flash site because of price, but rather wants a hybrid site. Anyway, the way I have it now, the navigation loads when you get to the index page. From there if they click a button and say it goes to music.php, this page contains the exact same nav_loader.swf which loads nav.swf into level 0. How do I get it to not show the loader file if it was already loaded in the index.php and is now cached?

You can see what I mean by going to http://66.195.17.117/~movingto/ and clicking the home and music buttons only.

Thanks for your help.

Using PHP Session Variables In Flash...
Hi guys, im writing a football manager game in PHP/mySQL and FLASH/AS..

at the moment...
a user can select 6 players for their team
enter an 8 team tournament
view there first fixture.

this is all achieved using php..

for the actual matchplay for the fixture i want to take the variables created in php into flash.... and then produce a dynamic animation....

i have played around with gettin php variables into flash and have so far been successful, however.. it doesnt seem to like it when i used SESSION variables??? This is quite a large problem as most of my queries depend upon session variables....

the variables i need to use are ...

$gameid = $_SESSION['gameid'];
$teamid = $_SESSION['teamid'];

I also get a lot of errors when having session_start(); at the top of my php page...


Does anyone know how to get round this problem???

thanx in advance

Can Flash Use Session Variables?
hey guys,

I've created an html/asp web page with a standard form that asks the user to enter their "username". When the user does this and clicks submit, he is taken to another html page that contains a flash movie. I want this flash movie to display the "username" entered on the previous page.

I figure, I can make the username a session variable and then have the flash movie reference it. Is this possible? What would the actionscript look like?

Thank-you very much!

artane

Can Flash Use Session Variables?
hey guys,

I've created an html/asp web page with a standard form that asks the user to enter their "username". When the user does this and clicks submit, he is taken to another html page that contains a flash movie. I want this flash movie to display the "username" entered on the previous page.

I figure, I can make the username a session variable and then have the flash movie reference it. Is this possible? What would the actionscript look like?

Thank-you very much!

artane

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

Passing Session Variables Into Flash
I'm building a login scheme that uses PHP sessions to pass the key variables (i.e. $login and $password).

Typically, I can easily pass variables into flash movies by calling the PHP scripts via LoadVarNum and using print to send them back.

However, this situation is a little different since the php session commands are actually part of the url that contains the embedded .swf. I have determined that the needed variables are in fact making it to the top level url but not into the .swf.

Does anyone know of an alternative way to pass the variables into the .swf (besides populating them into header since that would reveal the info in the link)???

I'm thinking that there may be an option in the embed command or something.

Any help will be greatly appreciated.

Help: Can Flash Interact With Asp Session Variables?
can flash interact with asp Session variables?
it seems to work fine from cold fusion, but i am having problems getting flash to read variables from an asp page

&myPageNumber=<%=Session("PN")%>&

flash seems to see this as:
&myvar=<Session("PN")&
instead of
&myvar=108&

any ideas?

Using Flash Menus / ASP Session Variables
I'm going to try and explain this the best I can...

Here we go...

I'm using a Flash MX menu to navigate a company Intranet. When a user logs into the Intranet, an ASP script sets Session variables so that other pages can detect if a user is logged in. All of the pages of the Intranet are set up to kick back to the login screen if these Session variables are not set. When navigating with the Flash Menu, the Session variables do not carry to the next page (even if they are ALREADY SET).

I'm using the getURL(link) actionscript command...

I was wondering if anyone knew a way to make these Session variables carry over after a call to getURL() or if there is another ActionScript command that could be used?

Thanks for the help,

Grier

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!

How To Send Vars To ASP Session Object
hi all,

i want to send a variable from flash to an ASP page while clicking a button in flash, using the session object in ASP.

in the ASP, i have the Session("myVar")="null"

now, when i push the button in flash, i want to change the Session("myVar") to "one".

i tried using

myClip.myVar = one;
myClip.send("URL of ASP page"), but this doesn't work.

any ideas?

Make Aspx Receive Session Variables From Flash
First post made by me

i have a flash starter page which has a menu for selecting the language / country. the link contains two session variables ('language' and 'cid') which is to be passed into an aspx page as a cookie. problem is, flash does not pass the variable. i had read this post, but this is exactly the opposite of what im trying to do.

Passing Session Variable To FLASH, Evaluating, Then Altering The Session
I started a thread in the sounds and audio section and got some good suggestions from hp3 (mod) there. He suggested I move my questions here...

the task: read 2 session variables into FLASH, evaluate them in an if loop of some kind, and be able to rewrite the session variable with an onClick even for a button.

I want to be able to control the "state" of a soundtrack in a site that uses FLASH just as the navigation. I have the sound track built and the on off controls work fine (loads and unloads the movie to layer 1). The problem is that when you move fron HTML page to HTML page, your choices don't persist.

Every page in the site is ASP/VBSCRIPT, so using a Session variable is not a problem. I just need to know HOW.

I was told I need to pass the varible in through the embed src tag:

<embed src="controlpanel.swf?VAR1=VAL1&VAR2=VAL2" loop="false" etc etc

actually...

<embed src="controlpanel.swf?STATE=<%=Session("STATE")%>& TRACK=<%=Session("TRACK")%>" loop="false" etc etc

sound right so far? OK..easy enough. Now how do I read that querystring value into a FLASH AND then how do I evaluate it?

Is it as simple as Request.Querystring("STATE")?

FlashVariable1 = Request.Querystring("STATE")

Is there some loadvarible method for doing this? In the end, I want the first frame of the movie to do this:

1. get the variables STATE & TRACK from the embem src tag
2. evaluate the variables and do accordingly:

if FlashVariable1 = "ON" then
if FlashVariable2 = 1 then
load track1.swf into layer 1
else if FlashVariable2 = 2 then
load track2.swf into layer 2
else don't play the music
end if

3. when the user clicks the off button or selects a different track, write that back to the server side session variable:

onclick
unloadmovie from level 1 (killing the audio)
set Session("VAR1") = "OFF"

or for track selection...

onclick
loadmovie trackX.swf into layer 1
set Session("VAR1") = "ON"
set Session("VAR2") = "TRACK2"

Then, when the user moves to the next HTML (actually ASP) page, the embed tag uses the new session variable values and passes them into FLASH so that they can be evaluate once more.

Sound right? now HOW? That's the question. Your help is SUPREMELY appreciated!!

Thanks all

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!

Session Variables Across MCs
Maybe there is a very basic way to do this, but I haven't been able to figure it out yet. I have created a Flash learning module with several scenes. In one scene, the user can enter their thoughts about a scenario, and I would like to save that information so that if they return to this scene later on in the session, the text is retained. Initially I was simply using an input text box, but as soon as the student left that scene, the information was lost. I tried to set up a 2-frame movie clip where the input text box was in one frame, and a dynamic text box was in the next (where the variable was the text that was entered into the input box.) I hoped to use a variable and if/else loop to test whether the student had previously entered text and then jump to the frame with the dynamic text box. Didn't work.

I'm starting to think maybe the LoadVar option is the correct way to create this functionality, but if someone has any idea how to create this efficiently (and easily would be nice), I'd appreciate any suggestions.

Thanks.

Session Variables
Hi Everyone,

I am currently using to in a sound player in an on the homepage of an html/asp website. At the moment it plays some welcome audio when the visitor arrives on the site (index.asp), however it does get an little annoying when it plays everytime you go onto the homepage.

Is their any way of setting a session variable in actionscript that only plays the audio once when using the site?

Thanks in advance
j

Session Variables
Hi Everyone,

I am currently using to in a sound player in an on the homepage of an html/asp website. At the moment it plays some welcome audio when the visitor arrives on the site (index.asp), however it does get an little annoying when it plays everytime you go onto the homepage.

Is their any way of setting a session variable in actionscript that only plays the audio once when using the site?

Thanks in advance
j

Session Variables
Hi Everyone,

I am currently using to in a sound player in an on the homepage of an html/asp website. At the moment it plays some welcome audio when the visitor arrives on the site (index.asp), however it does get an little annoying when it plays everytime you go onto the homepage.

Is their any way of setting a session variable in actionscript that only plays the audio once when using the site?

Thanks in advance
j

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

Flash POST Variables
I'm using
code: mySendVars.sendAndLoad("testmail.php", myLoadVars, "POST")
e.g. to send a "naam" LoadVars variable to my php script.

In the php script I would use something like this

PHP Code:



$naamvariabele = utf8_decode($_POST["naam"])




to receive this variable send by Flash through "POST". In this case: $_POST["naam"]

But noticed just now that this

PHP Code:



echo $_POST["naam"];




gives the same result as this

PHP Code:



echo $naam;




after Flash has send the LoadVars.naam variable

So if I use an input text field with the instance "naam" and send its value to php using Loadvars, php automatically creates a php variable with the same name? Is that correct?

If so, I could also use this

PHP Code:



$naam = utf8_decode($naam)




which indeed works just as well (just tested it)

Or is working with a POST-variabele like $_POST["naam"] still safer?

How To Get Post Variables Into Flash ?
Here's a great example with my quesiton at the end !!! Thanks to everyone for viewing...


Quote:





Originally Posted by JRMillion


using the LoadVars() object is the newer and better way of doing this.


Code:
var sendInfo = new LoadVars();

//Load up all the variables you want to POST
sendInfo.myVar = "some string or something";
sendInfo.myOtherVar = "some other string or something";
sendInfo.myNumberVar = 22;

sendInfo.send("script.php", "_self","POST");
then you can access myVar, myOtherVar and myNumberVar as post variables in the file addressed by send()





Okay! NOW how do you get those post variables into a flash movie clip embedded within that page ????

Can You Use Get Or Post Variables In Flash?
Is it possible to use variables that your get or post to the html file that contains your flash movie?

ie if I go to this url http: //www.example.com/flashmovie.html?wantedVar=100

Is there a way to use the wantedVar?

Thanks

How To Post Variables Between Flash And Asp
Hello, I wonder do you have any idea about how to post the variables between asp file and flash file. Bucause I have code in asp file like choosing a picture from a form and I want to pass that image back to the flash page. How could the code be?

<FORM name="myform" action="designpage_colormap.asp" method="post">
<input name="color" type="radio" value="001">Red
<input name="color" type="radio" value="002">blue
<input name="color" type="radio" value="003">marine
<input name="color" type="radio" value="004" selected>white

<input name="choose" type="submit" value="choose">

</FORM>

THanks in advance !

Passing Session Variables #2
THis is the code that I have so far.... within the flash movie the variables needed are 'user' and 'password'... they need to be filled with $session[login] and $session[password] but they arent currently making it there.

<?php
/*****
members.php:
This file displays the members screen once they've logged in
*****/
include_once("config.php");
include_once("functions.php");
include_once("session.php");

// Check user logged in already:
checkLoggedIn("yes");

$user=$session[login];
$password=$session[password];

?>
<html>
<head>
<title>MAPPER</title>
</head>

<body bgcolor="#1F1F1F" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" noresize body style="overflow:hidden">

<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" noresize>
<tr>
<td align="middle" valign="top">
<table cellpadding="0" cellspacing="0" border="0" noresize>
<tr>
<td bgcolor="#1F1F1F" align="right" valign="bottom" noresize><OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID="screen" WIDTH="800" HEIGHT="530"><PARAM NAME="movie" VALUE="mapperB.swf"><PARAM NAME="quality" VALUE="best"><PARAM NAME="play" VALUE="True"><PARAM NAME="loop" VALUE="False"><PARAM NAME="menu" VALUE="False"><PARAM NAME="bgcolor" VALUE="1F1F1F"><EMBED SRC="mapperB.swf" NAME="mapper" WIDTH="800" HEIGHT="530" QUALITY="best" loop="False" play="True" MENU="False" BGCOLOR="ECECEC" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></td>
</tr>
</table>
</td>
</tr>
</table>

</body>

</html>

GetURL() And ASP Session Variables
I'm going to try and explain this the best I can...

Here we go...

I'm using a Flash MX menu to navigate a company Intranet. When a user logs into the Intranet, an ASP script sets Session variables so that other pages can detect if a user is logged in. All of the pages of the Intranet are set up to kick back to the login screen if these Session variables are not set. When navigating with the Flash Menu, the Session variables do not carry to the next page (even if they are ALREADY SET).

I'm using the getURL(link) actionscript command...

I was wondering if anyone knew a way to make these Session variables carry over after a call to getURL() or if there is another ActionScript command that could be used?

Thanks for the help,

Grier

How To Use PHP Session Variables With ActionScript?
Hi,
I have a movieclip which registers a student and then what I want to do is.... After their registration, they should go to this new movie with their username as a session variable. How to do that ? I have been struggling? Please reply as soon as you can ?
I am using PHP as my server side language ...

Cheers

How I Can Get The POST Variables In My Flash Movie
Hi everyone, i need to get the POST Vars in my Flash Movie.
I have 2 frames:
1. topFrame (topFrame.htm) = Contents a Flash Movie called MENU
2. mainFrame (mainFrame.htm) = Contents de Flash Movie called MAIN

I Call a MENU Movie by MAIN Movie like this...
getURL("topFrame.htm?myvar=abc", "topFrame");

In the MENU Movie I want to detect the variable MYVAR an use the data ABC, how can i do this?

Regards.

How I Can Get The POST Variables In My Flash Movie
Hi everyone, i need to get the POST Vars in my Flash Movie.
I have 2 frames:
1. topFrame (topFrame.htm) = Contents a Flash Movie called MENU
2. mainFrame (mainFrame.htm) = Contents de Flash Movie called MAIN

I Call a MENU Movie by MAIN Movie like this...
getURL("topFrame.htm?myvar=abc", "topFrame");

In the MENU Movie I want to detect the variable MYVAR an use the data ABC, how can i do this?

Regards.

How I Can Get The POST Variables In My Flash Movie
Hi everyone, i need to get the POST Vars in my Flash Movie.
I have 2 frames:
1. topFrame (topFrame.htm) = Contents a Flash Movie called MENU
2. mainFrame (mainFrame.htm) = Contents de Flash Movie called MAIN

I Call a MENU Movie by MAIN Movie like this...
getURL("topFrame.htm?myvar=abc", "topFrame");

In the MENU Movie I want to detect the variable MYVAR an use the data ABC, how can i do this?

Regards.

Interesting IE-Flash Bug: Can't POST Variables
I wonder if anyone has come across anything similar to this:

I have got a frameset with 2 frames. One of them holds my Flash. I want to send a username variable from Flash to a PHP script. Inside Flash I have the following actionscript:

code: var name = "toto";
getURL("http://www.myserver.com/forum/forum.php", "_blank", "POST");

My POST variable 'name' arrives to forum.php in Firefox and Opera. IE just drops it.

It works across all browsers if I just POST from the html page itself, not from within a frameset. It also works across all browsers if I GET it there, but I don't want to use this method.

So far I have tried playing around with 'allowAccess' param of the OBJECT tag, but all to no avail. I am 95% sure it's a bug in IE but want to make sure if anyone's encountered this before.

Thanks a lot for your help.

PS I hate IE

[F8] Flash + Popup + Post Variables + PHP
Hello there.

I'm trying to execute some php code within a small and nice popup, using some variables from my swf.
This code is working very well :

PHP Code:




var my_lv = new LoadVars();my_lv.tosave = "oh yeah";my_lv.send("saving.php", "_blank", "POST");







But this does not let me control the size of my pop up. So I wrote a basic javascript function (working with window.open blabla) to open a popup instead and replaced my last line by :

PHP Code:




my_lv.send("javascript:popup('saving.php', 'Now saving...', '240', '205', 'no')", "_self", "POST");







Now I get a nice popup but the variable get lost and my PHP script can't use it. Is there any solution to this problem ?

Flash Levels / POST Variables
here's my script that's not sending the variables like it's supposed to


PHP Code:



on (press) {
if (_root.window.content.mailform.name eq ""  or _root.window.content.mailform.email eq "" or _root.window.content.mailform.message eq "") {
    _root.window.content.mailform.errortext.gotoAndStop (2);
} else {
loadVariablesNum ("form.php", 0, "POST");
_root.window.content.mailform.gotoAndStop (2);
}





since the path to the variable is _root.window.content.mailform should i put the loadVariablesNum to level 3 instead of 0 ?

PHP, Session Variables, And Resubmitting Forms.
I'm having some trouble, here is the situation.

1. Upon entering a site i am storing a "birthdate" in a session variable.

2. When the user registers (in a swf file) they enter a "birthdate" and when the form is submitted a php file compares the form "birthdate" with the session "birthdate" and echos back a variable to the flash if they were equal or not.

3. If they are equal a thank you is displayed. But if not a message is displayed that they must match with a back button to the form.

4. When the "birthdate" is corrected immediately at the form and submitted the php file is not accessed. However if about 7 seconds is allowed to pass the form works.

Does anyone know how to make the form immediately submittable if it is returned to?

Thanks.

Session Variables Not Avalable To All Users?
This is driving me insane ... had an app coded up using loadVars and it wasn't working for some users and couldn't figure out why ... now I have redone the back-end integration using flash remoting and the same users having a problem... but at least now i have better error handling and can see the problem ...

Session variables are not available for some (about 20%) of the users of my application. Flash remoting is setup and working fine... for most users. This is a cfmx 6.1 app server on win xp server pro.

But, for many users, the cfc calls that reference a session variable aren't working because the session variables referenced are not defined... but for the user, the session variable really is defined as far as the cf application is concerned.

Here's a simple example:

<cfcomponent>
<cffunction name="go" access="remote" returntype="string">
<cfset answer = "#session.UserID#">
<cfreturn answer>
</cffunction>
</cfcomponent>

And like I said, the really odd/frustrating thing is this problem isn't there for most users but for enough that I can't go forward unless we can solve this.

Thanks in advance if anyone has any insights.

Coldfusion Session Variables Undefined
Any ideas on how to make session variables work when remoting? They work fine in the cfm file the flash movie is in, so the session variables are set. But when I remote I get an error saying they are undefined. I expect that it wouldn't work when previewing in flash, but why isn't it working when it's in the page?

Please help. Somebody????

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

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