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:
Ray Greenwell
2006-03-09 02:55:07 +00:00
parent 15cf89770f
commit 04255b383b
15 changed files with 101 additions and 41 deletions
+2 -11
View File
@@ -99,16 +99,7 @@ public class Streamer
public function writeObject (obj :Object, out :ObjectOutputStream) :void
//throws IOError
{
trace("TODO");
if (obj is Array) {
trace("Arrays not yet done. Crap!");
/**
var arr :Array = Array(obj); // not strictly necessary
var length :int = arr.length;
out.writeInt(length);
*/
}
throw new Error("Abstract");
}
public function createObject (ins :ObjectInputStream) :Object
@@ -121,7 +112,7 @@ public class Streamer
public function readObject (obj :Object, ins :ObjectInputStream) :void
//throws IOError
{
trace("TODO");
throw new Error("Abstract");
}
/**
+5
View File
@@ -1,10 +1,15 @@
package com.threerings.io {
import com.threerings.presents.Log;
public dynamic class TypedArray extends Array
{
public function TypedArray (jtype :String)
{
_jtype = jtype;
if (_jtype == "" || _jtype == null) {
Log.info("Created a typed array with bogus type {" + _jtype + "}");
}
}
public function getJavaType () :String
@@ -16,6 +16,7 @@ public class ArrayStreamer extends Streamer
{
public function ArrayStreamer (jname :String)
{
Log.debug("Created an array streamer for type: {" + jname + "}");
super(TypedArray, jname);
if (jname.charAt(1) === "[") {