Commit Graph

231 Commits

Author SHA1 Message Date
Ray Greenwell 6f82c8b7a9 As usual, flash sucks and the NetStream object notifies us when it has seeked,
but reading the position value off the object returns the old position.
If we wait 1 frame we get the updated value.
Fuckers.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@701 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-13 00:39:46 +00:00
Ray Greenwell 9931cae098 Comments.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@699 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 18:34:03 +00:00
Ray Greenwell 59536d47ad Bugfix: stop the positionTimer when we unload.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@698 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 05:32:43 +00:00
Ray Greenwell f5e900eedd - Broke out creating the video UI into a method.
- Bank on the video UI having sane width/height. 


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@697 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 05:26:58 +00:00
Ray Greenwell e4dd02746c Broke unloading the media out into its own method.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@696 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 02:48:19 +00:00
Ray Greenwell d7e607972d Out with the old.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@695 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 00:30:15 +00:00
Ray Greenwell b18ac89db9 Cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@694 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 00:29:59 +00:00
Ray Greenwell 6294232dce Roll this back. You don't even want to see the unchecked-in code I also trashed.
Too bad the bitchy comment about adobe goes too.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@692 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-10 20:54:56 +00:00
Ray Greenwell e14212f5b4 Add a way to set the HTML text.
Oh yeah, links don't work unless the field is selectable. WHY?
Carbomb adobe.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@691 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-10 20:16:44 +00:00
Ray Greenwell b6f41f765e Autoplay FLVs, for now, like the old player did.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@688 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-06 20:09:32 +00:00
Ray Greenwell 361d5aeb61 Comment out the advanced controls, they're not ready for prime-time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@687 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-06 20:09:17 +00:00
Ray Greenwell 6e7dbada64 Dragging the knob to seek.
Works not-so-well with youtube. I'll revisit later...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@686 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-04 23:16:07 +00:00
Ray Greenwell 3ff4c5de51 Just redispatch Event.COMPLETE from our Loader.
This fixes the AVRG loading button...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@685 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-04 23:15:10 +00:00
Ray Greenwell 1e33a90f14 Checkpoint: seeking, tweaking... no peeking!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@684 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-04 03:52:34 +00:00
Ray Greenwell 343b24728c Tidied logging, including commenting out super-annoying unload messages.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@682 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-01 03:15:04 +00:00
Ray Greenwell 666999284e Use the new video player.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@681 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-01 03:10:45 +00:00
Ray Greenwell 8ee553c3e3 New video stuffs.
- VideoPlayer is the interface to the video backend.
- Adapted my old VideoDisplayer into a FlvVideoPlayer
and the SimpleVideoDisplay frontend.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@680 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-01 03:10:21 +00:00
Ray Greenwell 7ac5d036de Dispatch a COMPLETE event when we finish loading media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@679 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-31 00:10:46 +00:00
Ray Greenwell df41e4e849 Added createText() for conveniently creating a multiline text widget.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@677 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-27 23:42:03 +00:00
Jamie Doornbos c420e540d6 New method to allow a command button to be activated, emulating a user click
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@676 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-27 22:13:45 +00:00
Michael Bayne fbe0b18bb3 Bye bye log spam, hello once again readable client logs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@674 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-24 19:01:36 +00:00
Ray Greenwell 7fdedc30a3 ooo-style formatting and importing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@670 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-17 22:07:50 +00:00
Ray Greenwell 1df26e8813 Added LoaderUtil, which has unload.
Hmm, I'm not able to use unloadAndStop() yet.
Perhaps I need to grab an even newer version of the flex SDK,
so it's commented out for now.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@669 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-16 00:49:34 +00:00
Ray Greenwell a19690f205 Added countLayoutChildren(), which counts the children of a container that
have includeInLayout = true.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@668 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-15 20:45:27 +00:00
Ray Greenwell fcf091b5c1 Allow the up and down arrow keys to traverse the command history, like we do in Java.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@667 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-14 21:25:37 +00:00
Ray Greenwell c0a22fdabb Line wrappery.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@666 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-14 21:24:50 +00:00
Michael Bayne 8590d5650b Added createTipLabel().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@661 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-25 00:54:54 +00:00
Ray Greenwell ac836c1cea New chat prompt from Bill.
Yeah, not very i18n.
We're just trying this out.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@637 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-20 22:24:42 +00:00
Ray Greenwell b7e3f617f0 Fixed NPE found by Sigalig Whirligig.
I find this super annoying about flash:
    for (propName in objRef) { // this works fine if objRef is null
    if (propName in objRef) { // this NPEs if objRef is null


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@634 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-19 02:41:30 +00:00
Ray Greenwell cbe1f76632 It's the return of the chat prompter!
What's this white box on the control bar?
Now it says "type to chat" right in there when empty and unfocused.
My life is empty and unfocused, checking this in at 11:15 on friday night.
Things like this were tried in the past, and were always screwing up
and getting in the way of chatting or using the room. This is a skin,
not actual text, so it's more fuckup-proof.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@633 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-16 06:14:41 +00:00
Ray Greenwell 1ac283e675 Provide access to the send button.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@621 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-12 05:15:45 +00:00
Ray Greenwell d657cf9f3b Convenience.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@619 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:30:43 +00:00
Ray Greenwell ce7a1c9cb8 Added getCellCount() and getCellAt(), inspired by SimpleGrid.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@618 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:11:40 +00:00
Ray Greenwell 5de8a3acf7 Added this, since we do it lots of places and it often looks like an error.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@617 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 23:11:16 +00:00
Ray Greenwell 51cf6b65be Make this optional, and not the default.
Turns out a bunch of shit makes the wrapper size a little bigger,
and some things seem to freak out when the wrapper has a size,
even when includeInLayout=false.
Flex you very much.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@616 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 03:46:11 +00:00
Ray Greenwell b08f508349 Oh, fuck that. Let's just set the explicit width/height, because if
something's never measured then it never gets these set.
This might break something.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@615 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 03:32:57 +00:00
Ray Greenwell 2e9282a3e5 Make our measured size the size of the thing we're wrapping.
Half the places we use FlexWrapper we do something like this anyway.
Note that you can still override this by setting the width and height
(which sets the explicitWidth, explicitHeight).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@614 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-08-08 02:17:33 +00:00
Robin Barooah 0c7a95a8d0 Add a background jpeg encoder which uses the JPGEncoder to spread out encoding over a series of frames.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@586 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-30 01:46:22 +00:00
Robin Barooah 84be5a1da6 Hide the little helper class that came over with the JPGEncoder inside the JPGEncoder file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@585 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-30 00:13:31 +00:00
Robin Barooah 5dd60e0d45 Refactor the JPG encoder to process in time slices rather than all at once.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@584 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-29 23:57:13 +00:00
Robin Barooah 13f7a78932 Fork the as3corelib JPEG Encoder into nenya.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@583 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-29 23:56:11 +00:00
Ray Greenwell 9cdc1dd3d2 Omigosh, let's capture any errors thrown while unloading media.
I was pretty sure the event handlers did this, but Annie sent me a trace
that would seem to indicate otherwise.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@573 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-14 19:17:43 +00:00
Tom Conkling d2c253af72 DisplayUtil.positionBounds()
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@570 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-11 22:00:19 +00:00
Tom Conkling 5a0b164c3f These functions aren't actually used by sortDisplayChildren
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@569 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-11 21:40:25 +00:00
Tom Conkling 6776b83ce6 Account for kerning by always measuring the width of the truncated text field with the truncation string
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@559 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-02 00:50:51 +00:00
Tom Conkling 5d6ef34d2b TextFieldUtil.setMaximumTextWidth()
So that Robert stops breaking the UI with his ridiculously long names...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@558 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-07-01 23:14:08 +00:00
Ray Greenwell ec93c75cc2 Added setMediaBytes().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@553 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-25 22:55:16 +00:00
Ray Greenwell 25d74475d9 I saved this checkin until I was feeling destructive, and that time is now.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@551 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-24 01:27:52 +00:00
Tom Conkling d426b70e58 This is probably not such a good idea after all
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@547 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-19 20:18:24 +00:00
Tom Conkling 8168128b0f small optimization for the DisplayUtil.sortDisplayChildren common case
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@546 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-06-19 20:10:06 +00:00