Commit Graph

493 Commits

Author SHA1 Message Date
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
Ray Greenwell 7651c6d400 Added getContent() to get the top-level DisplayObject from a loaded SWF.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4587 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-21 01:52:04 +00:00
Nathan Curtis bb73488fe8 don't know how this escaped my last commit...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4586 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-20 22:59:09 +00:00
Ray Greenwell 687dbe0216 Simple frames-per-second displayer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4585 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-20 05:22:27 +00:00
Ray Greenwell 1b774f3f15 Oh hey, when I de-flexed our Log class I forgot that the flex version
had the capability to add targets (with their own module / log-level).
Add back in this capability, in very simple form for now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4584 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-17 03:03:41 +00:00
Ray Greenwell bca51291ae Video's been broken for a little while, but I had removed all my video
objects so was not seeing NPEs that others were.
Fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4581 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-15 00:54:59 +00:00
Ray Greenwell a3cb9f1f81 Fixed unstreaming a List from the server.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4579 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-15 00:15:49 +00:00
Michael Bayne bc21aaa44d Regenerated ActionScript listener marshallers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4571 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 21:51:38 +00:00
Ray Greenwell 69ea4f349f Auto-unwrap invocation response arguments as well.
Make Long not wrapped for now.
Don't svn update until after mdb regenerates everything..


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4569 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 21:49:21 +00:00
Ray Greenwell b217e87519 - Have the ArrayStreamer always look up its delegate, as it may need one
for element types other than String.
- Changed streamer init to prevent the above change from triggering
  a re-init when the delegate is looked-up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4568 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 21:31:21 +00:00
Ray Greenwell 789fe8e433 Found the streaming bug:
I was looking up streamers by java name, but passing in the actionscript
name. This was only affecting Object[]'s containing String elements
due to the addition of String to Translations.

Previously, 'java.lang.String' wasn't getting translated into the
actionscript equivalent, so it just worked. Two bugs can cancel each other out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4567 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 21:29:57 +00:00
Ray Greenwell 1e2295dd09 Use cleaner TypedArray factory method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4566 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 19:29:50 +00:00
Ray Greenwell f461149176 Do what we say we're going to do.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4565 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 19:08:08 +00:00
Michael Bayne 46a23342b3 More jockeying to make String[] streaming work and to make service group
registration work. Keeerist Flash is annoying.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4562 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 03:40:14 +00:00
Michael Bayne 40538c81ad This needs to be a TypedArray and then written out with writeObject() not
writeField(). Fiddly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4561 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 03:10:34 +00:00
Michael Bayne 4bc3e1e48d Some error message clarification, added java.lang.String to Translations, some
widening.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4560 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 03:10:05 +00:00
Michael Bayne 0a06460b24 Widening.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4559 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-12 03:09:00 +00:00
Michael Bayne cb5fd7ff55 I write two lines in the morning. I write two lines at night.
I write two lines in the afternoon and it makes me feel alright.
I write two lines in times of peace, I write two in times of war.
I write two lines before I write two lines, and then I write two more.

Bringing ActionScript world into line with the Javver.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4556 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-11 03:28:48 +00:00
Ray Greenwell d1ff63d62d ArrayIterator can be unmodifiable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4550 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-10 03:35:37 +00:00
Ray Greenwell 15c0bbbe1c It would appear to me that the logic in this method was backwards.
There is no recent (~years) modification of this line, but at the same
time it appears that none of our products use the LocationProvider.moveBody()
method, so maybe this bug has just never been tickled.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4549 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-10 02:08:08 +00:00
Ray Greenwell 334a490d75 Automatically unwrap any Wrapped arguments to any Receiver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4548 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-10 02:01:43 +00:00
Ray Greenwell e404b83531 This was never used.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4547 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-10 01:27:52 +00:00
Ray Greenwell 2e3ff5ed58 Don't let our class definitions clobber classes defined in a loaded SWF.
(Put the user content as a child of the system ApplicationDomain).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4544 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-09 01:15:08 +00:00
Par Winzell 494cda3008 Even stolen code should conform to our style.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4541 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-07 23:38:22 +00:00
Par Winzell 982830b003 Rather than trying to fix the broken linear congruence algorithm, here is a Mersenne Twister instead. It should be a drop-in replacement to whatever degree that matters.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4540 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-07 22:57:03 +00:00
Ray Greenwell f4db2536df Actionscript, you are too strange.
I thought I was casting: Function(myObject)
I gotta remember that the function-looking variants do more than cast.
For example:

  var o :Object = null;
  var s :String = String(o);
  trace(s.length); // outputs 4.   (s === "null", now)

Apparently Function(args) tries to evaluate the arguments as if they were
code. Switched to casting like (args as Function);


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4539 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-07 19:14:23 +00:00
Ray Greenwell b6886aabaa Added toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4538 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-07 03:30:48 +00:00
Ray Greenwell 8ab80b10a5 Deflexing presents.
Created a simple MethodQueue utility class that works nearly identically
to UIComponent.callLater().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4537 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-07 00:10:56 +00:00
Ray Greenwell 3c75faa8a1 Bugfix.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4536 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-07 00:05:48 +00:00