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
FlashKit > Flash Help > Flash MX
Posted on: 09-01-2002, 05:22 PM
View Complete Forum Thread with Replies
Sponsored Links:
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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...
View Replies !
View Related
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.
View Replies !
View Related
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?
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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?
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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 & ": " & 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]
View Replies !
View Related
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
View Replies !
View Related
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??
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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?
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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;
View Replies !
View Related
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.
View Replies !
View Related
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/
View Replies !
View Related
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 !
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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?
View Replies !
View Related
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 :-)
View Replies !
View Related
Sending Variables To PHP?
here is my php script:
code:
<?php
$filename = "readwrite/simple_edit.xml";
$raw_xml = file_get_contents("php://input");
print $raw_xml;
$fp = fopen($filename, "w");
fwrite($fp, $raw_xml);
fclose($fp);
?>
i would like to replace the 'readwrite/simple_edit.xml' part to be a variable set in flash. that way i can use the same php file to open different xml files. i am not an expert at php.
thanks for any help.
View Replies !
View Related
Sending Variables
I'm looking to send a variable from one flash movie to another, they are on in seperate folders on my web site. I've tried a few different ways, but what I really need is a way to define a variable with one flash movie, have another flash movie open up and check for that variable(and then follow up with some actions I have set). It is a little more difficult then it seems, because what I need is very precise, I tried using
sender = new LocalConnection();
But in this case the second flash movie must already be open because they are communicating with each other. I need a universal variable that can be defined by one movie, and checked by another. Anyone have any idea how to do this? Any help would be greatly appreciated.
View Replies !
View Related
Sending Variables? Help
Hi there,
I was just wondering if there is a SIMPLE way to send variables from one swf to another (both in different html pages).
The web scheme is pretty simple:
- First there is a page from which you choose the language (3 options) and the intro option (yes/no).
- When chosen, a new popup page is (should be) launched accordingly
So, what I need is that the variables for 'languange' and 'intro' where accessed before starting any script in the launched movie (for obvious reasons).
Although I manage pretty well with flash I have no idea on any other programming language, so should any other stuff be used please try to explain it as simple as possible (dumbstyle).
Thanks for your time
View Replies !
View Related
Sending Variables From .swf To .swf
hi all,
I'm sorry for a simple question, or so i thought, because i'm trying to figure this one out for some time. Been Searching the forum for almost all threads and found nothing yet.
I have to movies. main.swf and 1.swf
I load 1.swf in to a blank movie on main.swf. The loading takes place after I press a button on main.swf. The pressing of the button sets z=1, then loads the 1.swf in to the blank movie on main. The point is that i need the 1.swf to go either to frame 1,2 or 3 depending on the value of z in the main.swf, assuming accordingly that z is 1,2 or 3.
Sorry if it is a little bit confusing. Buttom line, i need to send z from one swf to another.
Any ideas , anyone?
Thanks
View Replies !
View Related
Sending Variables To / From ASP
A very good morning to you,
I understand variables can be sent from an ASP page to flash using the response.write from ASP and the LoadVAriables method from flash. woohoo.
Alas though I cannot seem to get this to work with a simple example my asp code is this:
Code:
<%@Language="VBScript"%>
<%
Response.Write "Uploaded est.jpg"
%>
I then attempt to load in this info to flash to the variable "location" as it will be the location for a fileRef download:
Code:
Get.onRelease = function()
{
var Location:String =loadVariables("employee.asp",0);
trace(Location);
}
yet when i click the "Get"button no trace happens it appears not to have worked?
many thanks for any help
View Replies !
View Related
Sending Variables From A Swf To Another
Hello to everybody.
I'll tell you the whole story because it's a little difficult to make it short.
I have a site. There is this HTML page with a swf menu. When I press a button, (for example "page 2" button), I want the browser to load another HTML page with a flash movie on its "page 2" (for example frame number 2), if I press on "page 3" button, the HTML loads the movie on its "page 3" (for example frame number 3).
So, one swf menu on an HTML page passes the number of the frame to another swf site wich is on another HTML page.
¿Anybody understand what I mean?
¿Can anybody help me?
Thank you everybody.
Kisses
View Replies !
View Related
Sending Variables To MC's
Hey everyone,
So here's my code on frame one layer 1. I have a movie clip named mc0 (zero) with 1 dynamic text boxes in the mc with variables mytext1.
What's going on here is that I'm making a dynamic list, flash will duplicate the MC so many times (mc0, mc1,2,3...) and I want to send the information that is stored on SQL to the mytext1 in the movie clip. The variables that come back from SQL is
food1
food2,3,4...
I trace the variables and it comes through fine, but my question is how do I dynamically send the foodX variable to mcX.myText1 textbox in a FOR statement?
Here's my code:
PHP Code:
myVariables = new LoadVars();
myVariables.load("http://url/menu.php");
myVariables.onLoad = function (success){
if (success){
//this is how I know the variable comes through fine by just tracing it manually
trace(myVariables.food4);
}else{
trace("there was a problem");
}
//mcPos is the original position of the movieclip to duplicate
mcPos= 9.4;
//this for statement will duplicate the movie clip 4 times down the Y axis
for (i=0; i<5; i++){
newname = ["mc"+i];
duplicateMovieClip(mc0, newname, i);
mcPos = mcPos +60;
setProperty(newname, _y, mcPos);
mcPos = getProperty(newname, _y);
}
}
So inside the for statement I want to be able to send food0 to mc0.mytext1, food1 to mc1.mytext1.
What is the code to do this please? Your help is much appreciated.
View Replies !
View Related
Sending MANY Variables To Php
Im doing a flash thingy that needs to senda na array to a php script, i was thinking buyt using loadvariables and just appending it all in a querystring like
i = 1;
while (myArray.length >=1)
{
tempvar = myArray.pop();
querystring = querystring + "var"+i+"="+tempvar;
i += 1;
}
but..
since i want to send MANY variables as i said (10 arrays of bout 100-150 length) this querystring can get messy and long, and im not sure if it will work in GET, is there any way i can send variables from flash to php by using POST ?
is there an easier way to send arrays ? (using join or something then recreate the array in php ?)
i would be very glad for any hints or suggestions
View Replies !
View Related
Sending Variables
in as2 i would send variables out of the program with this code:
var url = "www.example.com";
var urlParams = url + "&courseID=" + courseID + "&empNum=" + empNum + "&bookmark=" + bookmark + "&results=" + results;
getURL(_level0.urlParams);
in as3 i've tried this:
var bookmark:* = 5;
var url:* = this.loaderInfo.parameters.url;//its really a string
var urlParams = url + "&bookmark=" + bookmark;
sendToURL(urlParams);
i get run time error #1034- cannot convert "http://insidetis11/MTISeNET/TrainingRecords/autoPostFull.aspx?tick=49&bookmark=5" to flash.net.URLRequest.
do i need a url request??? i tried it and still didn't work...
any ideas please??
Thanks
View Replies !
View Related
Sending Variables To Php
Hi,
i have 3 variables that i want to send to a php script and wait for a response.
basically i need to send
var name:String;
var email:String;
var message:String;
to a php script i have via POST, then wait for output=error or output=success.
how do i do this?
Thanks
View Replies !
View Related
Sending Swf Within A Swf Variables?
Here's the situation: I'm loading up a SWF within another SWF, and the loaded SWF loads up some XML.
I need to send the loaded SWF a variable from the parent swf to tell it which section of the XML I'd like it to load, sort of like Flashvars ala AS2.
I know I need to use loaderInfo, but I'm unclear on it's usage.
For argument's sake, let's say there's actually two variables I need to sent to the other swf, xmlvar1 and xmlvar2.
Here's my code:
ActionScript Code:
function loadExternalTree() {
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("GSTree.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.loaderInfo();
mLoader.load(mRequest);
}
View Replies !
View Related
|