I saw same sort of error when I first used the Security3Helper class in my application just like it was used in the TestDrive. I exposed the bean as a remoting destination, as follows:
Code:
<bean id="securityHelper" class="com.riainaday.security.Security3Helper">
<flex:remoting-destination/>
</bean>
On client side, if you then define a RemoteObject for securityHelper, and also ChannelSet and channel, it should work. This is what I've done:
Code:
<mx:RemoteObject id="securityHelper" destination="securityHelper" fault="faultHandler(event)">
<mx:channelSet>
<mx:ChannelSet>
<mx:channels>
<mx:AMFChannel id="amf" url="http://localhost:8080/yourApp/messagebroker/amf"/>
</mx:channels>
</mx:ChannelSet>
</mx:channelSet>
<mx:method name="getAuthentication" result="userHandler(event)"/>
</mx:RemoteObject>
Hope it helps....
Larry