Commit Graph

4633 Commits

Author SHA1 Message Date
Michael Bayne 51303057c8 Add E_ versions of our errors to support a new world order wherein error
response constants start with E_ and their codes start with e..


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4491 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-20 23:33:22 +00:00
Landon Fuller 41c7e5acbc Let's use one copy of this identical code, too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4490 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-19 19:47:04 +00:00
Landon Fuller 7e4e898021 - The Apple JVM also requires the .jnilib extension.
- Use -dynamiclib instead of -bundle as per Apple's recommendation


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4489 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-19 19:39:52 +00:00
Landon Fuller 5bb6b162d4 Add Mac OS X support
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4488 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-19 19:19:12 +00:00
Mike Thomas 5f94b951d8 If we change the prefix at which we're looking for messages, reload our global bundle as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4487 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-19 18:08:54 +00:00
Michael Bayne 72416d28a1 Delete jar files when cleaning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4486 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-15 23:20:52 +00:00
Ray Greenwell 822b82baf0 Updated to not have to return a boolean from ObserverList functions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4485 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-14 02:14:01 +00:00
Ray Greenwell 8b73d881f3 Added parseURLs().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4484 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-14 00:27:57 +00:00
Ray Greenwell 7b41dbf8ba Made _panel protected instead of private.
Changed the name to _controlledPanel because otherwise it interfered with
subclass _panel variables. (Actionscript won't let variables be masked).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4483 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-13 21:37:46 +00:00
Ray Greenwell d1e629ce8f Track the client timestamp in the actionscript way.
(Time values are ints and start at 0 when the flash player starts up,
there is a different way to read the epoch millis, returned as a double)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-13 20:47:42 +00:00
Ray Greenwell c99ffa315b Made popping upwards not the default. (Which is more sensible anyway)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4481 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-13 03:07:39 +00:00
Ray Greenwell c0b89ae7a5 ColorUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4480 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-12 23:09:38 +00:00
Ray Greenwell ba4987e679 Now finally us admins can /broadcast on dev.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4479 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-09 01:31:01 +00:00
Ray Greenwell 13e5d3093d Publicize addChatter().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-09 00:41:00 +00:00
Ray Greenwell a9e60be7c7 Another well-thought out actionscript feature: varags!
In java, if you override a varargs method you can easily call super, you just
have to do a wee cast:

    @Override
    public Stuff getStuff (int thing, Object... args)
    {
        return super.getStuff(thing, (Object[]) args);
    }

In abjectscript:

    override public function getStuff (thing :int, ... args) :Stuff
    {
        // This doesn't work, because now 'args' to super is an array
        // containing OUR args array as its first element.
        return super.getStuff(thing, args);

        // We can fix things for super by 'apply'ing the function to
        // all the args in one array...
        args.unshift(thing);
        return super.apply(this, args);

        // But it could also be the case that someone is intentionally
        // passing an array to this method (many flash library methods take
        // varargs but also accept arrays and do this same thing).
        if (args.length == 1 && (args[0] is Array)) {
            args = (args[0] as Array);
        }
        return super.getStuff(thing, args); // super must ALSO do the unjimmying

        // OR, we could combine the two so that super doesn't have to
        // do unjimmying.
    }

As a note, there is an 'arguments' object that is secretly placed in every
function call, presumably so that callers can test whether an arg is
the default value because the user didn't pass it in or whether it's
the default because the user happened to pass in the default.
Guess yourself, because that doesn't seem worth adding as a language feature.
Anyway, the 'arguments' is not an array! You can't use it to call super
via 'apply'. It's another associative hash. God bless you actionscript,
you just make so much fucking sense.

So I made a utility method for unfucking vargs.

I bitch a lot, yes, but my bitching takes only a fraction of the time
that was wasted discovering whatever it is I'm bitching about
(this was fun to trace backwards to the source, oh yes), and maybe I
can save others some time as a result.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4477 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-09 00:08:09 +00:00
Ray Greenwell f9b2ef2d40 Cleaned up some wackiness that was left over from the conversion from
Java to abjectscript: substitution happens differently and the way I left
it last night was less than ideal.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4476 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-07 21:28:15 +00:00
Ray Greenwell ad4f36729b Import mx's StringUtil.substitute() into our own StringUtil, as it's annoying
to have two StringUtils.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4475 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-07 21:26:05 +00:00
Ray Greenwell 0ffa0211bc Converted the base CurseFilter to actionscript.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4474 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-07 03:43:18 +00:00
Ray Greenwell 509f61c83e Cruft removal.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4473 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-07 02:58:39 +00:00
Ray Greenwell acdd1b543c Expanding chat services that were ommitted earlier: filtering, chatters.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4472 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-07 00:11:15 +00:00
Ray Greenwell e28f419b22 escape() has nothing to do with the unescape() just below it, it's used
to prepare messages before handing them off to a MessageFormat.
We don't have those in actionscript, so we don't need to prepare.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4471 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-06 21:19:52 +00:00
Ray Greenwell b6b7e75823 Added a convenient static dumpStack() method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4470 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-06 20:21:07 +00:00
Ray Greenwell dfb4de0608 Wee Occam Jr., with his shiny oversized plastic "My First Razor"!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4469 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-06 02:50:32 +00:00
Ray Greenwell d9894b6c78 I don't think jamming things into 'source' is kosher, so do it the right
way.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4468 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-06 02:49:41 +00:00
Ray Greenwell e15d6d31d1 Found nefarious bug (when it bit me, of course).
If a listener was removed during event dispatch, the size of the list
was shrinking and putting the kibosh on listeners at the end of the list.
(The Java side avoids this due to the different way arrays work.)
- Changed the listener and subscriber lists to simple arrays, and make
  a copy prior to dispatch so that we don't miss anybody!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4467 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-06 02:48:53 +00:00
Mike Thomas 2fbd049185 Allow the prefix for where to find message translations to be set.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4466 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-01 17:28:06 +00:00
Ray Greenwell 20a9685cc4 Allow menu items to be configured with a callback function directly
(to which any args will be passed), instead of only dispatching
controller commands.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4465 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-01 03:06:42 +00:00
Ray Greenwell 06046aed9c DSet should be cloneable; ObjectUtil.copy() only works for registered
Externalizables or built-in classes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4464 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-12-01 02:24:27 +00:00
Michael Bayne 737bca0a98 Have where() use which().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4463 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-28 18:24:25 +00:00
Ray Greenwell 616f18546c Return true if we succeeded.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4462 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-27 22:06:08 +00:00
Ray Greenwell a559b48f38 Dispatch a SIZE_KNOWN event when we know our media's size.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4461 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-20 22:13:02 +00:00
Ray Greenwell d93d529ff8 Do not shutdown and reload if we're going to display the same URL, useful
for when this is used within another widget as a list item renderer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-20 21:23:33 +00:00
Michael Bayne b6d37a472a If we're trying to remove an already removed marshaller, let's hear about where we're doing it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-20 18:21:08 +00:00
Ray Greenwell 9ff4149e90 Commented out unneeded client code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4458 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-18 02:32:17 +00:00
Ray Greenwell 776761aeef Allow the occupant info to be different depending on the place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4457 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-17 20:01:36 +00:00
Michael Bayne c1e791d393 New safer library locating process.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-16 22:51:36 +00:00
Michael Bayne 287f7d32a3 New deal, projects with dependencies on libraries that may be built during a
larger build process get them from dist/lib at the top-level.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4455 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-16 21:26:44 +00:00
Ray Greenwell d42a8e9475 Regenerated from updated templates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4454 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-15 03:00:05 +00:00
Ray Greenwell 4ad212350e We need commons-collections for genservice.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4453 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-15 02:59:14 +00:00
Ray Greenwell 2ad124322d Made actionscript code generation ByteArray-aware.
(ByteArray is a special class for dealing with bytes. It does not extend
the normal Array).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4452 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-15 02:53:12 +00:00
Ray Greenwell 253d8ae90c Actionscript SetAdapter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4451 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-15 02:23:48 +00:00
Ray Greenwell cfddf38a67 Generic control for scrolling a display object around within its parent.
This doesn't (seem to) work quite right because of the way Flash does
handles component dimensions. It's designed to be overridden.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-13 22:42:38 +00:00
Ray Greenwell ff951383c3 Load images into our own security domain so that we can examine their
pixels.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-10 23:45:05 +00:00
Ray Greenwell 6dddf9c234 Re-enable the content mask.
Do not use getters/setters unless we're overridding one from a superclass.
The getters and setters hide implementation details: you never
know if a getter is doing massive amounts of computation, and it looks like
a simple field access. The nice parenthesis required for normal function
calls are a reminder to the coder that maybe they should stash that value
in a local variable if they're going to use it many times.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-10 01:32:40 +00:00
Ray Greenwell 92205abedf Temporarily turn off masking so that everyone can enjoy playing with p15n.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4447 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-09 18:30:46 +00:00
Michael Bayne 5ae9307636 Factored the curse filter out into a reusable class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4446 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-09 00:24:22 +00:00
Michael Bayne 4694c1ce17 Just who() is fine, we don't need the whole user object dumped.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4445 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-07 01:40:23 +00:00
Ray Greenwell ce2c276d87 Implemented DisplayUtil.applyToHierarchy, because the similar function
included in the mx library is unable to cope with security errors
accessing a child.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4444 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-03 22:34:10 +00:00
Ray Greenwell 9ef2673464 Apparently String concatination is really cheap in AVM2, so let's just
keep things simple.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-02 23:53:30 +00:00
Michael Bayne e9f13b66cd Beans, frank.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4442 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-11-02 05:14:46 +00:00