I changed a few things and suddenly the inaccessable method works again.
Boy, fun. I guess I'm embracing the 'adapter' construct for emulating anonymous classes, but I wish I wasn't. I have half an idea to start over from scratch and write a very actionscripty dobj/services/receiver system that ends up looking very different on the client but still speaks to the server in the same way. Probably things would just get more and more complex until I was back here. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3983 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.threerings.presents.dobj {
|
||||
|
||||
public class SubscriberAdapter
|
||||
implements Subscriber
|
||||
{
|
||||
public function SubscriberAdapter (success :Function, failure :Function)
|
||||
{
|
||||
_success = success;
|
||||
_failure = failure;
|
||||
}
|
||||
|
||||
// documentation inherited from interface Subscriber
|
||||
public function objectAvailable (obj :DObject) :void
|
||||
{
|
||||
_success(obj);
|
||||
}
|
||||
|
||||
// documentation inherited from interface Subscriber
|
||||
public function requestFailed (oid :int, cause :ObjectAccessError) :void
|
||||
{
|
||||
_failure(oid, cause);
|
||||
}
|
||||
|
||||
protected var _success :Function;
|
||||
protected var _failure :Function;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user