Passing Variables From Flash To HTML Form List
Hello and yes, I am stuck again.
So, here's my dilemma...
I have an HTML page with a form on the right hand side of the page and an embedded SWF on the left. Upon pressing a button with the SWF, I want to send a variable to the HTML form, to a list box. I've worked with the Javascript Integration Kit from the Expert Tutorial in the Flash 5 Bible and I don't see anything about it in the Flash MX Bible. Does anyone know how to do this?
The code I used in Flash was this:
on (press) {
getURL("javascript:FDK_AddValueToList('frmindex/selmy', 'Rogers Park', 'Rogers Park', "1'");
}
Then in Dreamweaver, I entered the this code (it isn't PHP. I couldn't get the code to show up any other way):
Any ideas?
Thanks,
jessicuh
PHP Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function FDK_AddValueToList(ListObj,TextString,ValString,Position) {
if (isNaN(parseInt(Position))) {
Position = ListObj.options.length;
}
else {
Position = parseInt(Position);
}
if (ListObj.length > Position) {
ListObj.options[Position].text=TextString;
if (ValString != "") {
ListObj.options[Position].value = ValString;
}
else {
ListObj.options[Position].value=TextString;
}
}
else {
var LastOption = new Option();
var OptionPosition = ListObj.options.length;
ListObj.options[OptionPosition] = LastOption;
ListObj.options[OptionPosition].text = TextString;
if (ValString != "") {
ListObj.options[OptionPosition].value = ValString;
}
else {
ListObj.options[OptionPosition].value=TextString;
}
}
}
//-->
</script>
</head>
<body>
<form action="" method="post" name="frmindex" id="frmindex">
<select name="selmy" size="1" multiple id="selmy">
</select>
</form>
FlashKit > Flash Help > Flash MX
Posted on: 08-18-2003, 02:02 PM
View Complete Forum Thread with Replies
Sponsored Links:
Passing Variables To HTML List Form Field
Hello and yes, I am stuck again.
So, here's my dilemma...
I have an HTML page with a form on the right hand side of the page and an embedded SWF on the left. Upon pressing a button with the SWF, I want to send a variable to the HTML form, to a list box. I've worked with the Javascript Integration Kit from the Expert Tutorial in the Flash 5 Bible and I don't see anything about it in the Flash MX Bible. Does anyone know how to do this?
The code I used in Flash was this:
on (press) {
getURL("javascript:FDK_AddValueToList('frmindex/selmy', 'Rogers Park', 'Rogers Park', "1'");
}
Then in Dreamweaver, I entered the this code (it isn't PHP. I couldn't get the code to show up any other way):
Any ideas?
Thanks,
jessicuh
PHP Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function FDK_AddValueToList(ListObj,TextString,ValString,Position) {
if (isNaN(parseInt(Position))) {
Position = ListObj.options.length;
}
else {
Position = parseInt(Position);
}
if (ListObj.length > Position) {
ListObj.options[Position].text=TextString;
if (ValString != "") {
ListObj.options[Position].value = ValString;
}
else {
ListObj.options[Position].value=TextString;
}
}
else {
var LastOption = new Option();
var OptionPosition = ListObj.options.length;
ListObj.options[OptionPosition] = LastOption;
ListObj.options[OptionPosition].text = TextString;
if (ValString != "") {
ListObj.options[OptionPosition].value = ValString;
}
else {
ListObj.options[OptionPosition].value=TextString;
}
}
}
//-->
</script>
</head>
<body>
<form action="" method="post" name="frmindex" id="frmindex">
<select name="selmy" size="1" multiple id="selmy">
</select>
</form>
View Replies !
View Related
Passing HTML Form And Hidden Variables From Flash To Html Page
Hi,
I have a html/flash site now, http://www.zachariack.com.
i access email from my site itself by giving the userid and pwd text box which i copied from the actual website hosting my email access. i copied the entire
<form...></form> tag to my page and thus was able to put the name and pwd in my home page only and access the email in a separate window.
now i have redesigned my webpage using only flash. i would like to know how i can implement the same using flash. as i have not much experience using action scripting i am a bit stuck about how you pass the hidden form variables. the below is the the exact form syntax:
<form name="form1" action="http://www.accudatanet.com/mail/msglist.php" method=post>
<input type="hidden" name=sid value="E9697301F704A0CE947DEF42CF86636A">
<input type=text size=15 name=f_user value="">
<input type=hidden name=six value=0>
<input type=password size=15 name="f_pass">
<input type=submit name=submit value="Login >>" class="button">
</form>
how do i implement the above using action scripting. thanks.
regards,
vasant
View Replies !
View Related
Passing HTML Form And Hidden Variables From Html To Flash
Hi
I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.
<html>
<script>
function Dimensiones()
{
document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;
}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>
I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks
View Replies !
View Related
Passing HTML Form And Hidden Variables From Html To Flash
Hi
I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.
<html>
<script>
function Dimensiones()
{
document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;
}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>
I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks
View Replies !
View Related
Form In Flash Not Passing Variables To Asp ?
Anyone with a solution?
Please download my version below, see if it sheds any light, needs some validation to make sure required fields are filled?
http://www.peterlewisflooring.com/contact_mc.fla.zip
Seems to be something to do with root etc..
Anone able to shed some light on this?
View Replies !
View Related
Passing Variables From Flash To PHP [form]
Hi
I have a question.
How do you pass variables from flash to php?
What I wanna do is, get the username and password entered in this form made in flash, when the submit button is hit, it will open and send these variables to login_processor.php. If the info is put in correctly, it will take them to a different page.
The login_processor.pgp works for html form, but not for flash. In flash I have two input texts, and I gave them each their own var names.
This code I assigned to my submit and reset button:
submit_btn.onRelease=function () {
getURL("login_processor", "_self", "POST");
}
reset_btn.onRelease=function () {
usernameText.text="";
passwordText.text="";
}
stop();
this script is not working, even though you put in the right info, it will take you to login_processor.php and that's it, you're not even logged in.
any ideas?
thanks alot
View Replies !
View Related
Form In Flash Not Passing Variables To Asp ?
Anyone with a solution?
Please download my version below, see if it sheds any light, needs some validation to make sure required fields are filled?
http://www.peterlewisflooring.com/contact_mc.fla.zip
Seems to be something to do with root etc..
Anone able to shed some light on this?
View Replies !
View Related
Passing Variables From Flash To PHP [form]
Hi
I have a question.
How do you pass variables from flash to php?
What I wanna do is, get the username and password entered in this form made in flash, when the submit button is hit, it will open and send these variables to login_processor.php. If the info is put in correctly, it will take them to a different page.
The login_processor.pgp works for html form, but not for flash. In flash I have two input texts, and I gave them each their own var names.
This code I assigned to my submit and reset button:
submit_btn.onRelease=function () {
getURL("login_processor", "_self", "POST");
}
reset_btn.onRelease=function () {
usernameText.text="";
passwordText.text="";
}
stop();
this script is not working, even though you put in the right info, it will take you to login_processor.php and that's it, you're not even logged in.
any ideas?
thanks alot
View Replies !
View Related
Passing Flash Variable To Html Form With Javascript?
How can I pass a variable from flash to a html form on my website? I assume I use javascript somehow.
Basically what i want to do is this :
Lets say there is a textfield in my flash movie and the user types in their name and presses the button within the movie. I want the button to pass their name to a html form field that is on the same webpage.
How can I do this?
Thanx for any help or suggestions you can give
Ryan
View Replies !
View Related
Form Passing Info To Asp Mailing List
HI
I have a form which in html format looks as below:
<FORM name=mailinglist action=default.asp method=get>
<p align=center>
<INPUT type=hidden value=FALSE name=SHOW>
<INPUT type=hidden value=MAIL name=TYPE>
<INPUT type=hidden value=1 name=id>
<INPUT name=EMAIL size="14">
<BR>
To subscribe to our mailing list
Enter your Email Address here.
<INPUT type=hidden CHECKED value=SUB name=ACTION>
<INPUT type=submit value=Subscribe>
</p>
</FORM>
I have little experience with the forms in flash but want to try and incorporate the form into flash as at present I am having to use a small Iframe tagged on to the right hand side of the main site. At present i have set up dynamic text inputs for each of the inputs in the form and assigned a variable and a vlaue to those variables where necessary. then i am passing the info to mailinglist.asp within a CMS using :
loadVariablesNum ("mailinglist.asp", "Get");
Am I heading in the right direction, cant seem to find any relevant tutorials
Any help much appreciated.
thanks in advance
ashley
using flashmx2004 (for my sins)
site is up at www.itsbiggerthan.com
View Replies !
View Related
Passing Flash Variables To HTML
Hi,
I have a question regarding passing Flash variables to HTML pages. I have looked on several resource sites but can't seem to find the answer anywhere.
Basically I have two flash movies in two separate HTML pages. The first page links to the second page and back to the first page via the Flash movies using getURL.
When the first page is reloaded, the first movie then plays from the start. I would like to pass variables from the second page to the first so that I can test for them at the start of the first movie and use gotoAndPlay to go the the relevant frame.
Is this possible with just the two HTML pages and Flash movies or would I need something server side such as PHP or ASP?
Thanks in anticipation,
Danny
View Replies !
View Related
Passing Variables From Flash To Html
Hi All.
Ok, I've got the following javascript in an html page that has an swf embeded in it:
<script language="JavaScript"><!--
function launch(url){window.open(url, "newwindow", "width=+500+, height=+300+, location=0, menubar=0, resizable=0, scrollbars=1, status=0,titlebar=1, toolbar=0");}
// --></script>
Now, 10 buttons are each to lead to a new pop up html, I want the flash to pass the variable 'url' to the html, from the button.
errrmm.... why cant I get it to work. Any ideas?
Cheers. Dongle
View Replies !
View Related
Passing Variables To XML, HTML, & FLASH
ok. Here's my project.
-Im making a website and have flash navigation that pulls its info form an external XML file.
ok. Here's my problem.
-There are about about 1500 pages. And I dont want to have 1 flash file and 1 XML file for each time the navigation changes.
Here is what I need to do.
-I want to have, if possible, 1 flash file and multiple XML files and pass variables from the specific HTML page that you are on, to the flash file and then the flash will pull a specific XML file. (confusing, i know).
I hope this is understandable.
Thanks
mtb007
View Replies !
View Related
Passing Variables Into Flash From HTML?
Hi, 2 Quick questions -
(a) Can I pass a variable into a Flash movie from its .HTML container?
(b) Can I pass a variable into a Flash movie from the browser QueryString?
Thanks,
Jim.
P.S. I know I can load variables from a text/asp file but that won't help in this case.
View Replies !
View Related
Passing Variables From Html To Flash. How?
Hi,
I have a flash file with a movie clip with actionscripted movement. It moves based on variables passed to it. So when a button sets the value of moveX to 100, it moves to _x=100. This is all easy. But how do I send moveX = 100; from an html button?
Code:
//MovieClip Actions
onClipEvent(enterFrame){
movieClip._x = moveX;
}
The code is much more complex in reality. I am just using this as an example
How can I modify this code to look for a variable set by an HTML button? What do you I use on the HTML button? I figure I would have to JavaScript, right?
Any help would be much appreciated.
Thanks,
Flip.
View Replies !
View Related
Passing Variables From Html To Flash
Im trying to figure out how to pass commands from html to flash. I made a navigation bar that needs to change color for each page, but I don't want to have to make a different navigation bar for each html page. So I want the html page to have a variable or something that flash can read and therefore interpret what page it is being displayed on.
Anyone know how to do this?
thanks.
View Replies !
View Related
Passing Variables HTML->Flash
so I was a pretty good actionscripter back in my day, but its been a few years. Anyone mind debugging this for me. It seems to be working on some platforms and not others.
--- html object tag
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="760" height="117" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="../new%20site/header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="../new%20site/header.swf?headType=company" quality="high" bgcolor="#000000" width="760" height="117" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
------------
so I am passing the variable headType=company
------------
--- actionscript in first frame of flash file
stop();
if (headType !="") {
if (headType=="home") {
gotoAndPlay (2);
}
else if (headType=="film") {
gotoAndPlay (3);
}
else if (headType=="television") {
gotoAndPlay (4);
}
else if (headType=="education") {
gotoAndPlay (5);
}
else if (headType=="factory") {
gotoAndPlay (6);
}
else if (headType=="technology") {
gotoAndPlay (7);
}
else if (headType=="partnerships") {
gotoAndPlay (8);
}
else if (headType=="company") {
gotoAndPlay (9);
}
else {
gotoAndPlay(2);
}
}
else {
gotoAndPlay(2);
}
-------------
so i really dont know what the problem is, sometimes it works, other times not.
View Replies !
View Related
Passing Variables Between Flash And Html?
hi guys!
hey does anyone know how do this?:
im wanting an html clickTag to look for a URL variable inside of a flash, does anyone know how to pass it?
eg:
flash has a variable of:
myURLstring = "http://www.google.com.au/"
and the html has:
"http://theMainURL/myFlash.swf?clickTAG=http://www.google.com/"
how do i change it to look something like this?:
"http://theMainURL/myFlash.swf?clickTAG=myURLstring"
hope that makes sence
Cheers!
View Replies !
View Related
Passing Variables From Html To Flash Movie
Hi,
When I load my game I want certain variables to be automatically passed to it. The movie is embedded into a html page created by asp, so the variables will be passed into the html easily. I just don't know how to get them from the html to the Flash.
I realise that once loaded I could use loadVariables to make an asp call, but in this case the asp has created the html page containing the variables to start with and I just want to read them in.
Hope this makes sense and somebody out there can help!
Thanks
Andy B
View Replies !
View Related
Passing Variables From The Embeded Flash Into The Html
my problem may be very simple - hopefully it is...
I think that I need to pass variables into the javascript with the head of the html - does anybody know how???
let me explain..
I was having probs with the scoreboard - as i think i mentioned before -- getting the thing to open up within a window of a set size while still sending the variables.
Okay - so I found - or variated from a code that i had found to come up with this:
getURL ("javascript:spawnWindow(window.open('http://www.myPage.com/cgi-bin/gamefiles/sendscore.exe?" add username add "&" add email add "&" add score add "&" add type add "','game5','status=yes, scroll=yes,width=400,location=yes, height=550')) ");
ok - well a bit different from that actually --- the same exluding the spawnWindow() - and i was getting it opening alright but the problem was is that the game window turned into a grey page saying"{object}" and the address bar saying javascript: bla bla --
so using this spawnWindow code - i have sort of got it to work -- but not unless i repeat the same code in the head text of the html - ok?
Now the problem - when i repeat the code - what must happen is that it spawns a window for each bit of code - i.e. - spawns one from the flash - and another one from the html---- the one from the html - requires debugging and states person is neither member nor guest.....(this is default if the variables have not been sent)
ok so far?
Now if I have the code only in the html and in flash i say getURL("javascript:spawnWindow()") - it tries to but the same thing happens.
okay - so finally i get to the question - would you know how to pass the variables into this code in the head of the html? - i.e. - is this possible?
anyone that can - I would really appreciate some help here
thanks in advance
beezer
View Replies !
View Related
Passing Variables From Html To Flash Not Working Any More.
I have had complaints from a few previous clients that their flash files weren't displaying. I have looked at them all and the problem is that any flash file with a variable passed using the url method just hangs.
eg. anything with something like this in the embedding code just hangs:
Code:
< param name="movie" value="flash/myMovie.swf?myVariable=123" >
I am completely baffled by this. Any suggestions anyone? The file hasn't changed, the html page hasn't changed, but it no longer works!
Cheers
Fergus
View Replies !
View Related
Passing Variables To Flash From Html Link
how can i pass the var to flash where i can send from post..
for example: http://www.brandlite.com/index.htm?link=exhibits
the only way i can pass it so far is hardcoding it into my html page like this...
Code:
/embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"/
where i do it in the embed src="main.swf?link=exhibits tag..
how can i pass with a link instead of hard coding.. see the thing is that i have one movie that loads all other swf.s so i want it to load the specific one that was set by the variable instead of hardionign different pages for different scenarios.
please help thanks[/code]
Quote:
<embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
View Replies !
View Related
Passing Variables From HTML To Flash: Tutorial
I've just completed a new tutorial on passing variables from HTML to Flash. In the tutorial, I show how to pass files names of external MP3's to your Flash movie. This way, you only need to edit your HTML, and never need to open the Flash to update your music player. However, the variables could be anything - a text string, numbers, etc.
The new tutorial is listed toward the bottom of the index of tutorials available.
See the new tutorial > HERE <
View Replies !
View Related
Passing Variables To Flash From HTML Link
Hi all,
I need to be able to go to a ceratin frame in a Flash website from an HTML link. I have a website that is totally built in Flash but I want to be able to go to certain frame (pages) from different links instead of always ending up on the home page. I hope I explained this well enough. On a scale of 1-10 I am about a 5 when it comes to action script. Please keep this in mind when you respond.
Thanks for any help you can give!!!
Russ
View Replies !
View Related
Passing Variables From HTML To Flash -- Not In Mozilla
Hi I am passing varibales from the Browser to Flash. It works in IE but not in Mozilla... anyone Know why? I tried "é" and the "É" method, both dont work in Mozilla.
Here's a link to show what i mean....
http://192.168.2.237/crea/resultats/...lash/index.htm
You can also check the html... I think the problem might be there...
View Replies !
View Related
Passing Variables To Flash From Html Link
how can i pass the var to flash where i can send from post..
for example: http://www.brandlite.com/index.htm?link=exhibits
the only way i can pass it so far is hardcoding it into my html page like this...
code:--------------------------------------------------------------------------------
/embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"/
--------------------------------------------------------------------------------
where i do it in the embed src="main.swf?link=exhibits tag..
how can i pass with a link instead of hard coding.. see the thing is that i have one movie that loads all other swf.s so i want it to load the specific one that was set by the variable instead of hardionign different pages for different scenarios.
i read you can do it with javascript.. i saw a tutiorial thast lets you send variables from a text field in html with a function, but i couldnt get it to get the variablkes from the address header bar.. please help
thanks
View Replies !
View Related
Passing Variables From HTML To Flash: Tutorial
I've just completed a new tutorial on passing variables from HTML to Flash. In the tutorial, I show how to pass files names of external MP3's to your Flash movie. This way, you only need to edit your HTML, and never need to open the Flash to update your music player. However, the variables could be anything - a text string, numbers, etc.
The new tutorial is listed toward the bottom of the index of tutorials available.
See the new tutorial > HERE <
View Replies !
View Related
[fmx2004] Passing Variables From Html To Flash
After reading a few posts, I wasn't able to find the answer to this.
I want to have links on several pages of my website which, when clicked, take the user to an html page called "portfolio.htm" which has a flash portfolio on it. This portfolio is set up with a series of buttons which load external .swf files for each project. How do I tell flash which .swf to load when the flash file opens.
ex: user clicks on "project x" on a web page called print.htm. The user should then be taken to portfolio.htm where a flash file resides and loads "project x" into a movie clip called "content_mc".
All the other posts I've read make reference to PHP. Is it neccesary to use PHP, or can I achieve this without PHP? Thanks for any advice you can offer.
View Replies !
View Related
Passing Variables To Flash From Html Link
how can i pass the var to flash where i can send from post..
for example: http://www.brandlite.com/index.htm?link=exhibits
the only way i can pass it so far is hardcoding it into my html page like this...
code:--------------------------------------------------------------------------------
/embed src="main.swf?link=exhibits" width="780" height="480" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"/
--------------------------------------------------------------------------------
where i do it in the embed src="main.swf?link=exhibits tag..
how can i pass with a link instead of hard coding.. see the thing is that i have one movie that loads all other swf.s so i want it to load the specific one that was set by the variable instead of hardionign different pages for different scenarios.
i read you can do it with javascript.. i saw a tutiorial thast lets you send variables from a text field in html with a function, but i couldnt get it to get the variablkes from the address header bar.. please help
thanks
View Replies !
View Related
Passing Variables From HTML To Flash: Tutorial
I've just completed a new tutorial on passing variables from HTML to Flash. In the tutorial, I show how to pass files names of external MP3's to your Flash movie. This way, you only need to edit your HTML, and never need to open the Flash to update your music player. However, the variables could be anything - a text string, numbers, etc.
The new tutorial is listed toward the bottom of the index of tutorials available.
See the new tutorial > HERE <
View Replies !
View Related
Passing List Button Variables To PHP
i dragged a list component to my stage. It's Instance Name is charter. The data in the list component is : half, full, stannard. All I want to do is get the info from this list component and send it to my email through PHP.
Now I can get info from my php using textfields because they have var names. List components only have Instance Names. I have looked and looked throughout this site and others for 2 1/2 days but nothing has helped. Can someone help with with the actionscript code and the PHP code? Please. Thanks for any info. dave
View Replies !
View Related
Passing Variables From HTML To Flash Using Query String
Am using query strings in HTML to pass variables to my flash movie so I can use the same movie but different title on each page. See www.gogojuicebars.com
Works fine when I test locally, but when uploaded the movie seems to display only the first "welcome" title on each page until you have clicked all of them. Then it works correctly???? Is almost like the flash movie is loading before the varaibles can be passed, but how can this be??
Any ideas on how to fix this?
View Replies !
View Related
Avoid Reloading Of Flash Movies When Passing Them Variables From Html
Hi all.
I've created a two-levels flash menu (mainsections each with subsections) which I am using as navigation in a html page. When I go to a different page, the html sends the movie a variable telling it to what section it should be automatically opened. Everything works fine except that when the movie receives a new variable it reloads from zero. Is there any way to avoid this without the use of frames?
Thank you very much.
View Replies !
View Related
How To Post A Variables Into Html Form By Flash
Question:
I'd like to use flash to make 3 flash buttons. Each buttons can send a variable to the specific text field in a html form.
the html form is like this:
<form name="bigsmallForm" method="POST" action="/NASApp/opg/buyBigSmall.do">
<p>
<input type="text" name="ticket.stake" size="5" value="0">
<input type="text" name="ticket.line1.betType"value="" >
<input type="text" name="ticket.line2.betType" value="">
<input type="text" name="ticket.line3.betType" value="">
<input type="text" name="ticket.line4.betType" value="">
<input type="text" name="ticket.line5.betType" value="">
<input type="text" name="ticket.multiple" value="1">
</form>
the value will past to each ticket "value"
Anyone can tell me how can I acheive this?
I think using
on(Release){
getURl(.... something post);
}
I am not sure how.
View Replies !
View Related
Passing Variables In Form Thru PHP
I am making my first form in Flash 5. It comprises of several one line text fields (subject, first_name, last_name, company, country, city, area of interest, email) and a multi-line text field (comments). I read through the tutorial at http://www.actionscripts.org/tutorials.shtml - intermediate level, tutorial 06 (PHP mail form in Flash)and I spent quite a bit of time unsuccessfully trying to adapt this code to my form;
I altered the script that gos into the PHP document by writing the following and saving it as a PHP3 file:
PHP Code:
<?php
PHP Code:
mail("visuallyinclined@yahoo.com", $subject, $message, $first_name, $last_name, $company , $country, $city, $discipline,"From: PHPMailer
Reply-To: $from
X-Mailer: PHP/" . phpversion());
I created my own form, including the text input fields in my first frame, naming the input text fields by their corresponding variables listed above (subject, first_name etc...). - and placed the thank you confirmation in the second frame. I also copied his exact script (top of page http://www.actionscripts.org/tutoria...l/index3.shtml) into my first frame
and the button actionscript (bottom of page http://www.actionscripts.org/tutoria...l/index3.shtml) was similarly attached to my button. I place the PHP file in the same location as my Flash file
the 3 problems are the following:
1. I am not receiving email.
2. When the user fills out the last field in my form, the writing is illegible.
3 In some fields the writing is bold, in others, it isn't.
4. The confirmation page works erratically
Can someone please please PLEASE take a look at my file and tell me what the problem is. The site is www.lv-em.com/form.html. I've attached my .fla for your review.
Thank you in advance!
Debbie
View Replies !
View Related
Passing Radio Buttons Variables (asp Form)
Hi Girls,Guys,Gurus!,
My problem:
I'm trying to create an ASP form with 3 radio buttons(10,20,30 km)
using Flash 5.
First I don't know how to assign a variable to a radio button,and the other thing is how the asp form should
look like(mtext04 = "number of kilometers: " & Request.Form("check") & vbcrlf ?).
All I have seen so far is how to put a dot in a radio button
but nothing else.
Any help will be really appreciate!
Einstein:Only 15% of our intelligence used,and 85% for Flash!
View Replies !
View Related
Passing Radio Button Variables In Email Form
I am trying to figure out how to pass the variables of a radio button group in an email form. I have been going through everything I can find and tried a number of approaches with no success. I am able to pass text field information with no problem but I get a "[object Object]" result for my radio buttons. I am using PHP to process the email form.
I have two radio buttons in a group named "Softwaresupply". From what I understand, I need to load the variables of the resulted selection of these two radio buttons that can then be passed to the PHP page. In my actionscript I have this set up to gather that info (why is it that you don't need to do this for the textfield info??):
function POST() {
formData = new LoadVars();
formData.Softwaresupply = "";
formData.Softwaresupply = Softwaresupply.getValue();
}
My submit button has the following code attached to it:
on (release) {
loadVariablesNum("quote.php", 0, "POST");
Softwaresupply = formData.Softwaresupply;
gotoAndStop(5);
}
The gotoandstop is simply a "thankyou for your submission screen"
My PHP to display the results is as follows: (This includes the textfield info which does work):
$message.="Name:*".$_POST['FirstName']."*".$_POST['LastName'];
$message.="
Email:*".$_POST['Email'];
$message.="
Phone:*".$_POST['Phone'];
$message.="
Purpose:*".$_POST['Purpose'];
$message.="
Software Supply:*".$_POST['Softwaresupply'];
SOOOO... what am I missing here???
Thanks,
Dave
View Replies !
View Related
Passing Variables From Html
This is the HTML
<HTML>
<HEAD>
<SCRIPT>
var reso="800"
</SCRIPT>
<BODY>
>OBJECT flash .swf..........................>
</OBJECT>
</BODY>
</HTML>
Flash needs to understand and pass the "var" script.
How can this be done.
Thanks,
Monte Darland
View Replies !
View Related
Passing Variables From Html
I can pass variables directly into a swf via the url:
Code:
http://www.wesite.com/Movie.swf?MyVar=true
and I can hard code a variable value into my movie by altering the body and embed (or whichever ones you alter)tags in the html:
Movie.swf?MyVar=true
But what I want to do is pass a variable into Flash when calling the html page it is embedded in
i.e.
Code:
http://www.website.com/page.html?MyVar=false
then the value of MyVar is passed from the html into the Flash movie embedded in it.
any ideas?
Thanks
View Replies !
View Related
Passing Variables To Html
i'm not even sure this is the right place to ask, so apologies if it isn't,
i'm a complete actionscript newbie, and i'm sweating to make this work.
here's the deal
i have a test, which at the end, must open a html , passing on 3 variables: question number, correct/not, and number of tries. I've managed to make my variables show up on a textfield, so all is ok with them so far. but i don't understand exactly how to send them. if i put an action on a frame with a "geturl" action that specifies to GET the variables, they don't show up on my url...
where do i specify *which* vars to send? do they have to be on a textfield onstage? in the same timeline? in a frame?
help!
thanks
View Replies !
View Related
Passing Variables From Html To Swf
hi... got a problem:
i used to pass values directly from an html (or php or asp) to an swf using this:
<param name="movie" value="menu.swf?type=3">
(and the other tag)
<embed src="menu.swf?type=3" ...
this used to work fine, i would have a varialbe in root called "type" with a value "3" to do my stuff. but now i can't get the swf to recognize the passed variable.
has something changed with Flash CS3? i am using action script 2
thanks
View Replies !
View Related
Passing Variables From 1 Html To Another
I was just wondering what would be the "best" way to pass a variable that's in a swf to another swf located in another html.
something like index.swf embed in index.html and sends a value to a variable to index1.swf embed in index1.html.
What I'm trying to achieve is have a user select the language he wants, plays the rest of the swf and when it reaches the last frame it does something like
ActionScript Code:
//this is the last frame of splash.swfif (language == "fr") { _root.container.loadMovie("about.swf"); //_root is on index.swf _root.getLanguage(language); //passes the value to a variable in a function}else if (language == "eng") { _root.container.loadMovie("about.swf"); _root.getLanguage(language);}
so that works perfectly when splash.swf is loaded into index.swf but now I want the same result but having splash.swf and index.swf on different html
View Replies !
View Related
|