Commit Graph

4893 Commits

Author SHA1 Message Date
Ray Greenwell 4f0d94df11 Whoopsie, we want to build against flex, not link it in.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4951 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-04 04:55:15 +00:00
Tom Conkling 8493434099 ArrayUtil.copyOf()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4950 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-04 03:18:31 +00:00
Dave Hoover 0b068d5189 You know, generifying that correctly is actually a big scary tunnel of dealing with
our generated services & whatnot, so that's a much deeper rabbit hole than I was 
thinking when I just did that one big, so I'm going to leave that well enough alone
for now instead of half-assing it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4949 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-03 22:11:45 +00:00
Dave Hoover 8c5e04aac5 Generify.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4948 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-03 22:06:49 +00:00
Ray Greenwell 938be601e2 Screw it, let's just do the right thing. We'll forget later.
- Use the chaining method to get a resource from ResourceManager.
- Fixed getAll so that it will not overwrite a found property with one
in the parent. Made it also understand locales and do the chaining.

This change'll cause an extra object hash lookup or two for every translation
key, but it's more Right.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4947 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-24 04:13:11 +00:00
Ray Greenwell 8823d592fd Added getAll().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4946 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-24 02:58:26 +00:00
Ray Greenwell da02f02777 Updated to work with the revamped resource handling of flex 3.
We're supposed to use ResourceManager.getString(bundleName, rsrcName)
and that will do cool locale chaining, but then we're looking up
the bundle every time. We may want to revisit this in the future.
(Cool chaining: we can compile the app with the local order as
[ "jp_JP", "en_US" ], and then if we request the "b.buy" key
from the "game" bundle, it will look in japanese for b.buy, but
fall back to english if not found.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4945 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-24 02:48:37 +00:00
Ray Greenwell 32354987f2 Updated for flex 3.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4944 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-22 22:40:51 +00:00
Ray Greenwell f52f686f19 Use the enhanced for-loop.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4943 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-21 02:30:26 +00:00
Ray Greenwell 5cbc654b13 Hm, this wasn't validating the values inside objects. Fixed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4942 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-21 02:28:59 +00:00
Tom Conkling 6dee96bb15 use Function.call(), not Function.apply()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4941 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-20 00:55:28 +00:00
Tom Conkling 8929c2e89e added RingBuffer.every(), RingBuffer.forEach(), RingBuffer.indexOf()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4940 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-20 00:40:43 +00:00
Charlie Groves 8a7f4c4121 Clarify that SetListeners get all Entry events, not just the ones for a particular set
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4939 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-19 23:05:30 +00:00
Charlie Groves 7564f88796 Expose the type on Entry* events to SetListener and SetAdapter
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4938 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-19 20:40:09 +00:00
Ray Greenwell 875d4988a3 Added Comparators.COMPARABLE.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4937 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-19 00:40:36 +00:00
Michael Bayne cde838dc45 Call the Flash libraries {library}lib.swc to match the pattern of flexlib.swc
and also to make the Maven artifact not look like a meta-artifact that brings
in all Narya/Nenya/Vilya dependencies.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4936 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-18 19:12:29 +00:00
Michael Bayne 4bb7a2f6a3 Build our Flash libraries like we build our Java libraries.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4935 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-18 18:33:25 +00:00
Ray Greenwell 8ccdf19a42 Fix docs, clarify.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-05 23:57:57 +00:00
Ray Greenwell 81c4fb64db - Use safeXML utility methods.
- Some doc improvements on StringUtil.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4933 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-05 23:48:07 +00:00
Ray Greenwell 3d2166cd8d Added utility methods for safe XML operations.
So broken! The XML class is not specified in the ECMA-262 standard.
Now I know why they needed the guidelines of ECMAscript: when left
to their own devices they design broken-ass shit.
Adobe needs a cork on their fork.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4932 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-05 23:47:20 +00:00
Ray Greenwell 2ab08d0a6f Removed dependance on mx.utils.StringUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4931 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-04 21:03:01 +00:00
Ray Greenwell 6c70ca11be Commenting improvements.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4930 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-04 21:02:42 +00:00
Ray Greenwell 206fd85f99 Updated StringUtil.toString() to print Objects (associative hashes).
Added some comments about inadequacies.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4929 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-02-01 19:34:54 +00:00
Dave Hoover 4f5d065405 Access this static method in a static way.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4928 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-31 21:26:37 +00:00
Ray Greenwell 80cbcdb396 Format our timestamp like the timestamp in our Java logs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4927 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-27 22:51:19 +00:00
Ray Greenwell bab168d443 Removed MethodQueue.setStage(), use the same trick we use in
AnimationManager and that I saw in use in Tweener: just
listen for ENTER_FRAME on some random sprite.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4926 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-24 21:47:11 +00:00
Ray Greenwell cd421f7fa7 Attempt to quit with an error code when an assertion fails.
This only works in the standalone debug player, if the swf is a trusted
local file.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4925 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-24 18:09:49 +00:00
Dave Hoover 24f557c0d7 Speeling
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4924 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-22 23:57:54 +00:00
Dave Hoover 2ce35db583 Remove unneeded casts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4923 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-17 01:25:52 +00:00
Ray Greenwell 346e4ee781 Documentation improvements.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4922 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-11 19:07:14 +00:00
Michael Bayne 34875278b3 Only run ninstall on "unix" operating systems (which includes Mac OS X).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4921 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-08 22:22:38 +00:00
Charlie Groves 643982e798 If we just bail after a connection closes during resolution, the ClientManager still thinks we're resolved and can just resume the session if the client reconnects. Resuming fails because we don't have _clobj to resume with, so the client fails to connect over and over again until the half-connected client is flushed from ClientManager's cache several minutes later. Just clear the client out of the cache immediately instead.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4920 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-08 04:12:35 +00:00
Ray Greenwell 460d826d91 Avoid calling the type constant for an event with only one type TYPE.
Follow actionscript convention and create a reasonable name for it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4919 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-01-08 01:35:01 +00:00
Ray Greenwell a5b132757b We don't need these methods, really.
They are freaking out asdoc.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-22 01:51:46 +00:00
Tom Conkling 148766903e created RingBuffer collection class
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4917 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-21 01:57:26 +00:00
Ray Greenwell 9cb8f380b0 Now you can have a simple Object hash that understands Hashable keys.
(Because it just uses a Map of your choosing under the hood.)
There is really no new functionality here, but it is neat, except for the one
stupid thing: keys get converted to Strings when iterating with a 'for' loop.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4916 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-21 00:29:04 +00:00
Michael Bayne 768e6a76be Create our shutdowner list at class init time so that it is safe to register a
shutdowner at any time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4915 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-20 22:05:49 +00:00
Ray Greenwell d70b867ddb Make null keys work with SortedHashMap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4914 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-20 21:21:44 +00:00
Ray Greenwell c90e8ef83d First pass at SortedHashMap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4913 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-20 20:20:04 +00:00
Ray Greenwell 62e8a39e52 Enable idle reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-19 20:00:36 +00:00
Ray Greenwell dd8fcfc0a7 Allow subclasses to translate the status if a nonstandard one is in use.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4911 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-19 19:14:47 +00:00
Michael Bayne 5e2a70bf5c Nix marker interface that's not used by anything. If we do ever want something
like this, we can think about where the interface would be useful.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4910 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-18 00:19:56 +00:00
Michael Bayne 6e55c2df8b Use samskivert signal wrapper.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4909 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-17 22:23:51 +00:00
Ray Greenwell 2bf1c107d1 Added a simple utility method to initialize an object with properties specified
in an initObject. This is a fairly common practice in flash and let's go ahead
and use it sometimes, even though it's prone to runtime errors.
Our version of this has a defaults Object as well as another Object that can be
specified to mask properties from the initObject.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4908 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-13 23:25:29 +00:00
Ray Greenwell 73ba77af8e Boolean reduction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4907 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-13 23:21:34 +00:00
Ray Greenwell 4a86621196 Added parseUnsignedInteger.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4906 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-13 23:21:04 +00:00
Robert Zubeck 901cb095ae Weakening the contract on Set.toArray(), to remove the non-modification guarantee from the
resulting array. Users requiring strong non-modification guarantees can manually do a deep or 
a shallow copy of the array, as appropriate for their task.




git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4905 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-10 20:35:45 +00:00
Ray Greenwell dd85d0047e Allow the currently registered ChatFilters to be retrieved.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4904 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-10 03:33:15 +00:00
Ray Greenwell 274811e8f6 Accept an optional Random for shuffle().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4903 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-06 03:34:59 +00:00
Ray Greenwell fcdace5589 Some method documentation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4902 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-12-05 02:25:44 +00:00