Commit Graph

  • ce1ef809a9 Oops. Can't do that. Michael Bayne 2009-04-17 22:57:56 +00:00
  • 06b892bbff Allow 1.6 source but continue to target 1.5 bytecode. Michael Bayne 2009-04-17 22:49:34 +00:00
  • 3f18d80fdf Let's make all CommandMenus variableRowHeight. - What's the harm in it? Does it cause menu to do more calculation? What the fuck gus, they should have only implemented one code path and KISS. - it seems to be necessary when using separators. They are slim. When not used in a menu with separators, the separators are these hulking beasts. - it seems that when a submenu is added, things are going variable anyway. So: consistency. Ray Greenwell 2009-04-16 21:11:03 +00:00
  • a4f52c9959 ColorUtil.getHue() Tom Conkling 2009-04-16 19:17:08 +00:00
  • 148be9c17e Fix using an already-instantiated icon in the addTitle() method. Ray Greenwell 2009-04-16 01:53:40 +00:00
  • 05cbe9db64 Add support for titles in menus. Added an addTitle() convenience method. Unfortunately, styling the background of the title either impossible or so deep down the rabbit hole... deeper than this??? Ray Greenwell 2009-04-16 01:42:48 +00:00
  • 73954bafc5 No need to cast to DisplayObject to get these methods and properties. Ray Greenwell 2009-04-15 01:30:55 +00:00
  • 6d179d6ad2 Bugfix: fix y position of a submenu on an upwards-popping menu. When transforming from row coords to global coords, don't use a point in the row's parent's coords. Ray Greenwell 2009-04-15 01:22:36 +00:00
  • 7c7faa43ab Some people seem to get an OpenAL error here after being in the client for a while, so let's see if catching it allows them to soldier on. Charlie Groves 2009-04-11 21:02:56 +00:00
  • 4af549a7e4 Added getArg(), mainly so that it can be used when dispatching and overridden in subclasses. Ray Greenwell 2009-04-02 18:37:41 +00:00
  • 59a8a16ccd Need to dirty indicators when they're recomputed, otherwise the result of the recomputation doesn't show up till something else changes Charlie Groves 2009-04-01 23:36:59 +00:00
  • e9a797fef2 Line wrapping and line ending cleanup Tom Conkling 2009-03-31 22:29:18 +00:00
  • 126e58ac11 No longer need this platform hackery. Michael Bayne 2009-03-31 01:37:02 +00:00
  • 09ae3c617d Added asdoc target. Michael Bayne 2009-03-30 23:09:49 +00:00
  • 29e616700e Accept mavenized versions of our SWC depends. Michael Bayne 2009-03-30 23:05:08 +00:00
  • d5c9e38c34 More asdoc fixes. Michael Bayne 2009-03-30 23:04:54 +00:00
  • 05ee3c0f58 A helpful class for flex. Ray Greenwell 2009-03-27 01:48:17 +00:00
  • 590fef5fed DisplayUtil.transformPoint convenience function Tom Conkling 2009-03-26 18:58:08 +00:00
  • 6e123c3c8b Added scrollToKey(). Ray Greenwell 2009-03-24 22:24:02 +00:00
  • 0a4a690728 Let's use presents.dobj.EventListener (and expose a public function- oh well) and just handle all events in one place, greatly reducing line count and at the same time handling changes other than AttributeChangedEvents to the "refreshFields". Ray Greenwell 2009-03-24 21:39:41 +00:00
  • daa4dab352 Oops, didn't mean to foist that on the world (yet). Michael Bayne 2009-03-24 21:29:51 +00:00
  • 02748d3034 Properly using a flex List with sorting and filtering is tricky. Take what we've learned and make a generic class for watching a DSet and making a nice List out of it that preserves your scroll position while elements are added or removed. Ray Greenwell 2009-03-24 21:03:14 +00:00
  • afc8a7e4c7 Add method to get an array of all the tiles as mirages Charlie Groves 2009-03-24 20:14:19 +00:00
  • 8f6e10af8f Changed a bunch of Thread.dumpStack() calls into stack traces properly logged via the logging system. Michael Bayne 2009-03-24 18:46:59 +00:00
  • fdfa3aa2e5 Dispatch events indicating we're in an unready state when we're unloaded. Ray Greenwell 2009-03-20 23:53:56 +00:00
  • 7bf440c629 Since these work on urls, allow clientData to be passed in, which will be the MediaDesc in msoy. Ray Greenwell 2009-03-20 21:56:48 +00:00
  • a197042cff Updated copyright date. Michael Bayne 2009-03-19 23:44:54 +00:00
  • 40c32e0f04 Updated headers, added missing headers to some source files. Michael Bayne 2009-03-19 23:44:46 +00:00
  • aa8eea91d3 Added a STOPPED state to indicate that we've reached the end and are not paused. Support it for FLV and MP3. Ray Greenwell 2009-03-19 00:04:09 +00:00
  • 6f101a4b5f Useful for cases where you have a tileset but only want some of the tiles in your multi frame image. This means that multiple different MultiFrameImages can be created using different, possibly overlapping subsets of the same shared tileset. Mike Thomas 2009-03-18 21:34:11 +00:00
  • c32d68afd2 Break resource set checking out of NetworkResourceBundle into an abstract superclass such that non-network bundles might also share in the glory of not asking for things that aren't there Charlie Groves 2009-03-13 18:49:15 +00:00
  • 6fe87f6920 getBoolean Dave Hoover 2009-03-10 05:40:36 +00:00
  • ad9837830b Check that the new variable isn't null, not the one that we just checked two lines ago Charlie Groves 2009-03-05 23:15:42 +00:00
  • 77d71ce7ed Hacktastic support for making a TextField only mouseEnabled when the mouse is over a link. Similar in concept to some code that lived in msoy, but that special code was tied into the RoomView, which just ain't right for the chat system, and made it not work the same in games. Ray Greenwell 2009-03-04 03:12:46 +00:00
  • 1b14473f25 Added addSeparator(). Ray Greenwell 2009-03-03 00:13:13 +00:00
  • 56e43572b8 On FadableImageSprite, we need to check for end-of-path fade in/fade out PRIOR to calling super, which chats with our sprite observers. Otherwise, those sprite observers might dispatch the sprite on a new fade which would then be immediately applied at full strength rather than applying slowly over the appropriate interval. Mike Thomas 2009-02-19 22:31:15 +00:00
  • e7773e0b86 Respect the current volume in looping sounds Charlie Groves 2009-02-09 20:08:59 +00:00
  • bdbe9dab3c Fix the chat input bug. It's a mystery wrapped in a heisenbug inside sunspots. Ray Greenwell 2009-02-06 02:43:34 +00:00
  • 9e8021cc7e These trace statements have served their purpose. Adding traces to MediaStub. Ray Greenwell 2009-02-06 00:27:09 +00:00
  • ea185ceab0 Attempt to call unloadAndStop(), but remain compileable for flash 9 for the time being. Ray Greenwell 2009-02-02 21:54:31 +00:00
  • 4b4701b4aa Revert to targetting 9. Ray Greenwell 2009-01-29 20:30:51 +00:00
  • 2af7ad1dcf Roll back r760 - this was forcing use of raw images in some cases, not just allowing. Mike Thomas 2009-01-29 17:42:49 +00:00
  • 5aeb5ab0f0 Enable glorious unloadAndStop(). I did some tests with it, and it sure does put the kibosh on things. Ray Greenwell 2009-01-28 22:30:43 +00:00
  • ca8c370395 Updated to target flash 10. Ray Greenwell 2009-01-28 22:28:17 +00:00
  • 45a6e39f2c Ditch createTipLabel, just add another param to createLabel. No need to avoid overwriting a defaultly-null field value with null. Ray Greenwell 2009-01-28 02:11:45 +00:00
  • 8cddf9ef1b Allow Flash to throw an exception if the input is invalid Tom Conkling 2009-01-27 23:21:19 +00:00
  • badfd4b612 Convenience functions Tom Conkling 2009-01-27 23:14:12 +00:00
  • 7db745258e Removed longstanding hack, make this prompt image a style. Ray Greenwell 2009-01-23 02:13:52 +00:00
  • da084e2c0c Bugfix: overriding flex's internal idea about 'enabled'ness was a bad idea. Use it. (Fixes chat semi-disabled for guests.) Ray Greenwell 2009-01-22 23:00:17 +00:00
  • 648ad3e0fc Formatting tweak. Matt Jensen 2009-01-22 02:16:36 +00:00
  • aacdc439a5 A couple changes to allow for a custom resource bundle. Matt Jensen 2009-01-22 01:48:35 +00:00
  • 3934ced69e Allowing raw images to be read from a stream. Matt Jensen 2009-01-20 04:34:05 +00:00
  • 6258d6e28e Allowing raw images to be read from a stream. Matt Jensen 2009-01-20 01:24:45 +00:00
  • 00d60b7397 Allowing raw images to be read from a stream. Matt Jensen 2009-01-20 01:21:50 +00:00
  • f381f4fe01 Widening/vararging Dave Hoover 2009-01-17 23:48:10 +00:00
  • e7132a127f Fix for when the items don't have a 'data' property. Ray Greenwell 2009-01-17 03:17:57 +00:00
  • d22fcc041b DisplayUtil.positionBoundsRelative, the general version of DisplayUtil.positionBounds Tom Conkling 2009-01-16 23:25:16 +00:00
  • dbc4c06d15 My search-fu seems to be failing. These printouts shouldn't be there. Mike Thomas 2009-01-15 22:21:23 +00:00
  • 79c5d9c925 Split out a little logic related to recentering and finishing up block resolution so it can be used reasonably by subclasses. Mike Thomas 2009-01-15 00:49:23 +00:00
  • 45c9ca451e Oh baby, I think I fixed it. - It seems that the camera gets fakey "locked" at the size it was set to when the user grants access to it. - Listen for status changes, don't set things up until the camera is unmuted. - record the size at the time of unmuting. Ray Greenwell 2009-01-14 02:52:27 +00:00
  • ff31994909 Some rearrangement. Fucking A. It seems to default back to the size of the last snapshot taken even if that snapshot was affected by the bug. When you quit and then come back in, it is "stuck" to the last size. There's no way to know what this size is. Ray Greenwell 2009-01-09 02:24:11 +00:00
  • a0204eb35b And now suddenly it's back to 160x120. Fuck me! Ray Greenwell 2009-01-09 01:28:53 +00:00
  • ee4c68c757 Well, this is heisentastic, and to top everything off it seems to always act like the size is 320x240 now, instead of what it used to do. Ack! Ray Greenwell 2009-01-09 01:25:45 +00:00
  • 2c60e6c3cf Use the 'enabled' property setter/getter. Ray Greenwell 2009-01-09 00:31:01 +00:00
  • 2ae0b63aae Added a setIcon() method to update the icon after construction. Ray Greenwell 2008-12-29 22:47:36 +00:00
  • 2817021c56 Allow to be used without a command. Alternatively, I could create a DataComboBox that just does the cool 'data' stuff, and have CommandComboBox extend that. Comment cleanups. Ray Greenwell 2008-12-18 01:18:31 +00:00
  • 2d0070a940 I think we used to do this way back, let's try it again. Smooth our bitmaps. Ray Greenwell 2008-12-17 01:37:31 +00:00
  • dc06c617a1 Even more superclass style and paradigm matching. Ray Greenwell 2008-12-13 01:45:07 +00:00
  • 6eaaf4da01 Ray scratches his own belly. - Match more closely the usage of labelField in our superclass. - renamed to getSelectedData and setSelectedData. - use Util.equals() when hunting for a matching data. Because we are not living in adobe's stone age and we want Equalable objects to work. Ray Greenwell 2008-12-13 00:50:12 +00:00
  • 7b367ad67b Ray tummy-scratching. Bruno Garcia 2008-12-13 00:36:48 +00:00
  • 8bd9aacc73 Terminologies. Bruno Garcia 2008-12-13 00:33:50 +00:00
  • fb3836d104 get/setSelectedValue for modifying the index based on the data of an option. Bruno Garcia 2008-12-13 00:14:01 +00:00
  • 7ecec007c8 Exposed argName. Public for now, wire up a getter/setter if it ever needs the complexity. Bruno Garcia 2008-12-12 22:29:52 +00:00
  • 9d6a5f0a4a By default, use "data" as the key in selectedItem to pass to the command. This can also be specified. If it's null, shoot the entire selectedItem as the argument. Bruno Garcia 2008-12-12 00:18:44 +00:00
  • dc48461f10 A combo box that when changed, dispatches a command with the current selection as the arg. Bruno Garcia 2008-12-11 23:38:40 +00:00
  • ae517a93d9 Comment tweak. Bruno Garcia 2008-12-11 23:37:12 +00:00
  • 8fc55ee79b A bunch of Eclipse facilitated cleanup. Michael Bayne 2008-12-09 02:00:28 +00:00
  • cd276073a2 Helper to make a multiline text that fills the width of its parent. Bruno Garcia 2008-12-09 00:34:32 +00:00
  • 1df7613dfc Use the correct Log reference. Michael Bayne 2008-12-07 06:56:29 +00:00
  • a431ffa3a3 And while I'm in there, let's qualify that reference so my javadoc parsing doesn't spit an error. Dave Hoover 2008-12-05 23:20:37 +00:00
  • 06bcdeea14 Don't always claim unpacking resources is a mere 1 second from completion. Dave Hoover 2008-12-05 23:15:39 +00:00
  • 22603206cd Added avoidOtherPopups. A hole was rabbitted while I debugged that assigning to Rectangle.topLeft sets x and y and width! and height! Gah. Ray Greenwell 2008-12-04 00:55:18 +00:00
  • 8b899014ef Let's reorder those to go clockwise around the compass (and match the set of cardinals in yohoho that I want to replace with this) Dave Hoover 2008-12-03 19:00:09 +00:00
  • 1680e5135b Cardinals. Dave Hoover 2008-12-03 18:53:20 +00:00
  • 42aa38f832 We really need to adjust _priorCurrent regardless of whether this particular call to elapsed() is at a driftRatio of 1.0 or not - the next one might not be, so we need to keep it up to date. Otherwise, we could potentially yank _startStamp around by minutes or hours due to a stale _priorCurrent. Mike Thomas 2008-12-02 23:52:23 +00:00
  • 7b3544fd2b - Added setFocuable(). - createField calls it. Ray Greenwell 2008-12-01 21:12:09 +00:00
  • 411afaf415 Skip on toString if baseTileIds is null in addition to when width is 0. When digester is logging - which happens when log4j is added to the classpath but not configured - it prints Sections out while they're being initialized and have a width but no baseTileIds. Charlie Groves 2008-11-27 00:46:24 +00:00
  • 1dc123281b Add a new play method that allows specification of a position for the sound source. Mike Thomas 2008-11-26 23:56:40 +00:00
  • 714ad7e725 Another SimpleButton derivative for skinning with a bitmap. Ray Greenwell 2008-11-24 23:15:07 +00:00
  • 66386a90af Use toBitmapData. Ray Greenwell 2008-11-24 23:14:47 +00:00
  • cecdbfa320 Added toBitmapData. Ray Greenwell 2008-11-24 23:14:33 +00:00
  • 8584678701 Player BAM5 told me about code his friend Shango wrote, for extrapolating the total duration of an mp3 while it was loading. Sure enough: we have length (so far), bytesLoaded and bytesTotal. So: do that. It works pretty well! Ray Greenwell 2008-11-19 05:19:38 +00:00
  • be24ecee84 This is referenced by MediaContainer, so it's compiled in, but we don't actually use it anywhere in whirled. Made it extra stupid simple: click to play/pause, with no other controls. Ray Greenwell 2008-11-19 00:12:56 +00:00
  • 714aa2adfb We want to ensure we sound out position, so call regular stop() after we autorewind. Ray Greenwell 2008-11-19 00:10:56 +00:00
  • 96c892ce62 Bugfix: don't autorewind if someone seeks to the end while paused. Ray Greenwell 2008-11-18 22:07:02 +00:00
  • 73a1102fe7 Simplified. Turns out the x/y coords of the states are honored, so I don't need to wrap the downState in a Sprite. Ray Greenwell 2008-11-18 03:29:58 +00:00
  • 021a49c0ee Do for simple flash buttons what ImageButtonSkin does for flex Buttons. Ray Greenwell 2008-11-18 03:02:20 +00:00
  • 93a4814155 Just as clear without this const. Ray Greenwell 2008-11-17 16:24:49 +00:00
  • 5bc77aa0d0 Possible type 3 optimization, but well... it doesn't really make the code weirder, but it does add a bit more code. ( http://smallwig.blogspot.com/2008/04/smallwig-theory-of-optimization.html mdb pointed this post out to me.) It just bugged me that we use this player to play background music in whirled, and in that circumstance 99% of the time nobody cares about these events, so why have a timer to calculate and fire them off? Ray Greenwell 2008-11-17 16:14:07 +00:00
  • 526db3bb05 This shouldn't happen, but it did once for me. Heisencope. Ray Greenwell 2008-11-17 06:17:09 +00:00