From 910bb8be5b0de4ecb82c52c86aface5b6949361f Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 4 Oct 2006 23:32:17 +0000 Subject: [PATCH] We should be able to pass ByteArrays around using the EZGame kit. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@91 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/client/GameObjectImpl.as | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/ezgame/client/GameObjectImpl.as b/src/as/com/threerings/ezgame/client/GameObjectImpl.as index 2c163c60..ad9cd4b3 100644 --- a/src/as/com/threerings/ezgame/client/GameObjectImpl.as +++ b/src/as/com/threerings/ezgame/client/GameObjectImpl.as @@ -457,7 +457,11 @@ public class GameObjectImpl extends EventDispatcher // kosher! return; } - if (ClassUtil.getClass(value) != Object) { + var clazz :Class = ClassUtil.getClass(value); + if (clazz == ByteArray) { + return; // kosher + } + if (clazz != Object ) { throw new ArgumentError( "Non-simple properties may not be set."); }