# NEED HELP actionscript error for asp

**URL:** <https://forum.kirupa.com/t/need-help-actionscript-error-for-asp/205056>\
**Category:** flash\
**Created:** [October 25, 2006, 6:48pm UTC](https://forum.kirupa.com/t/need-help-actionscript-error-for-asp/205056 "2006-10-25T18:48:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scvc193223](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@scvc193223](https://forum.kirupa.com/u/scvc193223)\
**Post date:** [October 25, 2006, 6:48pm UTC](https://forum.kirupa.com/t/need-help-actionscript-error-for-asp/205056/1 "2006-10-25T18:48:26Z")

</div>

I am about to pull my hair out. I keep getting a syntax error on an actionscript to get an asp file and I haven’t been able to figure it out. below is the script and error. NEED HELP PLEASE!

**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 3: Syntax error.  
var Url\_str.String = “[http://www.scottcarlton.net/testing.aspx](http://www.scottcarlton.net/testing.aspx)”

///ActionScript///

var ObjectForm:Object = new Object();  
ObjectForm.click = function(ev:Object) {  
[COLOR=“Red”]var Url\_str.String = “[http://www.scottcarlton.net/testing.aspx](http://www.scottcarlton.net/testing.aspx)”[/COLOR]  
var Response\_lv:LoadVars = new LoadVars();  
Response\_lv.onLoad = function(success:Boolean) {  
attachMovie(“popup”, “popup”, 10);  
this[“popup”].\_x = 100;  
this[“popup”].\_y = 100;  
if(success){  
if(Response\_lv.success == “true”) {  
this[“popup”].SetMessage(“Your Information was submitted successfully.”, false);  
} else {  
this[“popup”].SetMessage(“There was an error sending your information.”, true);  
this[“popup”].SetMessage(“There was an error sending your information.”, true);  
}  
};  
var Form\_lv:LoadVars = new LoadVars();  
Form\_lv.firstName = InputFirstName.text;  
Form\_lv.lastName = InputLastName.text;  
Form\_lv.phoneNumber = InputPhone.text;  
Form\_lv.emailAddress = InputEmail.text;  
Form\_lv.how = ComboHow.selecteItem.label;  
Form\_lv.sendAndLoad(Url\_str, Response\_lv, “POST”);  
}  
ButtonSubmit.addEventListener(“click”, ObjectForm);

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [October 25, 2006, 7:29pm UTC](https://forum.kirupa.com/t/need-help-actionscript-error-for-asp/205056/2 "2006-10-25T19:29:05Z")

</div>

var Url\_str[COLOR=“Red”]:[/COLOR]String = “[http://www.scottcarlton.net/testing.aspx](http://www.scottcarlton.net/testing.aspx)”

---

<div class="post-metadata">

**Author:** ![scvc193223](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@scvc193223](https://forum.kirupa.com/u/scvc193223)\
**Post date:** [October 25, 2006, 7:57pm UTC](https://forum.kirupa.com/t/need-help-actionscript-error-for-asp/205056/3 "2006-10-25T19:57:32Z")

</div>

Thanks…I knew it would be something simple. Thanks again. I guess seeing it so much was a simple :…
