[flexcoders] Re: multiple filters on XMLListCollection how?

2009-06-19 Thread Tim Hoff
ean { var includeItem:Boolean = true; includeItem = (sizeFilter.selectedItem == "All sizes" || item.sizes == sizeFilter.selectedItem); return includeItem; } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Looks like you have a little problem in th

[flexcoders] Re: multiple filters on XMLListCollection how?

2009-06-19 Thread Tim Hoff
Looks like you have a little problem in the logic. It will either include all of the items or those that meet the two selected criteria. But it won't include all of one and a selected criteria of the other. A suggestion is to break up the individual criteria into seperate sub filterFunctions.

[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-19 Thread Tim Hoff
If you can't get it to work, you could always use a Repeater instead. In this case, since you want to display all of the items, this would probably work out better. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Yeah, maybe not. Good luck; this is a co

[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-18 Thread Tim Hoff
: > > idSGrid.measureHeightOfItems 612 > Measuring each row height> 560 > idSGrid.measureHeightOfItems 612 > Measuring each row height> 560 > > > It's off by 72 pixels... that's quite a difference. > > Patrick > > > > --- In flexcod

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
Actually, its ILayoutManagerClient that supports validateProperties(), validateSize() and validateDisplayList(). I'll get it right one of these days. :) -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Yep, should have said, those that don&#

[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-18 Thread Tim Hoff
Hi Patrick, private function resizeDataGrid():void { myDataGrid.height = myDataGrid.measureHeightOfItems(0, myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2; } -TH --- In flexcoders@yahoogroups.com, "djhatrick" wrote: > > My datagrid won't measure correctly, i have variabl

[flexcoders] Re: Creating a new ListEvent - how to specify ItemRenderer?

2009-06-18 Thread Tim Hoff
The list has to editable in order to use that event though. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > Look at the itemFocusIn ListEvent. > > -TH > > --- In flexcoders@yahoogroups.com, "flexcoder2008" djohnson29@ wrote: > > > &

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
Yep, should have said, those that don't implement IDataRenderer, IListItemRenderer and/or IDropInListItemRenderer manually. Nice snype. -TH --- In flexcoders@yahoogroups.com, "Amy" wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > >

[flexcoders] Re: Creating a new ListEvent - how to specify ItemRenderer?

2009-06-18 Thread Tim Hoff
Look at the itemFocusIn ListEvent. -TH --- In flexcoders@yahoogroups.com, "flexcoder2008" wrote: > > I have a List that handles a Click event - the ClickEvent takes a ListEvent, > and inside that handler I have access to the ListEvent's itemRenderer > property. > > This allows me to align a b

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
x27;ve learned from it; as well as others following along. On this specific issue though, I stand by my assertions completely. Anyway, nice discussing this with you Steve. No hard feelings. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Very well, you go with that.

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
rers (And other components) to be more efficient. > > From a new users perspective, if I had seen your item renderer when I first started using Flex, I would have been totally intimidated and probably tried very hard never to need an item renderer. > > > --- In flexcoders@yahoogroups.co

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Tim Hoff
bly not fair to spread bad habits like this to others; that are just learning. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Ok, here's how I would do it; with efficiency and best-practice in mind: > > http://www.timothyhoff.com/projects/AgeItemRendererSa

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Tim Hoff
he example using createChildren ? > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Yes, createChildren will only execute once; while set data will execute > > many times. Perhaps it's not a problem if the same child gets

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-16 Thread Tim Hoff
Hey Angelo, So, up to now we've been talking about an itemRenderer; better if it's custom rather than in-line. The next step is an itemEditor. Read up on the docs and let us know if you have any further questions. -TH --- In flexcoders@yahoogroups.com, Angelo Anolin wrote:

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
r that old post. Can't believe it was "years ago"! > Where does the time go? > > Oh, that's right, the bugs in my program eat most of it! > > > On Tue, Jun 16, 2009 at 11:08 AM, Tim Hoff timh...@... wrote: > > > > > > > > > Ha, wha

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-16 Thread Tim Hoff
or" wrote: > > I use addChild in the set data function only because I always have. > > I have built hundreds of renderers this way and none of them have given me a problem. If there's a good reason why I shouldn't do it this way, I'm all ears. > > > --- In fl

[flexcoders] [Bindable] public var - getter/setter hybrid

2009-06-16 Thread Tim Hoff
Consider these two options for creating an accessor in Flex: Public Var: [Bindable] public var searchResults:ArrayCollection; Getter/Settter: [Event( name="searchStringChange", type="flash.events.Event" )] private var _searchResults:ArrayCollection; [Bindable( event="searchResultsChange" )

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
Ha, what I meant is that years ago, you helped me with a problem that I was having with RowColorDataGrid and I was also able to use a tree with connector lines that you created. Just glad to return the favor. :) -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes wrote: > > C&#x

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
Yep, that looks great. I thought about all of that, but knew that you'd tweak it to get what you needed. Glad that I could finally help you out with something Jason. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes wrote: > > Thanks, Tim. Knew there must be something, ju

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-16 Thread Tim Hoff
I'm with you Steve; about using AS for an itemRenderer. I do wonder why you would use addChild in the set data function though; rather than in createChildren . For mxml, this should work Angelo: For the HBox, notice the use of

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-15 Thread Tim Hoff
Hi Jason, Put this at the end of addCategory(): myPopupButton.popUp.scrollRect = new Rectangle(0, 0, myPopupButton.popUp.width, myPopupButton.popUp.height + 30); Add an id: This will trick the popup into redrawing. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes wrote: > > Okay, so

[flexcoders] Re: ambiguous reference error

2009-06-14 Thread Tim Hoff
flexcoders@yahoogroups.com ups.com] On > Behalf Of [p e r c e p t i c o n] > Sent: Saturday, June 13, 2009 4:06 PM > To: flexcod...@yahoogro <mailto:flexcoders@yahoogroups.com ups.com > Subject: Re: [flexcoders] Re: ambiguous reference error > > > > > > > > oh yes,

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
My advice is to add the -keep compiler argument, build the project, and look at Line: 349 in the generated class MediaProfile-generated.as. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > I think that the error is pointing to mediaupload. Is that a variabl

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
alled MediaProfile.as that has a bindable public var > called isValid > shouldn't this be accessible? > > > > On Sat, Jun 13, 2009 at 10:28 AM, Tim Hoff timh...@... wrote: > > > > > > > > @Timno all methods and vars have to be public in order to

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
; Ambiguous reference to MediaProfile. [Generated code (use -keep to save): > Path: com\media\views\MediaProfile-generated.as, Line: 349, Column: 14] > mediaupload Unknown 1244912081333 16143 > > > thanks > > On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff timh...@... wrote: > >

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
d > Ambiguous reference to MediaProfile. [Generated code (use -keep to save): > Path: com\media\views\MediaProfile-generated.as, Line: 349, Column: 14] > mediaupload Unknown 1244912081333 16143 > > > thanks > > On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff timh...@... wrote: > &

[flexcoders] Re: ambiguous reference error

2009-06-12 Thread Tim Hoff
Are you by any chance using a getter/setter for the isValid var? If so, you may need to change the setter to public. -TH --- In flexcoders@yahoogroups.com, "[p e r c e p t i c o n]" wrote: > > Hi Tracy,that was a mistake, actually i called it 'isValid' like this > > label="Continue"click="S

[flexcoders] Re: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-12 Thread Tim Hoff
flexcoders@yahoogroups.com, "n_manjunatha" wrote: > > Hi Tim > Thanks for your time and reply. Yes you are right, I am not using MVC Framework. > > I tried this > my main.mxml is like this...of course not with exact format of flex... > script > { > breadcrumcl

[flexcoders] Re: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-11 Thread Tim Hoff
Hi, If you're not using an MVC framework, an easy way is to create a public method in contentpane.mxml, that will set the tree selection. On breadcrumb click, pass the event: contentpane.myPublicSelectionMethod( event ). -TH --- In flexcoders@yahoogroups.com, "n_manjunatha" wrote: > > Hi, > I

[flexcoders] Re: LinkBar without viewstack

2009-06-10 Thread Tim Hoff
perties():void > { > super.commitProperties(); > > if (_selectedIndexChanged) { > _selectedIndexChanged = false; > this.updateSelectionHighlighting(this.selectedIndex); > } > } > > > > On Wed, Jun 10, 2009 at 1:44 PM, Tim hofftimh...@... wrote: > >

[flexcoders] Re: LinkBar without viewstack

2009-06-10 Thread Tim Hoff
Cool, here's the implementation: -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Thanks, Tim. I'll take a look. > > On Wed, Jun 10, 2009 at 12:12 PM, Tim hofftimh...@... wrote: > > > > > > Hi Richard, > > > > Here's a

[flexcoders] Re: Trying to find slide/flip/rotate component

2009-06-10 Thread Tim Hoff
Hi Nate, http://www.efflex.org/ -TH --- In flexcoders@yahoogroups.com, "Nate Pearson" wrote: > > I bookmarked a component a while ago that did some cool slid, flip, rotate stuff on forms. It was a box that kinda moved around. I think there was an option for a TV transi

[flexcoders] Re: LinkBar without viewstack

2009-06-10 Thread Tim Hoff
Hi Richard, Here's a ToggleLinkBar control that might suit your needs. Just set the selectedIndex of the control and you're good to go. I used an underline for the non-selected items, but you can take that out if you want. http://www.timothyhoff.com/misc/GMToggleLinkBar.as.html

[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Tim Hoff
Nice Paul, So, extend ADG and add a highlightedItem:MyItemVO property that uses a Bindable "highlightedChange" event; with the same getter/setter structure as below. Not sure, in MyADG, if you'd set the highlightedItem on itemRollover or initialte from the itemRenderer, with an Event though; jus

[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Tim Hoff
Just a thought, but what if you call drawHighlightIndicator manually; after you set the variable? Maybe even callLater. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes wrote: > > 1) Yes, this works fine, for the display portion only. It doesn't address > the actual problem of needing to

[flexcoders] Re: How do I Change Event on a CheckBox

2009-06-09 Thread Tim Hoff
Hi Mark, import mx.events.FlexEvent; calendarCheckbox.addEventListener(FlexEvent.VALUE_COMMIT, changeCBF); Notice that this is a FlexEvent; rather than a regular Event. So: private function changeCBF( event:FlexEvent ):void -TH --- In flexcoders@yahoogroups.com, "Mark" wrote: > > I'd like

[flexcoders] Re: Flex and Reporting

2009-06-09 Thread Tim Hoff
Crystal Reports is great for generating data driven .Net reports. But, if you wanted to generate a wysiwyg type of report, that mirrors what the user sees in the flex app, you're going to run into a lot of problems. AlivePDF is good for simple client-side pdf report generation. However, IMHO, i

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-09 Thread Tim Hoff
umns2, Columns3. When I send the array collection to the .NET WebService, the first item in the ArrayList does not necessarily correspond to the first column and so forth. > > Thanks for the pointers. Good to learn a lot lot more. > > > > > &

[flexcoders] Re: Grab the Current State of a Button

2009-06-08 Thread Tim Hoff
For a ToggleButton, look at the selected property: if ( myButton.selected ) { // my state is down } -TH --- In flexcoders@yahoogroups.com, "ericmaslowski" wrote: > > Hello, > I have been trying to do something very simple here with Flex but have hit a wall. I have several toggle buttons

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-08 Thread Tim Hoff
annes Nel wrote: > > if this has to be imported somewhere else you need to consider, what happens > if your delimiter is in a piece of text? > > On Sun, Jun 7, 2009 at 2:25 PM, Angelo Anolin angelo_ano...@...wrote: > > > > > > > Hi Tim, > > > > Thanks

[flexcoders] Re: Resource Reference

2009-06-07 Thread Tim Hoff
oops, didn't read the top all the way. This should work: .bgCanvas { background-image: Embed(source='/localAssets/img/icon128.png'); } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Hi, > > In CSS, you usually use ClassReference f

[flexcoders] Re: Wrapping components

2009-06-07 Thread Tim Hoff
Hi Mke, This might be what you're looking for: http://www.munkiihouse.com/?p=60 -TH --- In flexcoders@yahoogroups.com, Mike Chang wrote: > > Hi, > I have a newbie question on layout.I'm looking for a container component > that would "wrap" the components ins

[flexcoders] Re: Resource Reference

2009-06-07 Thread Tim Hoff
Hi, In CSS, you usually use ClassReference for a programatic skin. For a Graphical skin use: .bgCanvas { background-image: Embed(source='/localAssets/localIMAGES.IMAGE_ICON128'); } Notice that CSS uses "/" instead of a dot. Does the image file have an extension (.png, .jpg) ? -TH ---

[flexcoders] Re: Question about ArrayCollections

2009-06-05 Thread Tim Hoff
for each ( var item:Object in socketsToMonitor ) { trace(item.ip); } -TH --- In flexcoders@yahoogroups.com, Raymond Brown wrote: > > Here is some code of what I am using today: > > private function startAliveDeadCheck():void { > startMonitor("127.0.0.1", 80); > } > > private function star

[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-05 Thread Tim Hoff
Hi Jason, Have you tried it from within the itemRenderer? Something like: private var adg : AdvancedDataGrid; override public function set data(value:Object):void { super.data = value; adg = owner as AdvancedDataGrid; } override protected function updateDisplayList( w:Number, h:N

[flexcoders] Re: GoogleMaté Sample Application

2009-06-05 Thread Tim Hoff
Thanks Richard, I appreciate it. Most of my good stuff is behind coporate firewalls, so I wanted to put something out there that might help others in the community. Thanks again, -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Looks very clean, Tim! > > I'v

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-04 Thread Tim Hoff
yString); } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Assuming that you don't want the trailing pipes: > > private function parseArrayCollection():void { > > > > var myString:String = ""; > > > > for

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-04 Thread Tim Hoff
Assuming that you don't want the trailing pipes: private function parseArrayCollection():void { var myString:String = ""; for each ( var myObject:Object in myAC ) { myString += myObject.label + "|" + myObject.data; if ( myAC.getItemIndex( myObject )

[flexcoders] Re: GoogleMat� Sample Application

2009-06-04 Thread Tim Hoff
Coming, but the only thing that will be different will be the view code. :) -TH --- In flexcoders@yahoogroups.com, "Bjorn Schultheiss" wrote: > > Would be nice with flex 4 and catalyst : ) > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > &

[flexcoders] GoogleMaté Sample Application

2009-06-04 Thread Tim Hoff
Hi all, For any of you interested in learning more about the Maté framework, I've created a sample that's publically available. It's a simple AIR application, but hopefully those that want to learn more about MVC, will get some benefit out of it; especially those

[flexcoders] Re: Creating Link inisde a Data Grid Collumn

2009-06-04 Thread Tim Hoff
If you're creating the column in AS, you'll need to use ClassFactory for the itemRenderer: var urlItemRenderer:ClassFactory = new ClassFactory(com.myPath.urlRenderer); urlItemRenderer.properties = { myItemRendererPublicProperty: myProperty }; myColumnID.itemRenderer = urlItemRenderer; -TH ---

[flexcoders] Re: Performance Question

2009-06-03 Thread Tim Hoff
Using the 80-20 rule, loading all of the individuals up-front would be the way to go (even 1000 records is reasonable). It's going to much better handling the search on the client with a filter; instead of making a call for each key-stroke. If the user types fast, it can get very expensive. You

[flexcoders] Re: FilterFunction creating duplicate items in the list

2009-06-01 Thread Tim Hoff
ayCollection, because of a filter. Updating the source Array itself would also do the trick. But, you would have to re-cast the ArrayCollection after an update. Just a few thoughts, -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Sounds like your itemRenderer might

RE: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Tim Rowe
er code that was written before I started working on this project nor all design decisions, regardless of how much I might object :) Thanks for the confirmation, --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith S

[flexcoders] Resource bundles and static vars

2009-06-01 Thread Tim Rowe
statics are initialised, or is there something more simple (or perhaps more sinister?) going on? Thanks, Tim Rowe Software Engineer carsales.com Ltd Level 1, 109 Burwood Road Locked Bag Hawthorn VIC 3211 t: 03 9093 8600 (Reception) t: 03 9093 8757 (Direct) f: 03 9093 8697

RE: [flexcoders] Is this list declining?

2009-06-01 Thread Tim Rowe
Hm, I notice a steady decline since I joined. Coincidence? :) But no, think quality not quantity. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luvfotography Sent: Tuesday, 2 June 2009 7:48 AM To: flexcoders

[flexcoders] Re: FilterFunction creating duplicate items in the list

2009-05-31 Thread Tim Hoff
Sounds like your itemRenderer might not be clearing out old data correctly. Check out Question 2 in Amy's FAQ: http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf -TH --- In flexcoders@yahoogroups.com, Rohit Shar

[flexcoders] Re: Run time Warning

2009-05-28 Thread Tim Hoff
ay, gotta work with xml more. So its XMLList and Array; got it. Thanks Tracy. -TH --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > No, Tim that is not correct, XML *IS* bindable. XMLList is not bindable. > > > > This warning is because selectedItem is

[flexcoders] Re: data binding in textinput ?

2009-05-28 Thread Tim Hoff
Ha, now you're just showing off. :) -TH --- In flexcoders@yahoogroups.com, Manish Jethani wrote: > > On Thu, May 28, 2009 at 11:15 PM, luvfotography > ygro...@... wrote: > > How do I get databinding to work in textinput? > > In this example below, I have a TextInput defined with the text bound

[flexcoders] Re: Flex Data Grid Question

2009-05-28 Thread Tim Hoff
> --- On Thu, 5/28/09, Tim Hoff timh...@... wrote: > > > From: Tim Hoff timh...@... > > Subject: [flexcoders] Re: Flex Data Grid Question > > To: flexcoders@yahoogroups.com

[flexcoders] Re: popup systemManager not working

2009-05-28 Thread Tim Hoff
Popups are not on the same DisplayList as other components; so they have to be treated a bit differently. -TH --- In flexcoders@yahoogroups.com, hoz wrote: > > > Hey guys, > > I added bubbles to true in my custom event, and it worked! OK, so I'm a > little puzzled b/c I have other custom events

[flexcoders] Re: data binding in textinput ?

2009-05-28 Thread Tim Hoff
> You could use an onchange event in the text input to fire a function that > would place the myName.text into userName. But if you did that, you'd create > a circular binding which probably wouldn't be good. It wouldn't be an infinite loop; so its not all that bad. -TH --- In flexcoders@yaho

[flexcoders] Re: Flex Data Grid Question

2009-05-28 Thread Tim Hoff
Check out the AdvancedDataGrid control and documentation. -TH --- In flexcoders@yahoogroups.com, guess what wrote: > > > I need to draw a data grid where I need to do paint subtotals and and page total and group by some category . Can anyone provide me witha same xml for this kind of table > >

[flexcoders] Re: Run time Warning

2009-05-28 Thread Tim Hoff
Hence the warning. Like Array, XML is not bindable. You might try converting the XML to an XMLListCollection. -TH --- In flexcoders@yahoogroups.com, "markgoldin_2000" wrote: > > But my XML is set to bindable. > > --- In flexcoders@yahoogroups.com, "Jake Churchill" jake@ wrote: > > > > Convert

RE: [flexcoders] Value Objects

2009-05-26 Thread Tim Rowe
have anyone explain it to me in a way which contradicts this way of looking at things. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: Wednesday, 27 May 2009 7:53 AM To: flexcoders@yahoogroups.com Subject: R

RE: [flexcoders] Re: CRUD generator...

2009-05-25 Thread Tim Rowe
other features), would it not be an idea that the project summary actually states so somewhere in it's description? (I'm looking for a replacement for FlexORM as it has a few too many problems). Tim Rowe Software Engineer carsales.com Ltd Level 1, 109 Burwood Road Locked Bag

[flexcoders] Re: Multiple events dispatched, data lost

2009-05-24 Thread Tim Hoff
Actually yes, what's going on with phSet.id in stuffToGetNewAlbum()? Add a second trace for that field. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Nevermind, was looking at it backwards. Usually, you would go through > the FrontController, wit

[flexcoders] Re: Multiple events dispatched, data lost

2009-05-24 Thread Tim Hoff
Nevermind, was looking at it backwards. Usually, you would go through the FrontController, with a second command, for the second Event. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Hi Steve, > > What's going on in stuffToGetNewAlbum()?

[flexcoders] Re: Multiple events dispatched, data lost

2009-05-24 Thread Tim Hoff
Hi Steve, What's going on in stuffToGetNewAlbum()? -TH --- In flexcoders@yahoogroups.com, "steve horvath" wrote: > > > I have a function which loops and for each iteration dispatches an > event. The event handler is inside a new class (AddSourceCommand). > Inside the event handler class I am d

[flexcoders] Re: 2 similar functions. One works, the other doesn't...

2009-05-23 Thread Tim Hoff
The functions look ok, so its probably a problem with the second VO. Since they are so similar, there's probably a mis-spelling due to copy/paste. Also, make sure that the [RemoteClass(alias="com.blah.blah.blah.MyVO")] line is included and correct. -TH

[flexcoders] Re: Filtering multiple conditions in an arraycollection

2009-05-23 Thread Tim Hoff
Well, looks like you're on the right track. Just a couple suggestions: 1) In the resultHandler, refresh after you set the filterFunction: myData.filterFunction=processFilter; myData.refresh(); 2) Booleans are easier to read then ints. Also, not sure about the logic

[flexcoders] Re: Gradient Color in Bar Chart

2009-05-20 Thread Tim Hoff
Hi, Use a gradient "fill" (see docs) for the BarSeries. Alternatively, you could create a custom itemRenderer for the BarSeries. Then use Degrafa or draw the gradient with the drawing api. -TH --- In flexcoders@yahoogroups.com, ak wrote: > > Hi, > > > How can i fill the gradient color in the

[flexcoders] Re: Transition only works once

2009-05-20 Thread Tim Hoff
flexcoders@yahoogroups.com, "jimmy5804" wrote: > > Tim, thanks a lot for making the effort to help. > > Got partial success. Using heightX properties, I was able to get the forward transition to work, but I wasn't able to get the reverse transition (not shown in code below)

[flexcoders] Re: Form validation before submitting...

2009-05-19 Thread Tim Hoff
Just one technique: using AS, throw the validators into an ArrayCollection on creationComplete. Before you submit, loop through the validators and execute the validate() function on each. If one fails, bail out. The docs can show you how to work with ValidationResultEvent. Also remember that

[flexcoders] Re: Looking for ability to know which item I selected when using Lists

2009-05-19 Thread Tim Hoff
Hi Anthony, Use the itemClick event on the List tag. -TH --- In flexcoders@yahoogroups.com, "a.scavarelli" wrote: > > Hey there, > > I am trying to figure out how to get the data (some text) from a list I have set to editable. It is binded to an array of Strings but I can't figure out how to d

[flexcoders] Re: Transition only works once

2009-05-19 Thread Tim Hoff
Try resetting the dimensions of bottomBox back to 0 when you change to the base state; or use widthFrom/widthTo, heightFrom/heightTo on the resize tag. -TH --- In flexcoders@yahoogroups.com, "jimmy5804" wrote: > > I don't use transitions often, so I may be missing something. The transition > w

[flexcoders] Re: Form validation before submitting...

2009-05-18 Thread Tim Hoff
Almost seems like you'd want to loop through the validators instead, huh? -TH --- In flexcoders@yahoogroups.com, Laurence MacNeill wrote: > > At 07:56 PM 5/18/2009, you wrote: > > > > >Are you sure that you are looking for the children in the correct > >parent? Worked for me. > > > >-TH > > Ahh

[flexcoders] Re: Form validation before submitting...

2009-05-18 Thread Tim Hoff
> >On Mon, May 18, 2009 at 5:54 PM, Tim Hoff > ><<mailto:timh...@...timhoff@... wrote: > > > > > >import > >mx.core.UIComponent; > > > >private function formIsValid():Boolean > >{ > > > > for (var i:int = 0; i < this.nu

[flexcoders] Re: Using RegExp's...

2009-05-18 Thread Tim Hoff
I'll let you figure out how to include lower-case letters as well. -TH --- In flexcoders@yahoogroups.com, Laurence MacNeill wrote: > > At 07:01 PM 5/18/2009, you wrote: > > > >For this particular case, you can catch it before you validate: > > > > > > > Good idea -- thanks! > > Laurence MacNeil

[flexcoders] Re: Using RegExp's...

2009-05-18 Thread Tim Hoff
For this particular case, you can catch it before you validate: -TH --- In flexcoders@yahoogroups.com, Laurence MacNeill wrote: > > I want to check to see that data has been entered into a > textInput. Specifically, I want to ensure that only letters, not > spaces, commas, or anything else ha

[flexcoders] Re: Form validation before submitting...

2009-05-18 Thread Tim Hoff
Yep, good re-factor. -TH --- In flexcoders@yahoogroups.com, Ivan Perez wrote: > > Why not stop and return when validForm just turns false, like this: > > On Mon, May 18, 2009 at 5:54 PM, Tim Hoff timh...@... wrote: > > > > > > > * > > > > impor

[flexcoders] Re: Form with 3 Custom Components...

2009-05-18 Thread Tim Hoff
Don't want to flood the list with too many posts, but thanks Richard. -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Took the words out of my mouth :) > > I agree with you Tim, and thought your explanation was top notch and > respectful. > > On Mo

[flexcoders] Re: Form with 3 Custom Components...

2009-05-18 Thread Tim Hoff
et/2008/04/13/architectural-atrocities-part-x-cair\ ngorms-model-locator-pattern/> . That's why I prefer Mate. -TH --- In flexcoders@yahoogroups.com, "Amy" wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > A couple mo

[flexcoders] Re: Form with 3 Custom Components...

2009-05-18 Thread Tim Hoff
Both classes are still dependent on the event class; you just get it baked in automatically when you use metadata. -TH --- In flexcoders@yahoogroups.com, "Amy" wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > Not disputing

[flexcoders] Re: Form with 3 Custom Components...

2009-05-18 Thread Tim Hoff
ps.com, "Amy" wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Don't agree. The smoke test for tight coupling is that if component A > > is tightly coupled to component B and you take away component B, you get >

[flexcoders] Re: Form validation before submitting...

2009-05-18 Thread Tim Hoff
import mx.core.UIComponent; private function formIsValid():Boolean { var validForm:Boolean = true; for (var i:int = 0; i < this.numChildren; i++) { if ( UIComponent(this.getChildAt(i)).errorString != "" ) { validForm = false; }

[flexcoders] Re: Form with 3 Custom Components...

2009-05-18 Thread Tim Hoff
s-EventMaps-Managers. Anyway, that's .02. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Don't agree. The smoke test for tight coupling is that if component A > is tightly coupled to component B and you take away component B, you get > a compiler error

[flexcoders] Re: Listening for events fired from ArrayCollections

2009-05-18 Thread Tim Hoff
You can change acUsers to a getter/setter and do what you want in the setter. The default setter event is propertyChange, but you can change that to whatever you want. -TH --- In flexcoders@yahoogroups.com, "lampei" wrote: > > Anyone have any suggestions? Seems like something everyone uses at

[flexcoders] Re: Form with 3 Custom Components...

2009-05-18 Thread Tim Hoff
sputing that public properties are a viable approach. Just pointing out that Flex is an event driven framework. -TH --- In flexcoders@yahoogroups.com, "Amy" wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > There

[flexcoders] Re: Form with 3 Custom Components...

2009-05-17 Thread Tim Hoff
There are several techniques that you can use for this; it really depends on what the need is and the sophistication of the application. Personally, I would employ a presentationModel to solve this, but using an MVC framework and VO's can be challenging for some. In this case, using public prope

[flexcoders] Re: Sorry i am not a rocket scientist...

2009-05-15 Thread Tim Hoff
uot;highlight". > > If you could skin/style the rollovercolor to be the same as the nonrollovercolor then that should achieve the required result. Of course, I have no idea whether skinning/styles allows that as I have not tried it. > > > --- In flexcoders@yahoogroups.com, &quo

[flexcoders] Re: Sorry i am not a rocket scientist...

2009-05-15 Thread Tim Hoff
use.com/?p=14 > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Monkey patching DataGridHeader works. Just copy DataGridHeader.as into > > mx/controls/dataGridClasses (you'll have to create these folders in the > >

[flexcoders] Re: Sorry i am not a rocket scientist...

2009-05-14 Thread Tim Hoff
Monkey patching DataGridHeader works. Just copy DataGridHeader.as into mx/controls/dataGridClasses (you'll have to create these folders in the src folder of your project), comment out the drawHeaderIndicator line in the mouseOverHandler function. -TH --- In flexcoders@yahoogroups.com,

[flexcoders] Re: Sorry i am not a rocket scientist...

2009-05-14 Thread Tim Hoff
Looks like it's drawn in the mouseOverHandler function in DataGridHeader.as: drawHeaderIndicator(s, r.x, 0, visibleColumns[i].width, cachedHeaderHeight - 0.5, getStyle("rollOverColor"), r); You'll have to try to extend DataGrid and DataGridHeader, or monkeyPatch DataGridHeader. -TH --- In flex

[flexcoders] Re: Sorry i am not a rocket scientist...

2009-05-14 Thread Tim Hoff
This might help: http://ntt.cc/2009/02/18/set-background-color-for-headers-of-datagrid.ht\ ml -TH --- In flexcoders@yahoogroups.com, "djhatrick" wrote: > > but how do I remove the header highlight fill from a datagr

[flexcoders] Re: backgroundGradientColors

2009-05-14 Thread Tim Hoff
Hi Thomas, The style is defined in mx.core.Application.as: [Style(name="backgroundGradientColors", type="Array", arrayType="uint", format="Color", inherit="no")] And it is implemented in mx.skins.halo.ApplicationBackground.as: var fillColors:Array = getStyle("backgroundGradientColors"); var fill

[flexcoders] Re: Application Idea

2009-05-13 Thread Tim Hoff
I once had to create an application that had a light bulb button. On mouse over the light bulb turned on. Would that help? -TH --- In flexcoders@yahoogroups.com, kanu kukreja wrote: > > Hello, > > I'm looking for an idea, so that i can create a application on based > on that idea in flash or

[flexcoders] Re: Custom component itemRenderer

2009-05-12 Thread Tim Hoff
Yes, you can definetely set properties on an itemRenderer if it is created using ClassFactory. Perhaps a little better than binding the itemRenderer to a model, but it would certainly be debated. -TH --- In flexcoders@yahoogroups.com, Jeffry Houser wrote: > > > I didn't know that, definitely g

[flexcoders] Re: change color text when doing toggle The button

2009-05-09 Thread Tim Hoff
Use the textSelectedColor style. -TH --- In flexcoders@yahoogroups.com, "ade_huh" wrote: > > hello there. > do u know how to change color text when doing 'toggle function'(it is similar 'selected function') The button? > > thank before >

[flexcoders] Re: Setting currentState from a function located a child mxml file

2009-05-09 Thread Tim Hoff
While I've also suggested using these in the past, in the spirit of loose coupling, the prefered method would be to dispatch an event, from the component, that would trigger the drillDown method in the parent; where the states are actually located. This way the child doesn't know or care about th

<    1   2   3   4   5   6   7   8   9   10   >