# Flash AS Problemo

**URL:** <https://forum.kirupa.com/t/flash-as-problemo/204839>\
**Category:** flash\
**Created:** [October 23, 2006, 11:29pm UTC](https://forum.kirupa.com/t/flash-as-problemo/204839 "2006-10-23T23:29:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ksuguy25](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@Ksuguy25](https://forum.kirupa.com/u/Ksuguy25)\
**Post date:** [October 23, 2006, 11:29pm UTC](https://forum.kirupa.com/t/flash-as-problemo/204839/1 "2006-10-23T23:29:30Z")

</div>

Okay i’m re using code in my current project that i’m using. I’m making a new member registration form for a website that i’m building. I build an interface with a movie clip called joinForm. Within the movie clip i have my input components with the require instances. somehow i’m not getting that thing to work.

```
 Code:
 [LEFT]stop();

```

// --------------------\<send from LoadVars\>-------------------- \  
var gatherForm:LoadVars = new LoadVars();

function sendForm() {  
gatherForm.email\_to = "ksuisa0607@gmail.com";  
gatherForm.visitor\_lastname = joinForm.userLastName.text;  
gatherForm.visitor\_name = joinForm.userName.text;  
gatherForm.visitor\_email = joinForm.userEmail.text;  
gatherForm.visitor\_origin = joinForm.userOrigin.text;

```
if (joinForm.userFreshman.selected){

```

gatherForm.visitor\_freshman = true  
}  
if (joinForm.userSophomore.selected){  
gatherForm.visitor\_sophomore = true  
}  
if (joinForm.userJunior.selected){  
gatherForm.visitor\_junior = true  
}  
if (joinForm.userSenior.selected){  
gatherForm.visitor\_senior = true  
}

```
gatherForm.send("http://ksuisa.org/send.php","POST");

```

}

// --------------------\</send from LoadVars\>-------------------- \

\_global.style.setStyle(“fontFamily”, “Bitstream Vera Sans”);  
\_global.style.setStyle(“fontWeight”, “bold”);  
\_global.style.setStyle(“fontSize”, 12);  
\_global.style.setStyle(“color”, 0x000000);

//--------------------\<submit button AS\>---------------------\

this.joinForm.submitBtn.Submit.autoSize = “center”;  
this.joinForm.submitBtn.Submit.text = “submit”;

onRollOver  
this.joinForm.submitBtn.onRollOver = function() {  
this.joinForm.submitBtn.gotoAndStop (2);  
}

onRollOut  
this.joinForm.submitBtn.onRollOut = function() {  
joinForm.submitBtn.gotoAndStop (1);  
}

onRelease  
this.joinForm.submitBtn.onRelease = function() {  
if (joinForm.userEmail.text == “” || joinForm.userName.text == “”) {  
gotoAndStop(“error”);  
} else {  
sendForm();  
gotoAndStop(“correct”);  
}  
}[/LEFT]

I saved as Inside Join just letting you know. I would love to upload the complete flash file but can’t its a huge file that is beyond the max of what the forum requires. (76 MB) so if someone private email me their email address so i can send my file to you.  
Thank you so much.

Gabriel

---

<div class="post-metadata">

**Author:** ![Ksuguy25](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@Ksuguy25](https://forum.kirupa.com/u/Ksuguy25)\
**Post date:** [October 24, 2006, 3:28pm UTC](https://forum.kirupa.com/t/flash-as-problemo/204839/2 "2006-10-24T15:28:31Z")

</div>

Anyone please help :hurt:

[quote=Ksuguy25;1983943]Okay i’m re using code in my current project that i’m using. I’m making a new member registration form for a website that i’m building. I build an interface with a movie clip called joinForm. Within the movie clip i have my input components with the require instances. somehow i’m not getting that thing to work.

```
 Code:
 [LEFT]stop();

```

// --------------------\<send from LoadVars\>-------------------- \  
var gatherForm:LoadVars = new LoadVars();

function sendForm() {  
gatherForm.email\_to = "ksuisa0607@gmail.com";  
gatherForm.visitor\_lastname = joinForm.userLastName.text;  
gatherForm.visitor\_name = joinForm.userName.text;  
gatherForm.visitor\_email = joinForm.userEmail.text;  
gatherForm.visitor\_origin = joinForm.userOrigin.text;

```
if (joinForm.userFreshman.selected){

```

gatherForm.visitor\_freshman = true  
}  
if (joinForm.userSophomore.selected){  
gatherForm.visitor\_sophomore = true  
}  
if (joinForm.userJunior.selected){  
gatherForm.visitor\_junior = true  
}  
if (joinForm.userSenior.selected){  
gatherForm.visitor\_senior = true  
}

```
gatherForm.send("http://ksuisa.org/send.php","POST");

```

}

// --------------------\</send from LoadVars\>-------------------- \

\_global.style.setStyle(“fontFamily”, “Bitstream Vera Sans”);  
\_global.style.setStyle(“fontWeight”, “bold”);  
\_global.style.setStyle(“fontSize”, 12);  
\_global.style.setStyle(“color”, 0x000000);

//--------------------\<submit button AS\>---------------------\

this.joinForm.submitBtn.Submit.autoSize = “center”;  
this.joinForm.submitBtn.Submit.text = “submit”;

onRollOver  
this.joinForm.submitBtn.onRollOver = function() {  
this.joinForm.submitBtn.gotoAndStop (2);  
}

onRollOut  
this.joinForm.submitBtn.onRollOut = function() {  
joinForm.submitBtn.gotoAndStop (1);  
}

onRelease  
this.joinForm.submitBtn.onRelease = function() {  
if (joinForm.userEmail.text == “” || joinForm.userName.text == “”) {  
gotoAndStop(“error”);  
} else {  
sendForm();  
gotoAndStop(“correct”);  
}  
}[/LEFT]

I saved as Inside Join just letting you know. I would love to upload the complete flash file but can’t its a huge file that is beyond the max of what the forum requires. (76 MB) so if someone private email me their email address so i can send my file to you.  
Thank you so much.

Gabriel[/quote]
