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




Sending Variables To Another Domain?



Hello Kirupa forum! This place seems to be a good place to get an answer to my problem! I'm sending variables with loadVariablesNum to a php-script on another domain in order to send emails through flash. My server for the flash-file doesn't support ASP/PHP. I've tried to send the variables both using loadVariables and getURL. This is working perfect with getURL, but not with loadVariables.. Can't flash send variables to another domain? getURL(path, 0, "POST") -- this works very well!loadVariablesNum(path, 0, "POST") -- doesn't work (the variables are inside a movieclip)



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 04-07-2005, 01:40 PM


View Complete Forum Thread with Replies

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

Sending Variables To Another Domain?
Hello Kirupa forum!

This place seems to be a good place to get an answer to my problem!

I'm sending variables with loadVariablesNum to a php-script on another domain in order to send emails through flash. My server for the flash-file doesn't support ASP/PHP.

I've tried to send the variables both using loadVariables and getURL. This is working perfect with getURL, but not with loadVariables..

Can't flash send variables to another domain?

getURL(path, 0, "POST") -- this works very well!
loadVariablesNum(path, 0, "POST") -- doesn't work

(the variables are inside a movieclip)

Sending Variables To PHP, Checking, And Then Sending Back
ok heres the deal:

Im making this email form in flash 2004, and I can get it to send emails and all and great so now im going back and making it error check... so basically it sends out my variables to the PHP file, checks to see if the email is from a real domain among other things, and then depending on what it sends back it will do a certain action... I can get it to send my variables but not sure how to load the variables back in to flash after the calculations are done...this is like my first flash that uses all this so im quite a n00b at it.. thanks

How To Load Variables From Another Domain Name...
Hello,

I knew there are some commands to allow flash to load variable files from domains differents from the one the swf is in...

something like "allowUrl"...

But i cannot find anything right now...

can someone help me?

thank you
Pippo

Access Variables From A Different Domain?
It looks like with "loadvars" I am unable to access info on another server. That's because the manual says so. Is there a work around? Or is it tought luck?

And the reason why....
to store a text file on my server, under my domain, so that I can control the variables within it. And then build a movie for someone else, hosted elsewhere, that refers to mine in order to get some variables.

Further explanation.

I'm actually feeling a little malicious, and was hoping to set up a flash movie within a website that will open up a new web page with something in it - porn/rate my poo.com/rotten.com/other stuff on the internet that's not very pleasant for the average user to pop up. I would have the text file on my PC, and then maybe have a list of URL's in there, which the flash movie would choose, and another variable to switch it on and off.

Something like

loadvars ("http://www.me.com/hack.txt");
etc etc, where me.com is me, not them... Get it?

Maybe I should stop whinging.


But, if there is anyone clever out there who can think of something, that'd be cool. But wrong. But cool. And I'm not enough of a geek to do redirects and get right inside the computer, so I won't.

Help ActionScript Variables On Other Domain
I hope somebody can help me out. I have been thumping my head on this one for awhile. I have javascript calling within actionscript and it seems to work on every domain on my server but does not work on any other domains. The code is this:

varsObject.theurl = flash.external.ExternalInterface.call( 'function() { return window.location.toString(); }' );

( works in FireFox only mind you )

I figured it must be somehow a cross domain policy issue. So in my fla file at the top i put

System.security.loadPolicyFile("

Cross Domain Variables Issue
Hi

I have swf A on domain A which loads an XML data file.

Domain B hosts swf B which loads swf A.

I have set up a crossdomain xml file on domain A which has allowed the data from the xml data file to be successfully viewed when swf A is loaded into swf B on domain B.

However I cannot access any variables from swf A in swf B.

I have tried a number of examples and none of them seem to work.

Send Variables Btw. Two SWFs In One Domain
How can I send var a from swf 1.swf to 2.swf?

Thanks

Load Variables/Movies From Other Domain - SOLUTION
Posted this on were-here today, thought I'd post it here as well:

Here's a way to get around the security restrictions, imposed by Macromedia, of not being able to load SWFs and variables from other domains. By using the MSXML 3.0 ServerHTTP component, I'm able to make a request to a different domain by using an ASP script, which then feeds back the binary/text data back into Flash.

Then in Flash I simply use:
loadMovieNum("http://www.mysite.com/XMLFlashProxy.asp?url=http://www.othersite.com/movie.swf&contentType=application/x-shockwave-flash&dataType=binary", 0);

or for loadVariables()
loadVariablesNum ("http://www.mysite.com/XMLFlashProxy.asp?url=http://www.othersite.com/stockQuotes.txt&contentType=text/plain&dataType=text", 0);

dataType parameter MUST be "text" OR "binary".

Here's the ASP code:
-----------------------------------------
XMLHTTPObj.asp
-----------------------------------------
<%
Class XMLProxy
Dim strURL
Public Property Get URL()
URL = strURL
End Property

Public Property Let URL(mstrURL)
strURL = mstrURL
End Property

Public Property Get DataType()
DataType = strDataType
End Property

Public Property Let DataType(mstrDataType)
strDataType = mstrDataType
End Property

Public Function SendRequest()
On Error Resume Next
Dim objXML
Dim strReturnXML
Dim strStatus

Set objXML = CreateObject("Msxml2.serverXMLHTTP")

objXML.Open "GET", URL, False
objXML.Send

strStatus = objXML.status
If strDataType = "text" then
strReturnXML = objXML.responseText
Else
strReturnXML = objXML.responseBody
End If

If strStatus <> 200 then
SendRequest = null
Else
SendRequest = strReturnXML
End If
End Function
End Class
%>

-----------------------------------------
XMLFlashProxy.asp
-----------------------------------------
<% @Language = "VBScript" %>
<% Option Explicit %>
<!--#include file="./lib/XMLHTTPObj.asp"-->
<%
' ------------------------------------------------
' Declare Variables/Objects
' ------------------------------------------------
Dim objXML
Dim strResponse
Dim strContentType
Dim strDataType

' ------------------------------------------------
' Create Objects
' ------------------------------------------------
Set objXML = new XMLProxy

' ------------------------------------------------
' Assign Variables
' ------------------------------------------------
strContentType = Request.QueryString("contentType")
strDataType = Request.QueryString("dataType")
strURL = Request.QueryString("url")

objXML.URL = strURL
objXML.DataType = strDataType
strResponse = objXML.SendRequest()

If Not IsNull(strResponse) then
Response.ContentType = strContentType
If strDataType = "text" then
Response.Write strResponse
Else
Response.BinaryWrite strResponse
End If
End If

Set objXML = nothing
%>

You can download the zip here

Send Flash Variables To A Php File On A Different Domain.
I have been at this for two weeks now. I am trying to send two variables from a flash file located on newgrounds.com, kongregate.com, armorgames.com or any other site like that to a php file on my site pogolama.com.

I have read through most of the adobe manuals for security and still have no Idea how to use those features, that's why there are so many variations of them in my code.

I can not figure out why my php file will not get the variables I am sending it. In the following code I simplified all of my php code for testing purposes and I still cant even echo the variables that are supposed to be sent.

I am using a virtual dedicated server on godaddy.com also I tried it on their free web hosting and their cheapest hosting plan. I have the crossdomain.xml file uploaded to pogolama.com/public_html/crossdomain.xml and have tried uploading it to pogolama.com/crossdomain.xml.

Im not sure what else to say except, someone please help.

Action Script 2.0

Code:
varsToSend = new LoadVars();
varsToSend.player_name = player_name;
varsToSend.player_score = running_time;
varsToSend.send("http://www.pogolama.com/view.php", "POST");

import flash.system.Security;
import flash.system.* ;
System.security.allowDomain("www.pogolama.com");
System.security.allowDomain("pogolama.com");
System.security.allowDomain("*");

System.security.loadPolicyFile("pogolama.com/public_html/file.xml")
System.security.loadPolicyFile("http://www.pogolama.com/public_html/file.xml");
PHP

PHP Code:



<?php
$player_name = $_GET[player_name]; /* I have one set to GET and on to POST just to test if that is the problem. */
$player_score = $_POST[player_score];
echo $player_name;
echo $player_score;
?>




Crossdomain.xml

Code:
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-access-from domain="www.kongregate.com" />
<allow-access-from domain="*.kongregate.com" />
<allow-access-from domain="www.kongregate.com/*" />
<allow-access-from domain="www.pogolama.com" />
<allow-access-from domain="*.pogolama.com" />
<allow-access-from domain="www.pogolama.com/*" />
</cross-domain-policy>

Send Flash Variables To A Php File On A Different Domain.
I have been at this for two weeks now. I am trying to send two variables from a flash file located on newgrounds.com, kongregate.com, armorgames.com or any other site like that to a php file on my site pogolama.com.

I have read through most of the adobe manuals for security and still have no Idea how to use those features, that's why there are so many variations of them in my code.

I can not figure out why my php file will not get the variables I am sending it. In the following code I simplified all of my php code for testing purposes and I still cant even echo the variables that are supposed to be sent.

I am using a virtual dedicated server on godaddy.com also I tried it on their free web hosting and their cheapest hosting plan. I have the crossdomain.xml file uploaded to pogolama.com/public_html/crossdomain.xml and have tried uploading it to pogolama.com/crossdomain.xml.

Im not sure what else to say except, someone please help. :)

Action Script 2.0
varsToSend = new LoadVars();
varsToSend.player_name = player_name;
varsToSend.player_score = running_time;
varsToSend.send("

Best Domain Redirection Service ?..that Gives A Easy To Remember Domain?
need a redirection service that is simple

with something instead of . com

something free that whould end in something different
like .ds

mysite.ds
mysite.sb

what is there thats free ?

Cross Domain Solution: Could Not Get Bytesloaded Swf External From Other Domain
hello: good evening
I leave my problem here:
I am make a measurer of internet speed that consists one preloader (swf1.swf in www.dominio1.com) who loads a swf (swf2.swf in www.dominio2.com)

The file swf2.swf visualizes perfect in swf1.swf without problems although on swf1.swf it does not take the variables from swf2.swf to show the rate of transference, total remaining time, kb loaded and kb total.
If I use crossdomain.xml on the mother directory of the site, or both sites, the problem it persists.

I need that they indicate to me like making solve this disadvantage

if somebody knows where I can obtain a gratuitous measurer of speed, please, to indicate it:-o
Thanks you very much for all

any questions???





























Edited: 01/20/2007 at 11:16:44 AM by juanctkc

Different Swf's Sending Variables To Each Other
Hi,

I have several pages main, one, two, three. Main is the first page that loads and reads data from a database via an asp script in an array var "STATUS". When i click a button in main i want to load an other page via "getURL" or "loadMovie", doesnt matter, but i want the STATUS variable of main also in the pages one, two and three. How can i have the variables in main also in the other pages?
I tried it with "getURL" to load the other pages but i cant give the variables of main to the other pages. I guess that i should do it with "loadMovie" but i used the "POST" method to send the variable and then the page won't load.

Who knows the solution?

Regards, Arnold

SENDING VARIABLES
I don't reach to pass variables from a swf to an other swf that is embedded in an other HTML frame. I mean: I have 2 HTML frames and a swf in each frame. I just want to pass variables between them. How can I do that? Thanks for advance.

Sending Variables
hey, if I want to receive variables using "post" method, how do I do it? (from one flash page to another) -- I can send the variables fine, but I don't know how to make them appear in the next page...

Sending Variables
How do I send variables from one .swf file to another .swf file on another level? On Release of a button in one.swf I need it to send a variable to two.swf on another level and then have it check the variable to determine what frame it goes to.

Does anyone know how to do this?

Thanks.

Sending Variables
What i want to do is have a input text box in one frame/scene and then in another frame call the variable that was entered. I can only manage it with in the same frame.
can anyone help me?

Sending Variables
Currently I send variables from Flash to Java Servlets using the following command however since the number of words I am going to send is going to increase and is not predetermined I was wondering if there was any way of splitting this command to incase a for loop to send a words array - without putting the for loop around the whole thing or naming every variable in the statement.

Current command which just passes one
loadVariablesNum ("/servlet/hi?nocache=" add random(9999) add "&fname=" add file add "&w1=" add word, 0);

Or is there a way of passing all variables declared within a certain, level , movieclip ?


Any help appreciated

Sending Variables To Jsp Or Asp
when we want to send variables to jsp or asp file we go like this :

getURL ("name.asp", "", "GET");

but this will send all the variables in that swf.
Does any one know a way to send just one variable or a specific variable to a jsp or asp ????

and i will be thankfull

Sending Variables
How can I send and load textfield variables from flash4 game to flash5 highscore file.

Example: My score in game made with fl4 is "12345" points and it is textfield name result. I want to sen this variable to higscore-file (FL5-file) and rename it in the HS-file to "score" to be send to server.....

I have never used loadvariables-script, so please help me like a newbie!

thanks!

Sending Variables
Hi there

I'm trying to do the folowing:

i'm using loadmovienum to replace an existing .swf in level 0 by a new one.

like so:
loadmovienum ("othermovie.swf" ,0)

but here's the problem: there's one variable from the first movie that i need in the second one. (a variable that can be 1,2,3 or 4)

How do I use the "GET" method to send this variable?
can i use only actionscript to do this, or do i need something else?

Sending Variables
Hi,

I have 6 input textboxes with variable names. When people fill in the textboxes and press the send button their has to be send a form to me whith all the needed info that they tiped, but I don't know how to do it.
Can anybody help me?

Thanks in advance
Greetings
Camme

Sending Variables From One .swf To An Other
hi,
i have a question about flash mx and i hope you'll be able to help me.
i have a .swf flash file with a variable and another .swf file.
i need to send the var from one .swf file to the other.
i tried using [ loadVars.send ] to send it to the other .swf file but it didn't work.
i also tried sending it to a .txt file and load it with the [ loadVars.load ] from it
but no success there...
when i wrote the name of the var i wanted to load, in the .txt file and equaled it
to somethnig (for example: 1), and then used [ loadVars.load ] in the .swf file
it worked, the value "1" was in that var in the .swf file.
the only problem i have is to send a ver from one .swf file to the other .swf file
if it's not possible is there an other way to do so?
anyway that's what i did:

file1.swf (the sender):
----------------------

a button on the main TimeLine:
on (release) {
zzz = new LoadVars();
zzz.dan = "works";
zzz.send("c:/file2.swf");
}
i also tried the same with [zzz.send("c:/file2.swf", "POST");] and with [zzz.send("c:/file2.swf", "GET");]
didn't work...

file2.swf:
----------

the first frame of the movie on the main TimeLine:
zzz = new LoadVars();
zzz.dan = "not loaded";

zzz.onLoad = function(success) {
dann=zzz.dan;
};

"dann" is the var of an input text field on the main TimeLine.

where I went wrong?
hope you can help me.
thanks in advanced

dan

Sending Variables From One .swf To An Other
hi,
i have a question about flash mx and i hope you'll be able to help me.
i have a .swf flash file with a variable and another .swf file.
i need to send the var from one .swf file to the other.
i tried using [ loadVars.send ] to send it to the other .swf file but it didn't work.
i also tried sending it to a .txt file and load it with the [ loadVars.load ] from it
but no success there...
when i wrote the name of the var i wanted to load, in the .txt file and equaled it
to somethnig (for example: 1), and then used [ loadVars.load ] in the .swf file and it worked, the value "1" was in that var in the .swf file.
the only problem i have is to send a ver from one .swf file to the other .swf file
if it's not possible is there an other way to do so?
anyway that's what i did:

file1.swf (the sender):
----------------------

a button on the main TimeLine:
on (release) {
zzz = new LoadVars();
zzz.dan = "works";
zzz.send("c:/file2.swf");
}
i also tried the same with [zzz.send("c:/file2.swf", "POST");] and with [zzz.send("c:/file2.swf", "GET");]
didn't work...

file2.swf:
----------

the first frame of the movie on the main TimeLine:
zzz = new LoadVars();
zzz.dan = "not loaded";

zzz.onLoad = function(success) {
dann=zzz.dan;
};

"dann" is the var of an input text field on the main TimeLine.

where i went wrong?
hope you can help me.
thanks in advanced

dan

Sending Variables From One .swf To An Other
hi,
i have a question about flash mx and i hope you'll be able to help me.
i have a .swf flash file with a variable and another .swf file.
i need to send the var from one .swf file to the other.
i tried using [ loadVars.send ] to send it to the other .swf file but it didn't work.
i also tried sending it to a .txt file and load it with the [ loadVars.load ] from it
but no success there...
when i wrote the name of the var i wanted to load, in the .txt file and equaled it
to somethnig (for example: 1), and then used [ loadVars.load ] in the .swf file
it worked, the value "1" was in that var in the .swf file.
the only problem i have is to send a ver from one .swf file to the other .swf file
if it's not possible is there an other way to do so?
anyway that's what i did:

file1.swf (the sender):
----------------------

a button on the main TimeLine:
on (release) {
zzz = new LoadVars();
zzz.dan = "works";
zzz.send("c:/file2.swf");
}
i also tried the same with [zzz.send("c:/file2.swf", "POST");] and with [zzz.send("c:/file2.swf", "GET");]
didn't work...

file2.swf:
----------

the first frame of the movie on the main TimeLine:
zzz = new LoadVars();
zzz.dan = "not loaded";

zzz.onLoad = function(success) {
dann=zzz.dan;
};

"dann" is the var of an input text field on the main TimeLine.
where i went wrong?
hope you can help me.
thanks in advanced

dan

Sending Variables To Asp On Iis 5.1
here's the deal;
flash doesn't appears to be able to send variables to my asp script, even though, the same script is working perfectly with a normal html form. Here's the code I use:

//on the first frame
_global.oVarsASP = new LoadVars();

//on the submit button
on(release) {
oVarsASP.name = _root.name.text;
oVarsASP.email = _root.email.text;
oVarsASP.send("asp/emailBack.asp", oVarsASP, "POST");
}

asp code now:

<% @language="VBSCRIPT" %>
<%option explicit%>

<%



dim fso, tso, oMail, oConf, oConfFields
dim myMail, myBody
dim myFile
dim var

Const append = 8
Const cdoSendUsingPickup = 1

set oMail = createObject("CDO.message")
set oConf = createObject("CDO.configuration")
set oConfFields = oConf.fields

for each var in request.form
response.write(var & ":&nbsp;" & request.form(var) & "<br>" & vbcrlf)
next

if request.form("okList") <> "" then
myFile = Server.MapPath("log/mailingList.txt")

Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set TSO = FSO.OpenTextFile(myFile, append, true)

TSO.write(request.form("email") & vbcrlf)

TSO.close
Set TSO = Nothing
Set FSO = Nothing
end if

with oConfFields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPickup
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory")= "c:Inetpubmailrootpickup"
.update
end with

myBody = "Name: "& request.form("name") & vbcrlf
myBody = myBody & "Email: "& request.form("email") & vbcrlf
myBody = myBody & "Message: "& vbcrlf & request.form("msg")

oMail.configuration = oConf
oMail.from = request.form("email")
oMail.to = "dorobo88@digitalmilitia.net"
oMail.subject = "Flash MX Basic Email"
oMail.textBody = myBody
oMail.Send

set oMail = nothing

dim var1
var1 = "&var1=wwere" & Request.ServerVariables("Content_Length")
response.write(var1)

%>

and the asp error I get is:
CDO.Message.1 error '8004020d'

At least one of the From or Sender fields is required, and neither was found.

/lacasse_ca/asp/emailBack.asp, line 56

proving that no data was sent to the asp script.

server side: IIS 5.1 on windows xp
client side: Mozilla 1.1 on windows xp ( but the error still occur with IE6 )

any help/suggestions/teasing would be appreciated

nicolas
[Edited by dorobo88 on 09-10-2002 at 08:50 PM]

Sending Variables
How do I send variables to a cgi-bin outside of flash? Where do I declare the variables?
thanks!

Sending Variables To PHP
Using Flash 5:

I am wanting to send only specific variables to an external source (PHP). So far I have only been able to send ALL of my in the entire movie.

Is there a way to specify which variables you want to send? (name them specifically)

Thanks!

David Taylor

Sending Variables Is This Possible?
I have a mc that has two input txt boxes in it. the first one is named h1 the second one is named h2. I have a button in this mc that sends the variables to a cgi script. What I need to do thoe is have them go to two diffrent cgi scripts useing
LoadVariabe ("http://www.mysite.com/cgi-bin/h1.pl")
have that one send h1 to a scripts called h1

and in the same button have another load variable that sends h2 to a diffrent script.

I don't know how to set the variable for each load variable would it just be
h1=""
Loadvaraible ("http://www.mysite.com/cgi-bin/h1.pl")

this does not seam like it would work because I think it would pick up the h2 variables also??

Sending Variables To C++?
I recently discovered how to save variables to a file using the sharedobjects command but unfortunately, I don't think this will work for my application. I am creating a standalone application, which needs to send data to c++ program to do calculations, then once the c++ program has saved the data to a text file, the standalone application will read it back in. With sharedobjects, the file location can change depending on the persons username and version of windows. So now, im looking for a different way to pass variables to a c++ program through maybe the use of a batch program? I was wondering if maybe I could call a batch program, with some added parameters that would create a file with all of my variables in it. Any ideas on ways to create a file that I will know the definite location of will be greatly appreciated. I would do the calculations in flash mx, but in trial runs it has seemed to be too slow. Anyone know exactly how fast flash mx is compared to c++ anyhow? Thanks.

Sending Variables To C++?
I recently discovered how to save variables to a file using the sharedobjects command but unfortunately, I don't think this will work for my application. I am creating a standalone application, which needs to send data to c++ program to do calculations, then once the c++ program has saved the data to a text file, the standalone application will read it back in. With sharedobjects, the file location can change depending on the persons username and version of windows. So now, im looking for a different way to pass variables to a c++ program through maybe the use of a batch program? I was wondering if maybe I could call a batch program, with some added parameters that would create a file with all of my variables in it. Any ideas on ways to create a file that I will know the definite location of will be greatly appreciated. I would do the calculations in flash mx, but in trial runs it has seemed to be too slow. Anyone know exactly how fast flash mx is compared to c++ anyhow? Thanks.

Sending Variables To C++?
I recently discovered how to save variables to a file using the sharedobjects command but unfortunately, I don't think this will work for my application. I am creating a standalone application, which needs to send data to c++ program to do calculations, then once the c++ program has saved the data to a text file, the standalone application will read it back in. With sharedobjects, the file location can change depending on the persons username and version of windows. So now, im looking for a different way to pass variables to a c++ program through maybe the use of a batch program? I was wondering if maybe I could call a batch program, with some added parameters that would create a file with all of my variables in it. Any ideas on ways to create a file that I will know the definite location of will be greatly appreciated. I would do the calculations in flash mx, but in trial runs it has seemed to be too slow. Anyone know exactly how fast flash mx is compared to c++ anyhow? Thanks.

Sending In Variables Through Url
My site is set up like this. I have my main menu that is entirely flash, certain sections of that menu goto another part of the same flash movie, and other sections goto a dynamically generated web page. Now, on the dynamic page, i have links that are supposed to go to the individual other sections of the menu flash file. I'm wondering how I can pass in variables or parameters to the flash movie, so that I can do a test such as
if(gotoSection1 == true) {
gotoAndPlay("section1",1);
}

Can anyone help me out with this? Thanks for your time.

Sending Variables To Cgi
How can I send the contents of flash input text fields to a cgi script on my web server?

In the flash help files I read that sending variables is possible (of course), but Macromedia´s descriptions and examples always sound more like "downloading data from external scripts or applications" so now I want to know how to do it the other way round.
What I basically have is a movie clip with three fields for input text and a submit button. Now I tried to send the data to the server by using a loadVariable command triggered by a click on the button:

on (release) {
loadVariables("www.mydomain.de/
cgi-bin/guestbook.cgi", "_root.mc", "POST");
}

Is this complete bs or should it work at least theoretically? I used "POST" because in html it worked this way... I´m not sure, perhaps I have to exchange the URL and the movie clip target in the code for an upload operation? I read that all variables contained in the movie clip are automatically sent even if I cannot really imagine how this goes. So I thought about whether I had to address each text field individually by its variable name? Or shouldn´t I use loadVariables at all?
Thanks for your help and hope to get this running soon,
Toby.

Sending Variables
I am using the following code to send a bunch of varibles to an asp script...


function submitForm() {
startAction();
Sender = new LoadVars();
Receiver = new LoadVars();
Sender.CacheBuster = random(9999999);
Sender.sendAndLoad("add_students.asp", Receiver, "GET");
Receiver.onLoad = loadedForm;
}

My variables are in the _root, so they aren't being sent unless I use something like

Sender.FirstName = FirstName;
Sender.LastName = LastName;
etc etc..

Which isn't a big deal, but when I have a lot of variables, it just gets kinda annoying. Is there anyway around this?

Sending Variables
i would like to know the easiest way to send variables to a .txt file on your own computer. please note that i do not know any php or such, so an explanation of any php code used would help.

Sending Variables?
How could I send a user input value of a variable text box to a form field on another html page? For instance, I'd like to have an input text box in flash where users can enter an email address, then hit a submit button that would send the email address to the email address field of a more detailed html form. Any help would be greatly appreciated! Thanks.

Sending Variables To ASP
Hi,

I may have asked this question below in a previous post, but my problem has shifted slightly.

I have a form that I have written in flash MX, it uses components.

I have attached the asp file and flash file.

The problem is the form sends, but the email that I receive as a result of the form, doesn't show the variables from the flash file.

Please help me,

I'm going out of mind

Sending Variables From One Swf To Another
Hello

I am Portuguese and my English is not good..sorry

1 - I have two files a.swf and b.swf

2 – I want to load b.swf from a.swf using loadMovie("b.swf", "placeholder_b");

3 - I have a variable for example called “test” in the a.swf

4 – how to send the test variable to b.swf using the loadMovie funtion?

Cumprimentos (thanks in Portuguese)
aquiles boiça

Sending Variables SWF To SWF On CD?
Hi,
I hope you can help.

I'm in the process of creating a training CD-ROM which will be distributed to schools and colleges ect.

I have several swf files which will all be accessed one way or another from the main start movie.

On the main movie there are several buttons.

I have created a template swf, which loads a text file.

What I am trying to do is send a variable to the template swf to tell it what text file to load...

i.e.
Click "SalesButton" from main swf - send var sales
Main Swf opens template swf - load var sales
Template swf loads sales.txt

I can get this to work no problem using a web browser using loadMovieNum() but as it has to go on CD this would look unproffesional and messy....

Is there any solution to my problem?

Thanks in Advance.

Sending Variables
Alright folks, here are my problems:

1) First off I'm still somewhat new to the world of ActionScripting so I'm feeling like a complete jackass right now

2) I'm making an interactive map for the company I work for. Its a mall layout with each of the stores delineated by their own section. They want it setup so that when you rollover each section the info for the store comes up in a floating info window which I have following the mouse.

I have the info box setup as a movie clip with a simple box of color behind two dynamic text fields, one with a variable of "name" and the other of "phone". I've set up SmartClips for each of the stores with a name and phone property with matching variable names and set as strings.

I'm trying to send those variable values (i.e. "Old Navy" for name from the SmartClip) to the corresponding dynamic text fields in the infobox when the mouse rolls over it. I dont think I know the correct syntax for sending it between the two movie clips. Also I dont know if I'm correct in thinking that I can set that variable temporarily like that (i.e. the "name" variable within the info box text field will only equal the name of the store so long as the mouse is over it.) since I am trying to pull that from the info within the SmartClip rather than thru AS.

Is my thinking process all wrong or do I just not know enough yet?

If there is anyone that has come across something similar or knows an easy fix please let me know.

Thanks All!

P.S.-- I was trying a tell target to see if that would work but I kept getting errors in syntax. I know that I want it to happen on a mouse over but I set it up as an On Load temporarily just to see if it would actually display in the text box. Below is my code for it along with the debugging errors.

onClipEvent (load) {
Begin Tell Target ("infobox");
name = "Eastwood Field";
phone = "Number";
End Tell Target;
}

Scene=Scene 1, Layer=Layer 4, Frame=1: Line 2: ';' expected
Begin Tell Target ("infobox");

Scene=Scene 1, Layer=Layer 4, Frame=1: Line 5: ';' expected
End Tell Target;

Sending Variables
Hi,

using MX.

I've got this line of code, which should be sending a variable (called searchname) to a html page to use in a search function, but its sending the variable name, and not the actual value contained inside the variable, I've just taken this straight from html, what am I doing wrong??

getURL("http://www.website.co.uk/folder.asp?ddr=option&search=searchname", "_blank", "POST");
}

thanks for any help.

boombanguk.

Help With Sending Variables With PHP....
Hi there,

Just wondering if someone could help me out with a slight problem I am having.
I have created a Flash submission form which has lots of options such as name, email, contact details etc... and this is then sent via PHP to email us.

This all works absolutely fine but there is one small snag!
Most of the fields will only have small amounts of data inserted and so are working fine but there are 3 questions at the end of the form which allow a person to write a lot of text into them.
At the moment if you type lots of information into these boxes then the information being submitted is being truncated, I think something to do with a limit on POST???

I am using this code below to submit the information from Flash to the PHP script :


Code:
function submit() {
send = new LoadVars();
// Load data into object...

send.recipient = "info@mysiteaddress.co.uk";
send.subject = "Form submission....";
send.name = contactDetails.nameVar;
send.emailAddress = contactDetails.emailAddressVar;
send.businessName = contactDetails.businessNameVar;
send.contactNumber = contactDetails.contactNumberVar;

send.achieve = otherDetailsPartTwo.achieveMC.achieveVar;
send.otherInfo = otherDetailsPartTwo.otherInfoMC.otherInfoVar;
send.straplines = otherDetailsPartTwo.straplinesMC.straplinesVar;

send.ResponseFile = contactDetails.staffMembers.getSelectedItem().label add ".txt";

// Convert the send object into a URL encoded string to append
// to the end of the mailsender.php script....
send.toString(string);

send.load(baseUrl add "/htmlMail.php?" add send, "POST");
// When we have finished sending or loading the data perform function below...
send.onLoad.trace("Success");
}
If anyone can help me to modify this code so that all the information posted is sent then I would be exceptionally greatful.

The variables that are the large text are :

Code:
send.achieve = otherDetailsPartTwo.achieveMC.achieveVar;
send.otherInfo = otherDetailsPartTwo.otherInfoMC.otherInfoVar;
send.straplines = otherDetailsPartTwo.straplinesMC.straplinesVar;
Regards,

Mark Bowen

info@kingfishergraphics.com
http://www.kingfishergraphics.com/phpBB/

Sending Variables
code:
function paypal(){
var lv = new LoadVars();
lv.cmd="_cart"
lv.upload="1"
lv.business="contact@flashutopia.com"


for(m=1 ;m<=20 ;m++){
var p=scroller.theText["line"+m];
if(p!="-"){
lv["item_name_"+m]=scroller.theText["line"+i];
lv["amount_"+m]=scroller.theText["line"+m+"p"];
}
}
lv.currency_code="USD"
lv.send("https://www.paypal.com/cgi-bin/webscr" ,_blank, "POST");

}



What is up with this.......it doesnt even bring up the paypal thing in the browser......so I dont think the dedicated variables send is working. Help !

Sending Variables
I have var1, var2, var3 in a flash movie and to be sent to an ASP page for inserting into database.

However, if I use getURL() to send those variables, with "_blank" as target, it of course pops up a window. But I don't want to change the page as after sending those data, I need to get new sets of data into the movie. I tried loadVars class, but it popup a window too.

any solution that I can send variables to antoher page without poping up new windows and the current page containing the movie still there?

thanks

Sending Variables
Hi,

I am trying to send variables to an ASP page but just cant pick the variables up. I had it working fitst time when the form was the in the root.

Now the movie with the form in is being loaded into a movie clip and the variables now seem to be lost.

i am using this method to send them

on (release) {
_root.email = _root.BodyMovie.txt_Email.text;
_root.thename = _root.BodyMovie.txt_Name.text;
_root.mainmessage = _root.BodyMovie.txt_Message.text;

loadVariables("mail.asp", _root, "POST");
sentText.text = "Email sent! Thank you";

}

Cheers in advance

Sending Variables
on (release, keyPress "<Enter>" ) {
loadVariablesNum ("http://www.coe.unt.edu/gal/fall04/voting/scriptA.php", 0, "POST");
}

I want to send the variables 'why' and 'nameField' to the script. So far it isn't working. Is this the correct actionscript?

Sending Variables To C#
about sending for example an array of objects ...
say i manage to serialize this, HOW would I go on about sending it to C# in visual studio.net ... i have been searching for days about this all i got was that its using (fscommand, activex, including a flash.ocx reference )

im sending from standalon flash app. either projector or swf (im not sure whether fscommand works only whith projector or not )

i just need details on the HOW part,
i literally feel that i have been searching for somekind of classified information, why is this so hard to find?

Thanks for you help :-)

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