Commit Graph

159 Commits

Author SHA1 Message Date
Ray Greenwell ad74efc332 An adapter for a ClientObserver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4293 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-26 00:37:02 +00:00
Ray Greenwell 151a0d9d1e There's no 'throws' in ActionScript, so essentially all exceptions are
runtime. The only way to learn what might be thrown is to read all the
documentation for a method. (Complaint suppressed.)
Anyway, let's cope if we encounter an error reading from our socket.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4292 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-25 21:23:47 +00:00
Ray Greenwell 878129f75d Made a parameter name more descriptive (as well as reversing the meaning...).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4290 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-25 02:19:44 +00:00
Ray Greenwell 4d6166dc12 Added a safe navigateToURL method for sending the browser to some page.
If the user embeds the flash client on their own page, if someone then
clicks something to visit a msoy page, we will be unable to load that
page in that same tab/window. Instead, we'll be forced by flash security
restrictions to open in a blank window.
Allow for either method, falling back to a blank window if the other
method fails.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4289 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-25 02:10:20 +00:00
Ray Greenwell ed1f43bdfc Fixed up a number of TODOs; created a new Wrapped interface to simplify
auto-unwrapping.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4286 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-24 19:53:24 +00:00
Ray Greenwell fb532c1349 Added missing methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4285 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-22 00:11:51 +00:00
Ray Greenwell a9109fc4af Added the CLIENT_DID_CLEAR client event.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4284 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-21 23:41:12 +00:00
Ray Greenwell e16d838b18 Be sure to generate a DID_LOGOFF event, and a few other bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-21 21:28:57 +00:00
Ray Greenwell 85052535b4 Added a CommandMenu, which is a pop-up menu that submits configured
CommandEvents for selected items.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4282 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-20 02:14:53 +00:00
Ray Greenwell f1f6b3bdb2 Renamed ControllerEvent to CommandEvent.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4281 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-20 02:14:14 +00:00
Ray Greenwell 2f9ea3a69e Added a streaming Boolean wrapper. Untested.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4279 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-19 23:59:55 +00:00
Ray Greenwell 783b5ef33d Be sure to call super() in our clickHandler so that selected state toggles
when toggle mode is true.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4278 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-19 22:25:30 +00:00
Ray Greenwell 78c7b49f9b Created a base Controller class; added a CommandButton that submits
controller commands; have PlaceController extend Controller.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4275 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 22:30:05 +00:00
Ray Greenwell 0387014af8 Added a sort() method that operates on arrays of Comparable elements.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4273 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:22:24 +00:00
Ray Greenwell 786a8ab947 Bugfix with toArray().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4272 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:21:55 +00:00
Ray Greenwell f118e213d2 Was logging warnings for any message bundle that didn't use a custom
class. Fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4271 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:21:25 +00:00
Ray Greenwell ce3d3474f9 implement Comparable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4270 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:20:40 +00:00
Ray Greenwell 8ede77fcb2 Made toStringBuf() protected so that subclasses in other packages may
override it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4269 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:20:22 +00:00
Ray Greenwell 7ad341ef8d Removed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4267 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-14 02:15:48 +00:00
Ray Greenwell a9d0c5d285 Let's make these work correctly...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4266 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-14 02:11:06 +00:00
Ray Greenwell 947db5851d Renamed the InvocationListeners to the standard way I've been naming
inner classes over here on the actionscript side.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4265 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-13 19:08:18 +00:00
Ray Greenwell 1818bd14dd Found one of the bugs: the default ArrayStreamer was being picked to stream
TypedArrays.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4262 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 23:51:01 +00:00
Ray Greenwell 2f3584adf7 Various small fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4258 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 02:22:18 +00:00
Ray Greenwell 78cefe9a8f Added the values() function to the Map interface, as well as a new method,
forEach(), in which you pass a visitor function that will visit each key/value
stored in the map.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4257 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-11 18:22:29 +00:00
Ray Greenwell 608be4557b Some changes required for the new compiler.
- Import bleeding may be fixed, as I had to import a bunch of things I
  should have had to earlier.
- NOW they make duplicate variable definitions bad (but without block
  scoping... yay).
- Another hoopjump.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4233 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-28 22:04:19 +00:00
Ray Greenwell 80bbff432d The standard CursorManager is a total piece of shit.
Using the source code, I made one that takes the same idea and doesn't suck.
Errr, it doesn't suck as much. It's still very shitty to go from the fast
system cursor to a chunky custom cursor that updates position at the
framerate of the swf.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4228 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-27 02:08:52 +00:00
Ray Greenwell f27eb3f319 Added endsWith().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4226 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-26 22:20:26 +00:00
Ray Greenwell 459f12ded5 Copy Java's valueOf factory method for primitive wrapper classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4217 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-24 23:03:07 +00:00
Ray Greenwell f6f3c89fe0 Moved to vilya.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4213 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-23 19:20:52 +00:00
Ray Greenwell 6a8fcd80b7 Added a method to ensure a particular capacity for client preferences.
We'll call this with a big fat number whenever a non-guest logs in. The
first time we ask, the user will authorize the big fat storage, and it will
never ask again. Hopefully we can make it look like part of the login...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4202 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-21 01:02:26 +00:00
Ray Greenwell 694152013c Added toHex(uint).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4199 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-20 19:21:10 +00:00
Ray Greenwell b378bda604 Log a warning for unhandled commands.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4195 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-16 01:22:43 +00:00
Ray Greenwell b9509e434e Utility method for creating a menu item that will post controller commands.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4194 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-16 01:22:25 +00:00
Ray Greenwell 3e4ff3564d Moved this general-purpose flash/mx class here, from the msoy project.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4190 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-13 21:03:25 +00:00
Ray Greenwell f6dd283b2a Implemented positionRect and supporting functions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4186 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-09 20:59:32 +00:00
Ray Greenwell 17abf35d05 DisplayUtil, mostly placeholder now, but I'll write the rest of this method
tomorrow.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4185 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-09 01:59:32 +00:00
Ray Greenwell d948eb4f37 Added a really basic Config class for storing prefs clientside,
wired it up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4184 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-08 22:12:19 +00:00
Ray Greenwell e6e96c25fc Ported over the automatic port-retrying code, but had to modify some things
due to differences in the way flash throws errors (and apparently can't
re-use a socket object).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4183 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-08 21:44:27 +00:00
Ray Greenwell e541cf3db3 More generically clone ourselves.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4178 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-07 18:48:47 +00:00
Ray Greenwell 07c2666e8b Temporarily turn Integer keys into just ints.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4174 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-06 02:09:01 +00:00
Ray Greenwell 251566b321 - Added TokenRing
- Specify override first on overridden methods.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4170 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-05 21:28:00 +00:00
Ray Greenwell a442646791 Supress extra debuggy logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4169 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-02 02:22:11 +00:00
Ray Greenwell 86dd34a0f4 Added the TellHandler.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4168 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-01 17:35:23 +00:00
Ray Greenwell 1ae124d584 Implementing clone() is apparently "required" for subclasses of Event.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4163 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 02:32:17 +00:00
Ray Greenwell e981a9eed9 Made PlaceView extend flash's IEventDispatcher, wired up something
that sorta behaves like our controllers in java. I might be able to make
this better.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4161 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 01:27:13 +00:00
Ray Greenwell 2766a6c1f9 Added a toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4160 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 01:16:19 +00:00
Ray Greenwell 9e3c46c7a5 Unwrap integers before assigning properties. God, I wish I could just
autotranslate at the network layer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4159 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 01:15:58 +00:00
Ray Greenwell a3dfc741c6 Fixed up some event constructors that didn't have zero-arg forms.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4157 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-30 21:08:39 +00:00
Ray Greenwell 6b3aba0225 Allow zero-arg construction (for unserialization).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4154 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-27 01:51:33 +00:00
Ray Greenwell 074b7f4547 Added a note about a failed attempt at making things better.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4153 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-27 01:04:11 +00:00