Commit Graph

566 Commits

Author SHA1 Message Date
Nathan Curtis 0cba1203c9 implement equalable
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4700 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-05-09 00:02:36 +00:00
Michael Bayne bd8ad47153 Need a toString() here too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4679 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-05-03 22:56:54 +00:00
Nathan Curtis 5acc2b767a implement toString
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4678 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-05-03 20:38:21 +00:00
Michael Bayne 80f242616e Final refactor bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4677 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-05-01 22:42:22 +00:00
Ray Greenwell 1a3eac323d - Have Controller use the CommandEvent callback dispatch stuff once
the controller has located the appropriate function.
- If the arg for a command or callback is an array, assume those are
  the parameters for the function. If you desire passing a single array
  argument, you've got to wrap it in another array, otherwise single
  args will be automatically wrapped for you.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4676 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-05-01 22:17:20 +00:00
Michael Bayne 1ca159fe34 Added isFailure().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4664 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-16 21:47:53 +00:00
Michael Bayne 2ec9d50b6f Dispatch tell failures via a TellFeedbackMessage so that we can easily route
them to the appropriate ChatDisplay when we're doing chat in IM-style
individual windows.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4663 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-16 21:42:18 +00:00
Michael Bayne 9918594bda Widened.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4662 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-16 21:17:02 +00:00
Ray Greenwell 20e9eb66bd Broke out array equals() into its own method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4661 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-14 02:59:51 +00:00
Dave Hoover f56c2ab370 Let's do keywork substitution on the actionscript; it's got all those purty $Id$ tags, too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4652 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-07 00:25:28 +00:00
Ray Greenwell c4fac45b9c Created a ServerMessageEvent that is just like a normal MessageEvent
except that messages will never leave the server. If generated on a client,
they'll go to the server and be processed like a normal event there
(event handlers will be called) but the event will not leave the server and
be sent to subscribing clients.

Changed the ManagerCaller used by PlaceObjects to use ServerMessageEvents.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4648 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-06 19:00:41 +00:00
Ray Greenwell 8d21a4e053 For some reason, content loaded into another SWF does not know its URL
until after the INIT stage. I don't think this particularly matters for
parameters, since if the URL is unknown it almost certainly means that we
will not need to do the custom parameter loading anyway, but let's just
make sure.

This also knocks a "known issue" off my list, and opens up the possibility
of remixed items loading content packs from a relative URL.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4646 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-05 17:49:13 +00:00
Ray Greenwell 546c44c600 Stop trying to recover from this error (it doesn't work), but try logging
the event target.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-04-04 21:40:03 +00:00
Ray Greenwell d389b22cd5 Try ignoring the error...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4639 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-30 22:03:59 +00:00
Ray Greenwell 77ff647b1a Maybe a stack trace can tell us more about our mysterious error.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4638 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-30 21:34:07 +00:00
Ray Greenwell a74e7493e9 Use Log.dumpStack() where the Java source used Thread.dumpStack().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-22 06:10:19 +00:00
Nathan Curtis b87abd9c95 oh yeah... ant compile doesn't build the as sources... I wondered how I got this port right with no
errors on my first try. 


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4632 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-22 03:43:36 +00:00
Nathan Curtis 8f5f52ae1b newly ported, untested (but compilable) SafeSubscriber
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-22 03:27:57 +00:00
Ray Greenwell 509e70548e It's just so handy, build-in the ability to specify a callback directly
instead of a command to CommandEvent. Weirdly, a CommandEvent will never
be generated with the callback way of doing things, but now CommandMenu and
CommandButton will both support the callback syntax.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4629 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-16 21:26:53 +00:00
Ray Greenwell 6508abbc11 Implement bodyObject's proper who().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4627 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-15 23:22:11 +00:00
Ray Greenwell 5ed85d4967 A marker interface that can be implemented by components other than normal
texty-input components that wish to have the chat system leave their focus
alone.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-13 18:47:29 +00:00
Ray Greenwell 4475382a21 For now, don't register /tell here in actionscript land.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4625 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-13 18:46:23 +00:00
Ray Greenwell 31e6bbee01 Automatically unwrap args in a MessageEvent, like we do in other events.
The way this all works is: when you send a primitive to the server, you
must wrap it up yourself, because there's no way for flash to distinguish
between the integer 3 and the floating point value 3.0.
But when it comes from the server, it's all wrapped up in a very specific
type and we can easily unwrap it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-08 21:01:33 +00:00
Ray Greenwell 5e97a04402 Change this instance back. Varargs are still a nightmare and should
generally be avoided, but nobody's going to override this method and
we're always calling a regular method on the server, not a varargs method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4622 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-08 20:12:38 +00:00
Ray Greenwell e415bb59dd Avoid var-args in actionscript, because they're pretty broken.
If you pass an array as the varargs argument, it doesn't supply the
varargs like it would in java, instead the whole array becomes the first
argument.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4621 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-08 19:35:11 +00:00
Nathan Curtis d04dd8cfeb updated per recommendation from ray
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-07 20:28:43 +00:00
Nathan Curtis 5bed2f84ec testing for line intersections... this works in at least a reasonably trivial case - it will
receive more extensive testing shortly


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-07 20:10:11 +00:00
Ray Greenwell f13e02df2b Ye olde typoe.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-06 22:39:53 +00:00
Ray Greenwell f3f810b49f Change the meaning of holdsToken(): now the token(s) specified must be
EXACTLY held. I think this is ok because all callers currently pass a single
token at a time, but I have not verified this for every project.
Please verify this for your project!
Added holdsAnyToken() which has the old behavior of returning true if any
bit is on.

I think we should change all the projects' various isSupportPlus() methods
to be just called isSupport() and those will return
holdsAnyToken(SUPPORT | ADMIN | etc);
If you need to check if a user has a single SUPPORT token but is not an
admin, you can do that by hand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4617 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-06 22:38:33 +00:00
Michael Bayne f27faf9f49 Widened, added getPlaceController().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4616 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-06 01:57:37 +00:00
Ray Greenwell 0a1999c55f ParameterUtil: read params from an XML file we're loaded from the file system.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4615 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-05 23:14:05 +00:00
Nathan Curtis 756aeac1c0 allow the use of subdomains, if wished
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4614 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-03-03 02:03:10 +00:00
Ray Greenwell 413f08f9f0 Moved flash display-specific stuff to nenya: com.threerings.flash
(to match the com.threerings.flex). Let's still put general-purpose flash
stuff here in com.threerings.util.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4613 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 22:49:32 +00:00
Ray Greenwell b49534e7a4 Tried once again to make a labeled continue work. It doesn't.
I thought maybe this was fixed, because in early betas the "with" statement
didn't work, but it does now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4612 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 19:13:15 +00:00
Ray Greenwell 48fb6e51e4 - Prevent weirdness when trying to remove our child.. someone we may get
a ROLL_OUT without having first got a ROLL_OVER?
- Clicks that land on the video control should be stopped there and not
  allowed to trickle back up, potentially triggering the furni action that
  someone's set on the video.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4611 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 05:22:47 +00:00
Ray Greenwell 2bff3befde A reasonable alpha-level video displayer.
When you mouse-over it, the controls appear, which are currently only
a pause/play button. When it reaches the end, it autorewinds and pauses.
Things:
- We may want all videos to start paused. However, since we're not using
 a streaming media server, there's no way to show the first frame without
 loading the video unless we screenshot it on the server and then include
 a secondary media ident, which we don't do. So: as long as the user has
 to load the FLV, we may as well play it and not make it just look like
 an image.
- We'll probably want to adapt this into a standalone video displayer that
 can be used to view FLVs using our UI from inside a web page.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4610 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 04:57:30 +00:00
Ray Greenwell e4d7b86d2b Cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4609 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 04:51:51 +00:00
Ray Greenwell 6bb0b50186 Another use for ValueEvent. Should be compatible with old listeners.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4608 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 03:02:54 +00:00
Ray Greenwell 8a46320e95 Re-enable video in the world.
There are a few rough edges which'll eventually get ironed out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 02:59:37 +00:00
Ray Greenwell d652de50e7 I should have created this a while back. Sometimes we just want to wild-up
some custom event to communicate a value to listeners. This is for that.

CommandEvents are close, but are all dispatched using a single 'type' value,
so a single handler must have a switch statement in it (unless you're
a controller, which has magic to call the right method.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4606 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-28 02:58:45 +00:00
Ray Greenwell a11b338156 Document something that doesn't work.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4605 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-27 19:43:55 +00:00
Ray Greenwell aedd77c17c Dispatch an event when config values change.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4603 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-26 20:11:40 +00:00
Michael Bayne 09f0bee0f3 Yet more header patrol.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4602 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-24 00:39:27 +00:00
Nathan Curtis fe7981b1bf typed container for storing two flash.geom.Point(s)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4597 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-22 23:34:13 +00:00
Ray Greenwell 573e5989b7 Go back to using mx.resources.ResourceBundle, as it's the standard thing
and turned out to not be the class that was sucking in vast quantities of
flex code. Alas.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4596 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-22 19:21:08 +00:00
Ray Greenwell bf4d4ee5ec De-flexing: created our own ResourceBundle, ditched Locale from MesageManager
(it doesn't do jack right now anyway)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4592 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-22 05:07:14 +00:00
Ray Greenwell 8da83e92cf HashMap -> HashObjectMap
Hashtable -> HashMap

The one regularly used is now called HashMap. It can have keys of simple
flash datatypes, as well as objects that implement Hashable.

HashObjectMap has the ability to use nearly any object as a key, but
pays a price for it and should be avoided unless you need it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4591 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-22 04:06:22 +00:00
Nathan Curtis 60217f11d9 fix comment to reflect reality
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4590 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-22 00:22:14 +00:00
Par Winzell f2137ff236 Added a DateUtil class with a convenience function I need.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4589 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-21 23:30:16 +00:00
Ray Greenwell 9c626246a0 Don't need this, was testing the numerator anyway.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4588 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-21 02:16:40 +00:00