Re: [flexcoders] Re: Optimize with callLater() -- help?

2008-08-20 Thread David Ham
Of David Ham Sent: Tuesday, August 19, 2008 5:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Optimize with callLater() -- help? I think callLater() is going to work for me, but I have another question: To create my pages, I loop through an array of Room objects. For each

[flexcoders] Optimize with callLater() -- help?

2008-08-19 Thread David Ham
I'm building a room layout application, and one of its features is that you can create a PDF printout of your project. I'm using AlivePDF to create the PDFs in the Flash player. The app needs to create PDFs of many pages, and each page takes awhile to create. what I just started seeing today is

[flexcoders] Re: Optimize with callLater() -- help?

2008-08-19 Thread David Ham
I think callLater() is going to work for me, but I have another question: To create my pages, I loop through an array of Room objects. For each Room, I set it to be the currentRoom, which tells the view to display that Room's information. I figure I can do this (pseudocode): for (var i:uint = 0;

[flexcoders] What happens to objects when you change state?

2008-05-08 Thread David Ham
I have an app with two mx:States, component A appears in state A, and component B in the same position in state B. When I'm in state A, where is component B, and vice versa? I my tests they appear to both still be in memory and visible; does Flex just shuffle their z-indexes? What does Flex

[flexcoders] Re: Singleton view classes?

2008-05-07 Thread David Ham
Better off looking at some other type of pattern. Any recommendations? I was getting some serious performance problems from duplicated objects--if anyone has any recommendations on how to ensure that I'm not creating a lot of duplicates when I switch states back and forth? OK DAH

[flexcoders] Singleton view classes?

2008-05-06 Thread David Ham
I've been having trouble with multiple instances of my views being created when I change states. I have two RoomView classes that each subclass the same BaseRoomView superclass, and which contain an instance of a Room view class. Since I only ever want one of them on the screen at a time, I

[flexcoders] Re: States, Garbage Collection, Event Listeners--all FUBAR

2008-05-03 Thread David Ham
I changed my setup a bit, but I'm not sure it's helping. I now have a ViewContainer which has a property 'page' which refers to the current view. When I change the page, I do this: * Call the current page's clear() method, which unregisters all of its listeners, and calls similar clear() methods

[flexcoders] Re: States, Garbage Collection, Event Listeners--all FUBAR

2008-05-03 Thread David Ham
By still available, the symptom is that after being removed, a trace statement in the removed component's updateDisplayList method still appears. Plus there is other emergent behavior (duplicate objects, etc) that suggests the old page and/or its contents aren't completely gone.

[flexcoders] States, Garbage Collection, Event Listeners--all FUBAR

2008-05-02 Thread David Ham
Not sure even how to describe this problem... I have a room layout app with three states: Draw Walls -- lets the user modify walls but not objects in the room Add Units -- lets the user add objects to the room, but not the walls Review -- view only, no interactivity Each state has a view

[flexcoders] Re: States, Garbage Collection, Event Listeners--all FUBAR

2008-05-02 Thread David Ham
GC only happens on new allocations, so you can never count on things being cleaned up immediately, just eventually, and you have to code for that. I can dig it. My main thing is that I think I'm doing everything right--I'm unregistering event listeners before doing removeChild()--but it seems

[flexcoders] e4x 101 -- Help get it through my thick skull

2008-03-24 Thread David Ham
Hi, I'm working with webservice xml data in XML format, and the e4x is giving me a little trouble. Am I right on these points: * All e4x operations return an XMLList. I've been trying to get them to return XML, like: var theNodeIWant : XML = myDataSet.myElement.(@someAttr == foo) but it seems

[flexcoders] Populating a control with an ArrayCollection plus other items

2008-02-27 Thread David Ham
Hi, I have an application which manages, among other things, a list of rooms. In my UI, I have two different controls that use this list. I have a MenuBar that has an option that allows you to switch to an existing room or switch to a new room, like this: Switch to... New room... Room A

[flexcoders] Using an IViewCursor on an XMListCollection

2008-02-13 Thread David Ham
This isn't a question; I was having some trouble with this and just figured it out, and I thought you all might like to hear about it. This list has been a big help to me in the past and I'd like to return the favor. THE PROBLEM So you've created your XMLListCollection, and you created your Sort

[flexcoders] Add bin folder to SVN?

2007-12-17 Thread David Ham
I'm using Flex Builder 3 beta, the Subclipse plugin, and Subversion to manage my Flex project. I'd like to add my bin folder to Subversion, but it appears that whenever I publish, FB deletes the entire bin directory and recreates it with the new published version. The trouble is that whenever it

[flexcoders] Re: Add bin folder to SVN?

2007-12-17 Thread David Ham
are not recreated. Only the SWF and HTML. Rob On Dec 17, 2007 9:09 AM, David Ham [EMAIL PROTECTED] wrote: I'm using Flex Builder 3 beta, the Subclipse plugin, and Subversion to manage my Flex project. I'd like to add my bin folder to Subversion, but it appears that whenever I

[flexcoders] CVS setup for flex server apps?

2007-11-05 Thread David Ham
Hi, I am starting work on a Flex server project that was begun by a Flex developer who is no longer available. The CVS setup seems unwieldy and I wonder if there's a way to setup to avoid the unwieldiness. It's running on Tomcat and the setup is as follows: TOMCAT_ROOT/webapps/flex/myapp/[MXML

[flexcoders] Can I install LifeCycle Data Services ES on Mac OS X?

2007-10-24 Thread David Ham
There are several unix flavors mentioned and I was wondering if anyone had gotten any of them running on the Mac. Thanks!

[flexcoders] Re: SOLVED: Can I install LifeCycle Data Services ES on Mac OS X?

2007-10-24 Thread David Ham
@yahoogroups.com, David Ham [EMAIL PROTECTED] wrote: There are several unix flavors mentioned and I was wondering if anyone had gotten any of them running on the Mac. Thanks!

[flexcoders] Flex Builder over-writes my bin directory and messes up my SVN

2007-10-03 Thread David Ham
My project source and bin directories are in Subversion. I am trying to rename my published HTML file, and that is working fine, thanks to Mike Morearty's excellent blog posts about Flex Builder file macros. However, whenever I do anything to my build configuration, or whenever I build clean, FB

[flexcoders] Honey, my ItemRenderer is fubar!

2007-10-02 Thread David Ham
I have a List with a custom item renderer. Each item in the list will have a slightly different height, and I got this working through the generous help of Alex and Tracy on this list. Here's the thing: My app started crashing yesterday, and I traced it to my set data() method, which is as

[flexcoders] Re: Force creationComplete with ItemRenderer

2007-10-02 Thread David Ham
Tom, What a lot of people do is make sure they have an overriden 'set data' method in their renderer that (re)sets up their component for new data. Could you elaborate on this a bit? In my renderer, I have a set data() that first calls super.data = value, and then displays its text fields

[flexcoders] How do I detect when a user reorders a list?

2007-10-02 Thread David Ham
I have a list that can be reordered by drag and drop, and I need to call a function when the list is reordered. What is the best way to listen for this? Should I listen for a CollectionChange event, a drag event, or is there some other third way? Many thanks, OK DAH

[flexcoders] Disabling the caret on List drag operations?

2007-09-27 Thread David Ham
I have a List that needs to allow users to drag items into and out of it, but prevent them from dragging and dropping within the list, like if they wanted to reorder it. I can prevent the internal dragging and dropping by calling preventDefault() on the drag event, but the list still shows the

[flexcoders] Data-enabled DateChooser or other calendar?

2007-09-21 Thread David Ham
I'm looking for a calendar component that is more data-enabled, something that would allow one or more of: * binding a collection of objects to a collection of dates * when you roll over a date, have the comp dispatch an event with that day's date in it * enabling individual dates as drop targets

[flexcoders] Custom ToolTip that accepts user interaction?

2007-09-11 Thread David Ham
I have a custom ToolTip class. When the user rolls over an item in a list, the app creates an instance of the custom toolTip. I'd like to have a LinkButton or linked htmlText in the toolTip that the user could click on, but in the default behavior, the tooltip disappears as soon as I roll off the

Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-10 Thread David Ham
is available when the dataChange event fires or commitProperties runs explicitWidth should be set so use that to your advantage. Is there any way you can know by the url of the image what its height will be? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David

Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-10 Thread David Ham
Alex, In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Should I call super.methodName() on the ones I am overriding? Create the textfields in

Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--SUCCESS

2007-09-10 Thread David Ham
super.methodName() unless you know for sure you don’t want the underlying behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List

Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--P.S.

2007-09-10 Thread David Ham
know for sure you don’t want the underlying behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer

Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--P.S.

2007-09-10 Thread David Ham
Did you call setActualSize on it? That fixed it! Not sure why, but that fixed it. Thanks again, OK DAH -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 10:58 AM To: flexcoders@yahoogroups.com

[flexcoders] Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
I have a list with a custom renderer. Each item has a text field of different length. I have variableRowHeight set to true. When the list first loads, it renders correctly, but when I drag something out of it, all the items get vertical scrollbars. When I add an item back in, it seems that just

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Alex, Thanks for the response. I had thought about that and had commented out the image, and got the same result. Should I subclass ListItemRenderer instead of HBox? Is there something in the measure() or invalidation methods that I'm not doing? Also, I notice that when I scroll the list,

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Tracy, I tried creating an MXML component based on ListItemRenderer, and it said a strange thing: I got a compiler error that said it couldn't resolve mx:ListItemRenderer to a component implementation. Do I need to create a new AS class that extends ListItemRenderer, and implement its various

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Tracy, Thanks for the advice, but man! It's hard going. I tried overriding createChildren, but when I did, I ended up having to override all the other UIComponent methods too (measure, updateDisplayList, commitProperties) and it's all FUBAR. Where and how does listData get set? Seems like an

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Alex, You also have a Text in there which also may not measure out correctly. ListItemRenderer will be much faster than HBox, but you'll have to do more in AS than MXML. Can you draw up a picture of what you want the renderer to look like? Are images of a known size? If the image is

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
It should only be one level of hairy, not three... LOL. Sorry, I wax hyperbolic late in the day, when the caffeine has jacked me up and Flex has dragged me behind its car for a ways. I'll dig around in measure() and see what I can do. Do I need to worry about setting listData when I subclass

[flexcoders] Customize part, but not all, of a drag and drop operation?

2007-09-04 Thread David Ham
I've been doing work with drag and drop lately. I know how to set it up for default controls (just set dragEnabled and dropEnabled on the appropriate controls), and I know how to create a completely custom DragManager.doDrag, with custom dragSource and dragproxy objects. Is there a way to just

Re: [flexcoders] weird warnings...

2007-09-04 Thread David Ham
Sounds like you might have selectors for these controls in your CSS file, but you're not using them in your app, or maybe their creation policy is such that the compiler doesn't know about them when it compiles your CSS. A CSS issue, at any rate. OK DAH

Re: [flexcoders] Customize part, but not all, of a drag and drop operation?

2007-09-04 Thread David Ham
You can customize the dragImage displayed by the DragProxy. You can customize what is in the DragSource Yes, I know, but how can I do one and not the other? How would I customize _just_ the dragProxy, for example, but have everything else (dragsource, x, y, etc) be the default? Or

[flexcoders] New to Flex--using Flex classes in AS3 projects?

2007-05-09 Thread David Ham
Hi, I am very new to Flex and am coming at it in a roundabout way. I downloaded Luke Bayes' and Ali Mills' fantastic ASProject and was trying a simple Hello World project, and compiling it for AS3 with MXMLC. I saw in the Flex SDK that in the frameworks/source folder there are a bunch of AS