[flexcoders] Customizing TreeItemRenderer

2008-07-09 Thread thirtyfivemph
I want to display a custom widget (basically a glorified Image control) in place of the icons in a Tree component. I've not been able to get satisfactory results (yet), here's what I've done: 1) First, I tried creating a custom ItemRenderer, but discovered that the disclosure icon (triangle),

[flexcoders] Why are icons typed as Classes and not just class factories?

2008-07-09 Thread thirtyfivemph
One of the beauties of Flash's display list API is the ability to treat almost all visual elements as the universal DisplayObject and not be concerned with whether they're a simple shape or whether they're a complex, multi-state movie clip. But, when it comes to Flex framework widgets, like

[flexcoders] Using Flex as a Flash IDE

2008-06-12 Thread thirtyfivemph
So, I've been doing some contract work lately that requires that I use Flash instead of Flex (the deliverables have to be FLAs that they can hand off the designers to re-skin, publish, etc.). Surprise, surprise, I'm finding the Flash IDE to be a little less than ideal. Does anyone have any

[flexcoders] Firefox 3 RC1 breaks Flash/Flex keyboard?

2008-05-21 Thread thirtyfivemph
Is anyone else running Firefox 3 RC1 (on OSX) and experiencing bugs with Flash Player and keyboard events? I'm not getting KEY_UP events, just KEY_DOWN, which kills my app (a game with keyboard controls) as it assumes a key is pressed until it receives the KEY_UP event. Googling hasn't

[flexcoders] Bindable metadata too smart for its own good!

2008-04-25 Thread thirtyfivemph
So, it appears that if you apply the [Bindable] metadata to a property, Flex inserts quite a bit of logic that may not be obvious (and certainly doesn't appear to be documented). I haven't checked the generated AS yet, but I get the impression it does these things for you: - creates

[flexcoders] Passing query vars to debug url?

2008-04-16 Thread thirtyfivemph
Is there a way to specify some query-vars to be passed into the URL I'm debugging inside of Flex Builder? Right now, I click debug and get this URL in the browser: http://localhost/app.swfdebug=true I'd like it to be this: http://localhost/app.swfdebug=trueid=35 If I just type that in, the

[flexcoders] Redirects and popup blockers

2008-04-16 Thread thirtyfivemph
I've been wrestling with this and can't find a solution that seems to work as consistently as what others have found... I've got an embeddable version of my app (think YouTube video) and want the user to be able to click on a button in the app and be sent to our site (just like they clicked on a

[flexcoders] Letting parents handle drag events

2008-04-14 Thread thirtyfivemph
I have a custom container full of items (basically a list). I need to determine when the user drags and drops something onto one of those items. I was hoping I could just add a listener to the list container and that the drag events it received would contain the child object as the event.target

[flexcoders] Changing a property inside of commitProperties?

2008-04-04 Thread thirtyfivemph
I'm subclassing FormItem to have the whole form item (its properties and its child controls) driven by a single piece of data I specify in a property I've added to my derived FormItem. In my custom property's setter, I store the custom data and call invalidateProperties. I then do this: override

[flexcoders] Storing object hierarchies in shared objects

2008-03-28 Thread thirtyfivemph
I'm thinking about adding an auto-save feature to our RIA so that users can navigate away from the app and not lose any data. The common AJAXy approach (e.g. Gmail) is to periodically send updates back to the server. But I'd like to avoid hitting the server with that regular network traffic if I

[flexcoders] Common cursors

2008-03-27 Thread thirtyfivemph
I'm always a bit surprised when I'm building a Flex app and remember that there are no common cursors provided... considering that the web browser provides common cursors (which those AJAX people get to use for their RIAs!) and the OS provides common cursors (which those desktop people get to use

[flexcoders] Combine two fonts into one font family?

2008-03-22 Thread thirtyfivemph
I've got a font that we've embedded into our app that doesn't have numerals in it. Would it be possible, using the unicode range features of font embedding, to embed the letters from one font with the numerals of another font (and assign them the same family)? It doesn't seem to be working for

[flexcoders] FileReference.browse sometimes takes minutes for dialog to open

2008-03-11 Thread thirtyfivemph
I don't ever have this problem on my machine (MacBookPro, OSX), but my partner has it quite often on his (Dell laptop, WindowsXP): In our app, we call FileReference.browse for the user to select a local file. I've got a that call as basically the only code in the click event handler for a button.

[flexcoders] Flex Builder 3 debug builds broken, breakpoints all wrong

2008-03-05 Thread thirtyfivemph
Okay... I'm about to throw my laptop across the room. I am burning time trying to fix this *bug* (bug, because as a user I shouldn't be able to break this) in Flex Builder (I've seen it in 2, now seeing it in 3). I'm just happily editing my project... when all of sudden a trace statement I add

[flexcoders] Flex Builder 3: *major* bug in deleting linked folders

2008-03-05 Thread thirtyfivemph
I am trying my best to not go to my blog and rant about Flex Builder 3... but its getting harder by the hour. I had an earlier post about having to dig around and delete some hidden caches to get my code to compile correctly... and now, Flex Builder just hosed by entire website (well -- my

[flexcoders] Global keyboard capture?

2008-03-04 Thread thirtyfivemph
I'm wanting to globally capture the keyboard in my Flex app. I want to be notified of every keyboard event that happens as long as the Flash Player has the focus... regardless of whether the event happens when a UIComponent has keyboard focus or not. Here's what I'm doing:

[flexcoders] Re: Flex 3 and AIR 1 are now live!

2008-02-25 Thread thirtyfivemph
http://www.adobe.com/products/flex I noticed that the purchase option is for Mac/Win... is the license a dual-OS license? I.e., can I install it on my Windows desktop *and* my MacBookPro with a single license? If so, I'd go out and purchase it today! (Can't afford to buy two licenses, though!)

[flexcoders] Re: Broadcasting event to all objects on display list

2008-02-14 Thread thirtyfivemph
Actually, I'm trying to avoid each DisplayObject tracing its way back to the root (which, at any given time, it may not be able to do depending on where it is in the DisplayList, on or off the stage, etc.). Here's a more succinct way to ask my question: Given that the display list is a classic

[flexcoders] Flex SDK and Textmate

2008-02-14 Thread thirtyfivemph
Anyone out there using the Flex SDK with Textmate? I've fallen in love with Textmate as an editor and am frustrated each time I go back to Flex Builder, so I'm exploring what it'd take to get Textmate married to Flex. I don't ever do any visual form design, so virtually all of my time is spent in

[flexcoders] Broadcasting event to all objects on display list

2008-02-13 Thread thirtyfivemph
Is it possible to dispatch an event to all objects on the display list? In my particular case, I'd like to have some additional enter_frame like events that all display objects receive (but I don't want it tied to enter_frame because the event doesn't necessarily happen every frame). My current

[flexcoders] Rounded corners on selections?

2008-01-24 Thread thirtyfivemph
While Halo is a pretty nice, general purpose skin that's pretty flexible with all of its programmatic skins, there are a few aspects of it that just annoy the heck out of me. Perhaps you guys can help me resolve one of them... If I create a listbox (or if I'm styling the drop-down list of a combo

[flexcoders] Batching PNGs into an SWF

2007-06-14 Thread thirtyfivemph
My app is currently loading around a 100-150 PNGs (around 64x64 to 128x128 in size each) from my server. It's obviously taking way longer than it should, not because of the total size of the transfer but rather the overhead of the multiple connections, i.e. 100-150 separate connections to the

[flexcoders] TextField autosize a bunch of ****

2007-06-01 Thread thirtyfivemph
Okay, maybe my brain took the weekend off early, but I just can't get TextFields to cooperate... (BTW, this is an AS3 Project, so no Label or Text or other UIComponent suggestions, please!) I create a TextField: var text:TextField = new TextField(); That I want formatted like so:

[flexcoders] Locking the focus to a component

2007-05-23 Thread thirtyfivemph
I've got an app where I want a single component to *always* have keyboard focus and prevent other components (like lists, buttons, etc.) from ever getting keyboard focus (they'll all be mouse-controlled). What's the best way to do this? Is there a straightforward global way to handle this or will

[flexcoders] Keyboard events flow through display list, right?

2007-03-29 Thread thirtyfivemph
I've created an ActionScript Project, so no UIComponent controlling focus. I've got the root of my app, a sprite, it has a child sprite and a grandchild sprite. I was under the impression (nee, utter certainty) that I could stick a addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown) in my

[flexcoders] getObjectsUnderPoint problems

2007-03-20 Thread thirtyfivemph
Okay, this is really driving me crazy... I've got a UIComponent which is nested several layers deep in a layout. Inside that UIComponent I've got a series of sprites that are nested one inside of the other 4 or 5 levels deep with a Bitmap nested as the deepest level. In the top-level sprite of

[flexcoders] Re: getObjectsUnderPoint problems

2007-03-20 Thread thirtyfivemph
UIComponent. Everything works correctly if I instead call this.stage.getObjectsUnderPoint(point). That... well, doesn't make sense. Anyone care to clarify? Troy. --- In flexcoders@yahoogroups.com, thirtyfivemph [EMAIL PROTECTED] wrote: Okay, this is really driving me crazy... I've got

[flexcoders] Re: States and transitions

2007-03-15 Thread thirtyfivemph
Excellent. That's exactly what I was looking for. And a further tip that I just realized... Seems to be a decent idea to nest a mx:Parallel in an mx:Sequence, i.e. use the mx:Sequence to order things addchild, transition, removechild, etc. Otherwise, if you just put it in a mx:Parallel, it

[flexcoders] Runtime Expression Evaluation

2007-03-11 Thread thirtyfivemph
I'd like to add the ability for a user to enter an expression, e.g. 3+4*x+y*(z/3+4) and be able to evaluate it. I've found plenty of examples in JavaScript, Java, C, C++, and about every other language out there... now, before I go start porting JEval (or similar) to ActionScript, is there

[flexcoders] E4X not finding empty tags

2007-02-28 Thread thirtyfivemph
I've run into a curious problem with E4X (which is otherwise spectacular). Given this document: var document:XML = document id=1 object id=4 content id=3 node id=20 / /content

[flexcoders] Drag proxy and BitmapAsset

2007-01-24 Thread thirtyfivemph
My RIA has been using Image components as drag proxies, which was fine and worked exactly like I wanted (the images were PNGs and had alpha and that all came through correctly). Now, I've needed to change the drag proxy to accept BitmapData. It doesn't appear to be able to use it directly as it