Checkpoint.
Never in my life have I spent so much time debugging so little. I think the flash player is full of bugs, I've learned to just run everything two or three times and chase the error that happens the most. Fun! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3929 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -2,6 +2,9 @@ package com.threerings.presents.dobj {
|
||||
|
||||
import flash.util.StringBuilder;
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
|
||||
/**
|
||||
* An attribute changed event is dispatched when a single attribute of a
|
||||
* distributed object has changed. It can also be constructed to request
|
||||
@@ -60,7 +63,8 @@ public class AttributeChangedEvent extends NamedEvent
|
||||
* used).
|
||||
*/
|
||||
public function AttributeChangedEvent (
|
||||
targetOid :int, name :String, value :Object, oldValue :Object)
|
||||
targetOid :int = 0, name :String = null, value :Object = null,
|
||||
oldValue :Object = null)
|
||||
{
|
||||
super(targetOid, name);
|
||||
_value = value;
|
||||
@@ -83,6 +87,18 @@ public class AttributeChangedEvent extends NamedEvent
|
||||
buf.append(", value=", _value);
|
||||
}
|
||||
|
||||
public override function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
out.writeObject(_value);
|
||||
}
|
||||
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_value = ins.readObject();
|
||||
}
|
||||
|
||||
protected var _value :Object;
|
||||
protected var _oldValue :Object = UNSET_OLD_ENTRY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user