[flexcoders] TypeError: Error #1006: value is not a function. AMF Error

2009-03-25 Thread djhatrick
Hi,

I've set up Zend and running my zendAMF on localhost, i can hit 
localhost/amftest with the browser, and it looks like it's trying to send AMF 
data.  but when I try with Flex, this error is thrown.  I am using a delegate 
for my service calls, and all examples shows an mxml remote object service, I 
also see nothing in Charles, it's not trapping anything.  

Any suggestions here? Thanks.

here's a peak at some code

?xml version=1.0 encoding=UTF-8? 
services-config 
services 
service id=amfphp-flashremoting-service 
class=flex.messaging.services.RemotingService 
messageTypes=flex.messaging.messages.RemotingMessage 
destination id=zend 
channels 
channel ref=my-zend/ 
/channels 
properties 
source*/source 
/properties 
/destination 
/service 
/services 
channels 
channel-definition id=my-zend 
class=mx.messaging.channels.AMFChannel 
endpoint uri=http://localhost/amftest; 
class=flex.messaging.endpoints.AMFEndpoint/ 
/channel-definition 
/channels 
/services-config


public function DelegateAMF(resultHandler:Function,eventHandler:Function)
{
service  = new RemoteObject();
service.destination  = my_zend;
service.source   = Example;
this.resultHandler   = resultHandler;
this.faultHandler= faultHandler;
}

public function validateUser(email:String,password:String):void
{
var token:AsyncToken = service.validateUser();
trace (Service)
var responder:Responder = new 
Responder(resultHandler,faultHandler);
token.addResponder(responder);
}



RE: [flexcoders] TypeError: Error #1006: value is not a function. AMF Error

2009-03-25 Thread Alex Harui
Post the entire text of the stacktrace

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of djhatrick
Sent: Wednesday, March 25, 2009 11:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TypeError: Error #1006: value is not a function. AMF Error


Hi,

I've set up Zend and running my zendAMF on localhost, i can hit 
localhost/amftest with the browser, and it looks like it's trying to send AMF 
data. but when I try with Flex, this error is thrown. I am using a delegate for 
my service calls, and all examples shows an mxml remote object service, I also 
see nothing in Charles, it's not trapping anything.

Any suggestions here? Thanks.

here's a peak at some code

?xml version=1.0 encoding=UTF-8?
services-config
services
service id=amfphp-flashremoting-service 
class=flex.messaging.services.RemotingService 
messageTypes=flex.messaging.messages.RemotingMessage
destination id=zend
channels
channel ref=my-zend/
/channels
properties
source*/source
/properties
/destination
/service
/services
channels
channel-definition id=my-zend class=mx.messaging.channels.AMFChannel
endpoint uri=http://localhost/amftest; 
class=flex.messaging.endpoints.AMFEndpoint/
/channel-definition
/channels
/services-config

public function DelegateAMF(resultHandler:Function,eventHandler:Function)
{
service = new RemoteObject();
service.destination = my_zend;
service.source = Example;
this.resultHandler = resultHandler;
this.faultHandler = faultHandler;
}

public function validateUser(email:String,password:String):void
{
var token:AsyncToken = service.validateUser();
trace (Service)
var responder:Responder = new Responder(resultHandler,faultHandler);
token.addResponder(responder);
}



[flexcoders] TypeError: Error #1006: value is not a function.

2007-11-30 Thread LyraSpace
Hi there. I'm trying to do a very simple urlRequest ...

var loader:URLLoader = new URLLoader(); 
loader.addEventListener(Event.COMPLETE,onLoadCSS); 
loader.load(new URLRequest(htmlStyles.css));

But I'm getting this error message ...

TypeError: Error #1006: value is not a function.
at url_loader/::onLoadCSS()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

I've checked and double-checked the code and it is fine. The error suggests 
problems with the EventDispatcher class itself. Anyone have any ideas at all?