Nathan Curtis
9748e422c7
Let the rest of the world use the FlexWrapper - this is pulled from LayeredContainer.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@404 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-28 22:57:13 +00:00
Ray Greenwell
7dbffa80cf
Occam's razor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@403 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-24 21:54:26 +00:00
Ray Greenwell
00081d774e
If shutting down media that has a different url than it should, log both urls.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@399 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 23:34:58 +00:00
Ray Greenwell
a7e975f6da
Added addListeners(), rename event handler functions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@396 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-15 23:44:53 +00:00
Ray Greenwell
dda77910ba
Some in-progress changes that are safe to check-in now.
...
Created a function to return the mask area as a Rectangle.
Will be used when snapshotting through the media stub.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@394 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-12 00:48:20 +00:00
Ray Greenwell
3645d831a7
Some rearrangements to improve subclassability.
...
I had a subclass loading the new zip files that will be remixable avatars,
but that's going to have to be restructured (complexity++) for security
reasons.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@393 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-11 00:06:09 +00:00
Tom Conkling
7d603e2cda
DisablingButton forces a visual update after a state change is made
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@386 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-03 01:27:52 +00:00
Michael Bayne
4e50f81400
CommandMenu no longer scrolls. It now supports methods to display a menu inside
...
a visible area or to expliclty pop up or left which it correctly passes on to
its submenus.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@385 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-20 03:23:04 +00:00
Ray Greenwell
efca36dec5
Redispatch the INIT event when we get it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@384 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-19 21:13:05 +00:00
Ray Greenwell
909c1f4189
Use Util.init() to initialize TextFields and TextFormats.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@381 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-13 23:26:10 +00:00
Mark Johnson
807165e6fc
Make sure to perform the path completion steps if starting the path causes it to complete.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@375 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 19:40:14 +00:00
Mark Johnson
963b4939c5
If it's been so long since the last tick that we completely skip one
...
segment of a composite path, continue onto the next one. This should
fix part of the problem with trophy windows not sliding back out, but
doesn't explain why they're not being removed from the overlay entirely
(as the path completed functionality should still be called).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@374 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 19:12:54 +00:00
Ray Greenwell
cb704de5fa
Pet peeve: avoid "if (true) then true else false" code.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@373 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 18:20:34 +00:00
Robert Zubeck
accd0a0de7
Added distance function that can handle different types of spaces.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@371 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 03:04:33 +00:00
Tom Conkling
f8b2cb19ec
gee, maybe i should test my code before committing
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@370 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 02:00:58 +00:00
Tom Conkling
63764b85f2
unused member variable cleanup
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@369 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 01:58:24 +00:00
Tom Conkling
dc0ae2a3e8
created DisablingButton, which extends SimpleButton and adds support for a disabledState
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@368 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-12 01:55:48 +00:00
Ray Greenwell
a918c3e9e8
Adapt mx.effects.easing or Tweener functions to be used for paths.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@367 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-10 00:30:16 +00:00
Ray Greenwell
fdd85f3c2b
I'm not sure how a DisplayObjectContainer has a null child, but I'm seeing it.
...
Cope.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@366 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-05 21:17:36 +00:00
Ray Greenwell
4845965208
Document the hueShift parameter.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@365 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 22:31:12 +00:00
Par Winzell
9f3092e63a
Let our functions escape the bondage of integers and vary freely with time.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@364 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:22:21 +00:00
Par Winzell
0ed263a6ee
More silly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@363 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:19:05 +00:00
Par Winzell
356c78e6de
Oh oops, thanks Ray, this should definitely be a Number.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@362 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 19:06:45 +00:00
Par Winzell
bc8d005179
My past as a filthy foreigner haunts me.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@361 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 18:58:02 +00:00
Par Winzell
ce9204d858
What's a hermite spline without derivates? I suggest we add getSlope() or something like it to the interface/superclass; thoughts?
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@360 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-04 16:42:28 +00:00
Dave Hoover
8f2700dcc8
Keyword substitution.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@359 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-12-03 21:08:33 +00:00
Ray Greenwell
002f0d1309
So, key events are only dispatched on frames, and it seems that those happen
...
after timer events in the flash player.
What was happening was that a KEY_UP event was coming in so long after the
initial KEY_DOWN, that this code would think that the key was being held down
even when not.
So instead we wait until we actually see a 2nd KEY_DOWN event, at which point
we may need to dispatch that event right away, or we may need to wait a bit
if the limitRate is higher than the elapsed time between the two events.
Now also there is a Timer for each key being held down.
To top it all off, if you hold a key and then lose focus then this will
continue to fire, so it's going to need yet more complication to fix that.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@358 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-30 19:17:02 +00:00
Ray Greenwell
2aca740d15
Changed KeyRepeatBlocker into KeyRepeatLimiter, which can be used to block
...
key repeats, or set the repeat rate to any desired value.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@357 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 23:01:40 +00:00
Ray Greenwell
3b31fff153
TODO: stop hard-coding this width. This class used to live in msoy,
...
where this made a bit of sense, but now it doesn't.
However, I'm just going to change this here because I'm already
down a rabbit hole.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@356 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 02:14:11 +00:00
Ray Greenwell
b9fce610da
CommandLinkButton, just like CommandButton.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@355 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-29 02:08:37 +00:00
Michael Bayne
b51e484605
Unwrapped.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@354 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-27 22:52:09 +00:00
Ray Greenwell
db23c89ec0
Don't use parentChanged() to track whether we're onscreen or not,
...
it's unreliable.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@352 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-21 19:47:32 +00:00
Ray Greenwell
f922f965f1
Added utility methods: findInHierarchy and dumpHierarchy.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@349 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-14 20:11:10 +00:00
Ray Greenwell
d5315690a6
Log -> com.threerings.util.Log
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@345 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-13 09:30:50 +00:00
Nathan Curtis
e5406c5786
Thats what I get for hoping around my source tree with no regard for file location. I had no idea
...
this was in Nenya.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@334 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-09 03:35:15 +00:00
Par Winzell
400feab8f0
It's a bit counterintuitive that nothing in nenya/build.xml actually looks at all the ActionScript files... I keep forgetting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@328 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 15:27:05 +00:00
Par Winzell
45abd9a903
If it were done, when 'tis done, then 'twer well, it were done properly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@327 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 14:50:22 +00:00
Par Winzell
c9ee5f1c21
Add a Hermite interpolator for the Path code. It would be sort of nice to bring Animations and Paths under a common umbrella, by the way.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@326 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-11-01 14:27:16 +00:00
Par Winzell
9d8d509fc7
Let the world know what's playing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@323 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-31 22:23:15 +00:00
Ray Greenwell
bce057c307
Moved chat controls here.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@320 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-30 19:07:23 +00:00
Par Winzell
e89f1dbe3b
Added a helpful Animation for smooth alpha transitions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@317 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 16:09:39 +00:00
Par Winzell
7adc0b51f5
Let our clarification not be a blatant lie.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@316 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 16:02:34 +00:00
Par Winzell
17d64726a4
Clarify nature of argument.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@315 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-29 15:08:21 +00:00
Par Winzell
3f54473d60
Accept a text format to use, so the button can match the UI it appears in.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@307 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-21 21:35:25 +00:00
Michael Bayne
59186e034f
Added onStart function; cleaned up start().
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@301 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-09 07:30:35 +00:00
Michael Bayne
6f67eac059
Brought my path stuff into general purpose land and improved it in the process.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@300 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-10-09 07:17:01 +00:00
Ray Greenwell
0670fe26e7
Checking the value of a Loader's contentLoaderInfo.childAllowsParent
...
itself issues a security warning. This is the value to check to SEE if
a security exception would be thrown. So things worked, but now that I'm
testing security locally I cannot tolerate 10,000 warnings about security
filling my trace log, obliterating any other debug logging.
Hack it: just remember if we're loading an image and check that value later.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@275 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-17 00:45:19 +00:00
Ray Greenwell
603d6bb0d2
It's a security error to specify a non-null SecurityDomain to Loader
...
when in a local sandbox. Annoying.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@270 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-07-05 02:39:10 +00:00
Ray Greenwell
0250be64ac
Don't turn on variableRowHeight for every menu, but do have submenus
...
inherit their parent's setting.
It turns out, it wasn't just a problem with MediaWrapper. Using any image-based
icon seems to cause flex internal boo-boos. Too weird.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@267 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-16 00:33:48 +00:00
Ray Greenwell
7a6d334a99
Allow an already-instantiated IFlexDisplayObject to be used as the icon
...
for a menu item. JFC, this is pretty straightforward but was a fiasco
to get right because I was using a MediaWrapper as the icon, and something
wasn't playing nicely (not yet debugged), but the error looked like
it was with the Menu superclass.
Also set all CommandMenus to have variableRowHeight.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@266 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-06-16 00:09:23 +00:00