Advertisement

02.18.2008 at 11:41PM PST, ID: 23173653
[x]
Attachment Details

AS3 error: TypeError: Error #1006: value is not a function.

Asked by derrida in Macromedia Flash

Tags: AS3 error: TypeError: Error #1006: value is not a function.

hi
i have a form that should send post variables to a php file. but when i try to send them i can trace them but i get this error message in the output:

TypeError: Error #1006: value is not a function.
      at MethodInfo-532()


this is the code i have for that purpose:


the code comes within a function.


best regards

ron

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
var addBTN:Button = new Button();
	addBTN.move(310,300);
	addBTN.label= "Add";
	box.addChild(addBTN);
	
	addBTN.addEventListener(MouseEvent.CLICK, addit);
	
	function addit (evt:MouseEvent):void {
		
	var addingRequest:URLRequest =  new URLRequest("http://localhost/addbooktest/addPerson.php");
	
	var addVariables:URLVariables = new URLVariables();
	addVariables.fname = fname.text;
	addVariables.lname = lname.text;
	addVariables.phone = phone.text;
	addVariables.email = email.text;
	trace(addVariables);
	
	addingRequest.data(addVariables);
	addingRequest.method = URLRequestMethod.POST;
	
	sendToURL(addingRequest);
 
}
[+][-]02.19.2008 at 12:54AM PST, ID: 20926690

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 01:07AM PST, ID: 20926743

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 01:24AM PST, ID: 20926806

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Tags: AS3 error: TypeError: Error #1006: value is not a function.
Sign Up Now!
Solution Provided By: derrida
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.19.2008 at 11:56PM PST, ID: 20935802

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 12:10AM PST, ID: 20935863

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628