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




HOW DO I CREATE FORM FIELD



HOW DO I CREATE FORM FIELD?
THANKS....qetret



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-14-2002, 04:02 PM


View Complete Forum Thread with Replies

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

How Do You Create A Drag And Drop Field To Form Question/answer Areas
I am trying to create a web page using a flash 5 interface that will have areas on the page where students select and drag a answer and drop it onto a target - if correct it will stick if not it returns back to its original position -
any help with coding would be appreciated
stuart

Hidden Form Field/email Form Field
does anyone know how to create hidden form field in flash or even help with an email input form ?

Hidden Form Field/email Form Field
does anyone know how to create hidden form field in flash or even help with an email input form ?

Form Field Validation, Specially Email Field. Any Ideas?
Hi. I have a simple flash form designed for my website i have all things done but i am not getting the idea how to validate the "Email" field like you validate it in JavaScript for an "@" and a "." to be present in the finally submitted form. I need to do it in ActionScript as the other form validation is done in it as well. Please let me know if you can help. Thanks

Form Field Validation, Specially Email Field. Any
Hi. I have a simple flash form designed for my website i have all things done but i am not getting the idea how to validate the "Email" field like you validate it in JavaScript for an "@" and a "." to be present in the finally submitted form. I need to do it in ActionScript as the other form validation is done in it as well. Please let me know if you can help. Thanks

Help With Create Text Field
Okay I'm really new to create text field. I am trying to make some text appear (obviously) so I decided to create an object that would execute it and then I could place the text. What's wrong with it?

ActionScript Code:
attachText = function(textName, depth, x, y, newWidth, newHeight)   {    this.textName = textName;    this.depth = depth;    this.x = x;    this.y = y;    this.newWidth = newWidth;    this.newHeight = newHeight;        this.textClip = _root.createTextField(this.textName, this.depth, this.x, this.y, this.newWidth, this.newHeight);};this.attackText = new attachText("hitAmntText", 150, this.attackWho.clip._x, this.attackWho.clip._y-50, 200, 100);this.attackText.textClip.text = this.hitAmnt;

I am also new to OOP so go easy if it's way off Any help, greatly appreciated! thanks

Can't Create A New Text Field
Hi

If I have this code on scene 1

Code:
this.createTextField("word_txt", 2000, 100, 100, 300, 100);
word_txt.multiline = true;
word_txt.wordWrap = true;
word_txt.border=true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
word_txt.text = "This is my first test field object text. created on scene 1";
word_txt.setTextFormat(my_fmt);
it works fine

But I want it on scene 2. WHen I do it doesn't work. I have tried putting this.getNextHighestDepth() instead of 2000, and removing the this from this.create...

But nothing works

Can anybody help please

thanks

E

Help With Create Text Field
Okay I'm really new to create text field. I am trying to make some text appear (obviously) so I decided to create an object that would execute it and then I could place the text. What's wrong with it?

ActionScript Code:
attachText = function(textName, depth, x, y, newWidth, newHeight)   {    this.textName = textName;    this.depth = depth;    this.x = x;    this.y = y;    this.newWidth = newWidth;    this.newHeight = newHeight;        this.textClip = _root.createTextField(this.textName, this.depth, this.x, this.y, this.newWidth, this.newHeight);};this.attackText = new attachText("hitAmntText", 150, this.attackWho.clip._x, this.attackWho.clip._y-50, 200, 100);this.attackText.textClip.text = this.hitAmnt;

I am also new to OOP so go easy if it's way off Any help, greatly appreciated! thanks

How Do I Dynamicly Create A Text Field?
Is it possible in FlashMX to dynamically create text fields? I'd like to know how to make FlashMX generate a text field with given properties. I'd also like to know how to dynamically change the color, size, font, etc, when the user clicks a button.

How To Create A Input Box Field Dynamically
hello,

how do i create a input box field dynamically.....

Create A Text Field Output
I am using flash 4 and following an excerpt from flash 4 bible- its telling me to create a Text Field variable called "percentageOutput"

I do not see Text Field Variable as one of my options under frame properties > actions tab. What am I missing?

Thanks!
CRO8

Create Text Field And Scrollbar
I am creating a text field with createTextField();

I need to add a scroll bar to it. Any ideas?

Thanks....Rob

How To Create Dynamic Text Field
hello all,
anyone please hav a look at this source files and reply with explanation..

this is my AS code..

Code:
this.createEmptyMovieClip("box_mc", 1);
box_mc[i].lineStyle(1, 0xcc6600, 100, true, "none", "round", "miter", 4);
r = 300;
function loadXML(loaded) {
if (loaded) {
var xmlNode = this.firstChild;
var total = xmlNode.childNodes;
for (i=0; i<=total.length-1; i++) {
col = total[i].attributes.bgcolor;
siz = total[i].attributes.Line_Size;
opaz =total[i].attributes.opasity;
var boxMC:MovieClip = this.createEmptyMovieClip("box_mc"+i, this.getNextHighestDepth());
box_mc.moveTo(0, r);
box_mc.lineStyle(siz,col, opaz, true, "none", "round", "miter", 0);
var total1 = xmlNode.childNodes[i].childNodes;
for (j=0; j<=total1.length-1; j++) {
valx = parseInt(total1[j].attributes.xval);
valy = parseInt(total1[j].attributes.yval);
box_mc.lineTo(valx, r-valy);

this.holder_mc.createEmptyMovieClip("keyword_mc"+j, getNextHighestDepth());
this.holder_mc["keyword_mc"+j].createTextField("keyword_txt", getNextHighestDepth());
this.holder_mc["keyword_mc"+j].keyword_txt.text = "("+valx+","+valy+")";
This is my xml file..


Code:
<?xml version="1.0" encoding="utf-8"?>
<FINANCIAL>
<graph1 bgcolor="0x78A615" Line_Size="1" opasity="100">
<value xval="20" yval="30.6"/>
<value xval="30.5" yval="32"/>
<value xval="40" yval="35"/>
<value xval="50" yval="40"/>
<value xval="60" yval="43"/>
<value xval="70" yval="70"/>
<value xval="80" yval="30"/>
<value xval="90" yval="52"/>
<value xval="100" yval="56"/>
<value xval="110" yval="58"/>
<value xval="120" yval="60"/>
<value xval="130" yval="64"/>
<value xval="140" yval="66"/>
<value xval="150" yval="40"/>
<value xval="160" yval="51"/>
<value xval="170" yval="55"/>
<value xval="180" yval="72"/>
<value xval="190" yval="20"/>
<value xval="200" yval="23"/>

</graph1>

<graph2 bgcolor="0xFF3300" Line_Size="3" opasity="70">
<value xval="20" yval="140"/>
<value xval="30" yval="146"/>
<value xval="40" yval="150"/>
<value xval="50" yval="200"/>
<value xval="60" yval="140"/>
<value xval="80" yval="300"/>
<value xval="100" yval="230"/>
<value xval="110" yval="280"/>
<value xval="120" yval="290"/>
<value xval="130" yval="292"/>
<value xval="140" yval="296"/>
<value xval="150" yval="286"/>
<value xval="160" yval="288"/>
<value xval="170" yval="276"/>
<value xval="180" yval="270"/>
<value xval="190" yval="266"/>
<value xval="200" yval="296"/>
<value xval="210" yval="246"/>
<value xval="220" yval="276"/>
<value xval="230" yval="279"/>
<value xval="240" yval="289"/>
<value xval="260" yval="249"/>
<value xval="270" yval="239"/>
<value xval="280" yval="242"/>
<value xval="300" yval="241"/>
<value xval="310" yval="246"/>
<value xval="320" yval="230"/>
<value xval="330" yval="200"/>
<value xval="340" yval="202"/>
<value xval="350" yval="205"/>
<value xval="360" yval="207"/>
<value xval="370" yval="199"/>
<value xval="380" yval="190"/>
<value xval="390" yval="191"/>
<value xval="400" yval="199"/>
<value xval="410" yval="210"/>
<value xval="420" yval="211"/>
<value xval="430" yval="212"/>
<value xval="440" yval="216"/>
<value xval="450" yval="210"/>
<value xval="460" yval="214"/>
<value xval="470" yval="219"/>
<value xval="480" yval="250"/>
<value xval="490" yval="247"/>
<value xval="500" yval="246"/>
<value xval="510" yval="246"/>
<value xval="520" yval="246"/>
<value xval="530" yval="246"/>
<value xval="540" yval="246"/>
</graph2>
</FINANCIAL>
i want to show each values at my graph when i move my cursor over the graph..
ie There r two graphs in my output ..ok..
it doesn't show any values.. When i move my cursor over the graph means it will automatically show the value.. like this (20,30.6)

I am using one actionscript coding to create text field but it not workin.. I dont know why..?
Any help will be appriciated..
Thanks n advance..

Create Text Field Via Function?
I am trying to make a function that creates a text field on the fly

with a unique instance name, though trying to figure out how to make the instance name work right is giving my alot of trouble any Ideas??

heres my code:

Code:
function createInput(txtInsName:String, depth:Number, posX:Number, posY:Number, boxWidth:Number, boxHieght:Number){
myInput.createTextField(txtInsName, depth, posX, posY, boxWidth, boxHieght);
txtInsName.type = "input"
txtInsName.border = true;
txtInsName.multiline = true;
txtInsName.wordWrap = true;
txtInsName.text = "";
var my_fmt = new TextFormat();
my_fmt.font = "Arial";
my_fmt.size = 12;
my_fmt.color = 0x000000;
txtInsName.setTextFormat(my_fmt);

}

createInput("mycustonText", 101, 100, 150, 150, 25);

Can I Create A Curved Text Field?
Hi all,

is it possible to create a static curved text field?

I know you can do it as a movie by breaking each letter into individual symbols, but I need a solution that is just a static text field that can be typed straight into.

Its a template file you see - a pie chart -  for other flash newbies to use and has to be dummy proof, so that they can type straight into it. code or animation is a no no.

A simple static curved text field? Is it possible?

Thanks in advance...

Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...

Currently I'm using javascript which works fine to pass text from textfield A to textfield B:


Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.

Your help/advice would be greatly appreciated,

-Scott

Tab Key To Next Form Field
I have a form-like interface. I want to polish it off by setting it up to allow the user to press the tab key to advance to the next input text field. It seems that there should be a tutorial for this, but I can't find one. Any suggestions?

Form Field
Hi
How do I apply a script like this to a Form text-field?

<input type="text" value="Newsletter" onFocus="clearText(this)">

This javascript is placed in the header of the HTML-file

<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>

The script empties the textfield as the user clicks it!
The textfield has the varible letterField applied to it in the Flash-file.

Lars

Form Field Value And No Value
How can I do this in flash. You know how in html forms you can do this:


PHP Code:



onblur="this.value='enter email address';" onfocus="this.value='';" 




What I have are some form fields that have some text in it as a defalut value then when the person sets focus in the form field the value disappears. Now if the place a value in the form field then move to the next form field thus losing focus on the first form field. I would like the info they input in there to remain there. But if nothing was placed show the default value. I know how to do it in html but not in flash. Pleez help. Would love to do some flash forms.

Create A Popup Within Dynamic Text Field
Hi,

I have a dynamic text field that displays the information within a txt file, the problem is that I need the text field to launch a pop window... I'm trying to use javascript window.open but it isn't working. Does anyone know any workaround.

Many thx,
Nolas

Trying To Create Pop-up Text Input Data Field In F5
I'm trying to create an input text field that pops up (like the combo box compenent in MX) using Flash 5.

Does anyone know how to do this?

Thanks.

Dynamically Create Buttons Containing Text Field
ok here's what i'm trying to do. I've tried a lot of things so far and all with no luck...

I need to create a list of buttons each of which contains text which is loaded dynamically. The idea is to have an external file with a list of names and upon loading this file flash will generate the appropriate number of buttons each with a name.

So far what i've done is load the names in to an array. and then iterate though the array each time trying to generate a new instance of a button with incremented coordinates and the respective name.

i'll keep plugging away but any ideas would be much appreciated.
thanks.

How Do You Create A Link In A Dynamic Text Field?
Hi,

I've got a scrolling dynamic text field with a scroll bar controlling the position of the text, and I was just wondering how you create a link within the text field?

Thanks.

Create The Text Field With Relative Path
If I load txt a want to create text field and the assign the loaded vars to my txt field.
I can create the text field with absolute path _root.createTextField , but I would like to create this with relative path, how can I make it?
Now it works so:

Code:
//*********** LOAD VARIABLES ****************
myVars = new LoadVars ();
myVars.onLoad = function (success)
{
if (success)
{
trace ("variables from txt file loaded FRAME 3!");
// create text for menu ABSOLUTE PATH
_root.createTextField ("menu1_txt", getNextHighestDepth (), 17, 15, 90, 18);
//
menu1_txt.text = this.var_menu1;
menu1_txt.border = true;
menu1_txt.selectable = false;
menu1_txt.setTextFormat (myTF_fmt);
menu2_txt.text = this.var_menu2;
menu3_txt.text = this.var_menu3;
menu4_txt.text = this.var_menu4;
menu5_txt.text = this.var_menu5;
menu6_txt.text = this.var_menu6;
menu7_txt.text = this.var_menu7;
menu8_txt.text = this.var_menu8;
menu9_txt.text = this.var_menu9;
}

Create The Text Field With Relative Path
If I load txt a want to create text field and the assign the loaded vars to my txt field.
I can create the text field with absolute path _root.createTextField , but I would like to create this with relative path, how can I make it?
Now it works so:

Code:
//*********** LOAD VARIABLES ****************
myVars = new LoadVars ();
myVars.onLoad = function (success)
{
if (success)
{
trace ("variables from txt file loaded FRAME 3!");
// create text for menu ABSOLUTE PATH
_root.createTextField ("menu1_txt", getNextHighestDepth (), 17, 15, 90, 18);
//
menu1_txt.text = this.var_menu1;
menu1_txt.border = true;
menu1_txt.selectable = false;
menu1_txt.setTextFormat (myTF_fmt);
menu2_txt.text = this.var_menu2;
menu3_txt.text = this.var_menu3;
menu4_txt.text = this.var_menu4;
menu5_txt.text = this.var_menu5;
menu6_txt.text = this.var_menu6;
menu7_txt.text = this.var_menu7;
menu8_txt.text = this.var_menu8;
menu9_txt.text = this.var_menu9;
}

How To Create An Editable Text Field At Runtime?
I can create a text field and add it to an mc, like this:


Code:
var myTextField:TextField = new TextField();


canvas_mc.addChild(myTextField);
But it is not visible on the stage, nor can you type in it. You can pass values into it, but how do you make it editable?

Create Text Field And Getbounds With Actionscript
I am trying to create a text field that uses the getbounds command command to make the text field locate itself under a movie clip. I am loading jpeg's into the movie clip so the movie clip resizes depending on the image size. I would like the text field to appear under the movie clip no matter the size of the image. Everything is working fine except that the create text field command is executing before the movie has a chance to fully load so the text field is appearing under the original movie clip and not the resized version after the image loads. I am thinking of inserting a time delay before the create text field command carries out but I am sure that there has to be a better way. Any help with this little problem would be greatly appreciated.

Thank You

How To Create A Vertical Dynamic Text Field ?
Hello,
I am importing strings from a XML document and I send them in 2 dynamic text fields, the first one is horizontal and the second one is vertical. There is no problem with the horizontal dynamic text field ; but nothing is displayed in my vertical dynamic text field.
Is there something wrong, or is there a trick to display dynamically and vertically a text ?
Thanks.

Can I Create A 2 Column Dynamic Text Field?
I'd like to have my text that is pulled in through an xml document flow into two columns... does anyone know if this is possible? searching around- all I could find was software that would do this... I'd rather create it myself if possible.

Thanks.

Create Dynamic Text Field Problem
function buildImageBox() {
imageText = _root.Images[_root.p].attributes.title;

imageURL = _root.Images[_root.p].firstChild.nodeValue;
imageURL = "images/"+imageURL;
trace(imageURL);
thisClip = createEmptyMovieClip("image"+_root.p, this.getNextHighestDepth());





thisClip._y = (_root.p*150+40);
thisClip._x = 20;

var mcLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();

listener.onLoadInit = function(target:MovieClip):Void {
trace(target+".onLoadInit");
var thisTextClip:MovieClip = target;
target.oWidth = target._width;
target.oHeight = target._height;
trace("Width: "+target._width);
trace("Height: "+target._height);

if (target._width>target._height) {
intScale = 100/target._height;
intDupScale = 212/target._height;
target._yscale = intScale*100;
target._xscale = intScale*100;
trace(target._xscale);
} else {
intScale = 100/target._width;
intDupScale = 212/target._width;
target._yscale = intScale*100;
target._xscale = intScale*100;
trace(target._xscale);
}
// textY._y = (target._y + target._height + 15);
// textX._x = target._x;
thisTextClip.createTextField("test_txt"+_root.p, _root.scrollHolder.box1.getNextHighestDepth(), 0, 0, 100, 100);
thisTextClip["test_txt"+_root.p]._y = target._y + target._height + 10;
thisTextClip["test_txt"+_root.p]._x = target._x;

thisTextClip["test_txt"+_root.p].text = imageText;
thisTextClip["test_txt"+_root.p].wordWrap = true;
thisTextClip["test_txt"+_root.p].size = 12;
thisTextClip["test_txt"+_root.p].textColor = 0x00cc00;
thisTextClip["test_txt"+_root.p].bold = false;
thisTextClip["test_txt"+_root.p].embedFonts = true;
thisTextClip["test_txt"+_root.p].autoSize = true;
var emphatic:TextFormat = new TextFormat();
emphatic.bold = true;
emphatic.size = 16;
emphatic.font = "Georgia";
thisTextClip["test_txt"+_root.p].setTextFormat(emphatic);


trace("THIS IS THE TEXT " + thisTextClip["test_txt"+_root.p].text);
trace(thisTextClip["test_txt"+_root.p]._y + " SHOW IT TO US")
target.myName = "image"+_root.p;
target.intScale = intDupScale;
target.onRelease = function() {
duplicateImage(this.myName,this.intScale,this.oHei ght,this.oWidth);
};
if (_root.p<_root.Images.length-1) {
_root.p += 1;
buildImageBox();
}

};
mcLoader.addListener(listener);
mcLoader.loadClip(imageURL,thisClip);





}


function duplicateImage(grabThisClip, intScale, thisHeight, thisWidth) {
trace(grabThisClip);
// new Bitmap
// draw.
trace(thisWidth+" | "+thisHeight);
bmap = new flash.display.BitmapData(thisWidth, thisHeight, false, 0);
//var m:Matrix = new Matrix();
//m.scale(1,1);
//bmap.draw(grabThisClip,m);
bmap.draw(grabThisClip);

_root.addPhoto1.holder.attachBitmap(bmap,0);
_root.addPhoto1.holder._xscale = intScale*100;
_root.addPhoto1.holder._yscale = intScale*100;
_root.addPhoto1.holder._x = 0;
_root.addPhoto1.holder._y = 0;
_root.addPhoto1.holder.onPress = function() {
if (thisHeight<thisWidth) {
_root.addPhoto1.holder.startDrag(false,0,0,-_root.addPhoto1.holder._width+212,0);
} else {
_root.addPhoto1.holder.startDrag(false,0,0,0,-_root.addPhoto1.holder._height+212);
}
};
_root.addPhoto1.holder.onRelease = function() {
_root.addPhoto1.holder.stopDrag();
};
}


var myImages:String = "image";


/*clipsUp.onRelease = function() {

for (i=0; i<=_root.p; i++) {
if (eval(myImages+_root.p)._y >= 0) {
eval(myImages+i)._y -= 50;
trace("running");
}
}
};

clipsDown.onRelease = function() {

for (i=0; i<=_root.p; i++) {
if (eval(myImages+1)._y <= 40) {
eval(myImages+i)._y += 50;
trace("running");
}
}
};*/


so yea this is my code. does anyone know why mytext field wouldn't be showing up? Thanks.

Field Focus In A Form
Hello, I have a form that contains a back button, when you click the back button the movie goes to frame one where data can be input again. What I am trying to do is get the form to focus on a certain field when it goes to frame one again. I have tried Selection.setFocus and it doesnt seem to be working. the form clip is a movie placed on _level0. This is the code I am using for the back button. What am I doing wrong?

on (release, keyPress "<Left>") {
gotoAndStop (1);
Selection.setFocus("_level0.fname");

Searcher

Form Field InFocus
Hello,

I have a form and want the first text entry field to be in focus when the flash movie loads. ie, when the user starts to type in, the cursor is already in the first box.

Thanks.....Rob

Single Field Form
i've got a script and form that works perfectly with .php

now i want to create a SIMPLE form with just one field that will collect email addresses from visitors (like a newsletter sign up type thing). all i need is a single input text field, a send button, and the script and .php to make it all work.

i thought i had it, but i can't get it to work at all. is there an easy way to do this or does someone have one already made and working that i can take a look at?

thanks,
Clint

Form Field Question
I have a form with three input fields... in frame one i would like to have buttons that direct the cursor to the appropriate field in subsequent frames.

example:

i have a three buttons
email, name, message...(they go to frame 2,3,4 respectively)

i would like to click the email button and have it go to the input text field that is for the email address...

or click name and go to name field
and so on...

i have the tab order correct where it tabs through correctly.
but when i click name... it still goes to the input field for email..

which is the one on top...

is this possible

Problem With Form Field
Hi all
I have a problem with a php flash form processor i downloaded from this website
the flash form works fine and i get the email with all the fields information...
but in the "comments" field of the form - set as multiline - if you hit the "enter" button while writing the text only the first line will arrive in the mail...the rest is ignored by the php form processing file...
can you help me solve this?
here is the php code used...

<?
/************************************************** ****
**
** Flash Mx PHP Mailer
**
** By - David Khundiashvili
************************************************** *****/
/************************************************** *****
Enter your site details below!
************************************************** *****/
// Enter your contact email address here
$adminaddress = youremail@yoursite.com;
// Enter the address of your website here include http://www.
$siteaddress =http://www.yourwebsite.com;
// Enter your company name or site name here
$sitename = "yourcompany";
/************************************************** *****
No need to change anything below ...
************************************************** *****/
$date = date("m/d/Y H:i:s");
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

if ($action != ""):
mail("$adminaddress","Info Request",
"A visitor at $sitename has left the following information

First Name: $fname
Last Name: $lname
Email: $email
Telephone: $telno

The visitor commented:
------------------------------
$comments

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
mail("$email","Thank You for visiting $sitename",
"Hi $fname,

Thank you for your interest in $sitename!

Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
$sendresult = "Thank you for visiting <a href = "$siteaddress" target = "_blank"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
endif;
?>


check the $comments field...the problem happens there...only the first line will be read but if you hit enter and type more all the other text will be ignored...
thanks!

Multi-field Form To Be Sent Via Asp
Hello!

I know that there are several tutorials that show how to make forms but I'm having a heck of a time making one work.

I need to create a form that has 10 input fields in it and have that info sent to an email address via asp.

Does anyone have a multi-field form along with an mail.asp that I can look at?

thanks!

Reseting Form Field
I've created a simple form with one input field for viewers to submit an email address to join a mailing list. It works great, the only problem is after they click the submit button, the input field (message) doesn't reset OR my dynamic text field (mailstatus) thanking them for joining. Can anyone help?

this is the actionscript for my button:

on (release) {
subject = "Mailing List";
this.loadVariables("http://www.djbreak.com/simplemail.php", "POST");
}

this is my php script:

<?php

$email ="breakgetnice@aol.com";

$subject = $HTTP_POST_VARS['subject'];

$message = $HTTP_POST_VARS['message'];

mail($email, $subject, $message);

echo "mailstatus=Thank you for joining!&thescript=done&";

?>

Why This Form Field Does Not Work
i set up text feld set it to dynamic

then attached the scroll bar

and still i can not see the scroll bar just the whitefield where the scroll should be

can someone tell me what i am doing ewrong

Only 1st Field In Form Clears
Hello and thank you.

I am using Flash 8 to make an email form.
I have 5 fields but only the first field clears when you click
on the clear button.

This is the action script that I have. Any ideas?



on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (release) {
_parent.your_name="Name:";
_parent.your_phone="Phone:";
_parent.your_email="Email:";
_parent.your_weddingdate="Wedding Date:";
_parent.your_message="Message:";
}

Flash Form Field To ASP
I am using cs2 (flash 8 action script 2).

I want to take a field and send it to an asp page to use the information for a search.

It seems to recieve it in the asp page, (only it is huge---literally-see attached)


The field is named Qzip

My Flash Action Script is:
on (release) {
getURL("http://www.4manscramble.net/content/courses/search.asp", "_self", "POST");
}

My asp code isnote this is the basics as the real search is a ton of trig code)

strZIPCode = Request("Qzip")

If strZIPCode = "" then
Response.Write "<font color=red >We are sorry the zipcode wasn't read right. We have sent this issue to our team. Feel free to try again</font>"
strZIPCode = "44024"
Else
Response.Write "the zipcode is: "&strZipCode&""
End If

DatabaseQuery = "SELECT Latitude, Longitude FROM ZIPCodes WHERE ZIPCode =" & strZIPCode & " "
Response.Write ("<br>The Query ="&DatabaseQuery&"<br>")

Dim rsZIPCodes: Set rsZIPCodes = CreateObject("ADODB.Recordset")
rsZIPCodes.Open DatabaseQuery, dbConn

If rsZIPCodes.EOF Then
'ZIP Code does not exist - report to user...

Response.Write "<font color=red >We could not find that zip code. Feel free to try again</font>"


Else
do the search

//////////////////////////
at this point it seems the data passed but reall it hasn't.

If I use a regular form text field. No problem

Drop-down Form Field In AS3
Hey all,
Is it possible to make a drop-down form field w/in AS3? I don't need to send any data externally or anything -- so I don't need (I assume) any PHP code.
The selected value from the field is simply going to change a variable in the timeline.

Thx

How Do I Validate This 3 Field Form?
Here is my function checkForm.

3 Fields - Name, Message & Email

Name = This should be more than 1 character
Message = This should be more than 1 character
Email = This is booleon set (True or False)

If these 3 Fields meet up to this criteria - I would like it to proceed to the else statement I have below.

I would like a method of validation which is alot more effective than the one used below:


ActionScript Code:
function checkForm() {
   
    var myName = _root.pages_mc.nameField.text;
    var myMessage = _root.pages_mc.messageField.text;
    var myEmail = _root.pages_mc.emailField.text;
   
    //VALIDATE NAME & MESSAGE FIELD
    if (myName == ""){
        _root.pages_mc.errorField.text = "Please fill out your name";
        Selection.setFocus(_root.pages_mc.nameField);
   
    } else if (checkEmail(myEmail) == false){
        _root.pages_mc.errorField.text = "You have entered an invalid email address";
   
    } else if (myMessage == ""){
        _root.pages_mc.errorField.text = "Please leave a message";
        Selection.setFocus(_root.pages_mc.messageField);
   
    } else if (myEmail == ""){
        _root.pages_mc.errorField.text = "Please write your email address";
        Selection.setFocus(_root.pages_mc.emailField);
   
    } else {
            _root.pages_mc.errorField.text = "";
            myXML.firstChild.appendChild(myXML.createElement("entry"));
            myXML.firstChild.lastChild.attributes.myName = myName;
            myXML.firstChild.lastChild.attributes.myEmail = myEmail;
            myXML.firstChild.lastChild.appendChild(myXML.createElement("myText"));
            myXML.firstChild.lastChild.lastChild.appendChild(myXML.createTextNode(myMessage));
            myXML.sendAndLoad("processXML.php", receiverXML);      
        }
}

I've tried it running the function above and it seems to process the else statement when the if statements say otherwise. So a better method would be really helpful.

Referencing A Value Within A Form Field
Hey all...

Within my org. we have a set of variables that we can use within our .asp forms that are stored on a DB but can be called within our forms. Basically when a user longs into their machine and opens up one of our html/asp forms their user information Name/department/title/phone/branch address are auto populated within the 'profile' section at the top of the form. Below is an example of the code used:

<td width="450"><input name="UserName" type="text" id="UserName" value="<%=g_emp_fullname%>" size="50" maxlength="100">


Instead of building forms via html/asp I would like to try and build a 'smart' form via flash and pass all of the variables collected to a processessing .asp page that generates the email.

What I can't figure out is how to, within flash, reference the...value="<%=g_emp_fullname%>" , within the Flash form fields so the values come up.

I would like Flash to auto-recognize the values just like my .asp page did.
Any ideas on code referencing within Flash is greatly appreciated as always!!

Regards,

SKURGE

Form Field Focus?
Hi, I was wondering how to make a form field in flash that has text already in it when the form loads, and when the user clicks the field that text dissapears so they can enter their text.

I've also seen these forms that will put the initial text back if no text is entered and the user clicks a different text field.

Can anyone point me in the right direction? Thanks.

Form Field Validation And ASP
Hello

I have a simple Flash contact form with name,email, message, etc fields and would like ASP - not Flash - to validate the fields. So if a site visitor completes the form and presses 'submit' while having omitted the @ sign, for example, from his email address, then ASP would tell Flash to display something like 'Please complete the email address field'.

I have some ASP (VB Script) which does this, but how do I pass it to Flash, and how would I get Flash to display it in a simple dynamic text box next to the form? And what happens if more than one field has been incorrectly completed?

Many thanks for any help.

_Postman

Get Form Field Values
Hey Guys,
I'm trying to grab the values of two text fields called "userinput" and "passinput" then turn them into variables.

This is what I have
on (release, keyPress "<Enter>") {
var user = (w.e code i use to grab the value);
var pass = (w.e code i use to grab the value);

then the rest of my code continued blah blah blah

}


If you could help me this would be great.

Referencing A Value Within A Form Field
Hey all...

Within my org. we have a set of variables that we can use within our .asp forms that are stored on a DB but can be called within our forms. Basically when a user longs into their machine and opens up one of our html/asp forms their user information Name/department/title/phone/branch address are auto populated within the 'profile' section at the top of the form. Below is an example of the code used:

<td width="450"><input name="UserName" type="text" id="UserName" value="<%=g_emp_fullname%>" size="50" maxlength="100">


Instead of building forms via html/asp I would like to try and build a 'smart' form via flash and pass all of the variables collected to a processessing .asp page that generates the email.

What I can't figure out is how to, within flash, reference the...value="<%=g_emp_fullname%>" , within the Flash form fields so the values come up.

I would like Flash to auto-recognize the values just like my .asp page did.
Any ideas on code referencing within Flash is greatly appreciated as always!!

Regards,

SKURGE

Form: Active Field
Hy guys!!!
I have made a form with 7 input text boxes.

What i want: when i play the movie i want the first input text box to be "active" (as i have clicked with the mouse in it).

It's attached variable is: "name" .

I don't want to add an animated line outside the text box...

Regards,


http://www.inwww.ltd.uk



Focusing On Form Field
Im building a site with Flash MX and need to simulate the use of the DOS prompt.

In order for this to work, I need the input filed at the prompt to get focus right away. I dont want the user to be forced to mouse click on the field in order to start typing.

Any help would be great.

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