Re: [flexcoders] Design Pattern/Best Practices for generic record 'list' and 'detail' view Component

2006-12-11 Thread Steve Hindle
with a custom event type. Now dispatch that event type when the length of dataProvider changes. Obviously, your getter method for currentView has to contain the logic you described for deciding which view to use. Is that what you were looking for? Cheers, Lach On 06/12/2006, at 5:27 AM, Steve

Re: [flexcoders] Databinding eventlistner Toy, Unexplained errors and insights... Adobe Please Confirm

2006-12-11 Thread Steve Hindle
, that may be a good idea. Matt -- *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups.com] *On Behalf Of *Steve Hindle *Sent:* Wednesday, December 06, 2006 11:42 PM *To:* flexcoders@yahoogroups.com *Subject: *Re: [flexcoders] Databinding eventlistner Toy

Re: [flexcoders] Re: BindSetter?

2006-12-06 Thread Steve Hindle
, Lach On 04/12/2006, at 4:31 PM, Steve Hindle wrote: Sorry for reply to myself - but this is driving me _nuts_! I can't find an example of bindSetter with a 'real' accessor function with either yahoo or google. And the example on the 'bindUtils' page at adobe.com (stuck in the comments

[flexcoders] Base Classes, Bindable, and dispatchEvent

2006-12-06 Thread Steve Hindle
Hi All, I have a base class I use for models (ModelBase, original eh?) that contains a 'set' function. set(source:Model) - it simply copies fields from the source model to 'this'. Works great, except I'm not sure how to let everyone know the model changed. The base class currently uses

Re: [flexcoders] Date Fields and Data Binding.

2006-12-06 Thread Steve Hindle
Just a guess here - I just use vanilla Flex Sounds like the field is not being assigned. Since the field starts out as blank in your model, and your selecting another model with a blank field - perhaps Flex is 'short-circuiting' the assignment. I've noticed that for an assignment like foo =

[flexcoders] Databinding eventlistner Toy, Unexplained errors and insights... Adobe Please Confirm

2006-12-06 Thread Steve Hindle
Ok - I think I'm making some headway now. Here's hoping this helps someone else with similar problems. For ages I've been plagued by 'odd' databinding problems. Things would work most of the time - then fail for 'no reason'... Playing around tonight, I noticed some behaviors that I think

Re: [flexcoders] Databinding eventlistner Toy, Unexplained errors and insights... Adobe Please Confirm

2006-12-06 Thread Steve Hindle
-- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Steve Hindle *Sent:* Wednesday, December 06, 2006 9:50 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Databinding eventlistner Toy, Unexplained errors and insights... Adobe

[flexcoders] Design Pattern/Best Practices for generic record 'list' and 'detail' view Component

2006-12-05 Thread Steve Hindle
Hi All, I'm trying to create a component to use as an example or 'template' of how to achieve a record list and detail view in flex. I'm starting with a simple 'contact' record (model) that has name, address, phone, email, etc. The list of records is held in _dataProvider, and the specific

Re: [flexcoders] Re: Feature request? Ability to apply multiple states or views at once..

2006-12-03 Thread Steve Hindle
I don't think so... I'm not sure how splitting this up would help...I'd just end up scattering the stuff all over? It also seems like it would be a P.I.T.A. to have to manually select the correct view for 8 child components vs 1 call to an 'enhanced' state function that could 'run' multiple

[flexcoders] BindSetter?

2006-12-03 Thread Steve Hindle
I've got to be missing something silly here: _model:Model; BindSetter(_model.title,... ? String to Function coercion error BindSetter(_model.title()... ? Inaccessible method title error I thought about _model.title as Function - but that seems like it would interpret the title string as a

Re: [flexcoders] Simple Question - Array to ArrayCollection - Best Practice/CFusion

2006-12-03 Thread Steve Hindle
I didn't think you could do that (cast) - I thought you needed to create a new ArrayCollection _based_ on the array? (ie var ac:ArrayCollection = new ArrayCollection(myArray) ) On 12/3/06, lostinrecursion [EMAIL PROTECTED] wrote: Hi all, This is a best practice question really. I use

Re: [flexcoders] Re: Feature request? Ability to apply multiple states or views at once..

2006-12-03 Thread Steve Hindle
-- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Steve Hindle *Sent:* Sunday, December 03, 2006 1:56 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Feature request? Ability to apply multiple states or views at once.. I don't think so... I'm

[flexcoders] Re: BindSetter?

2006-12-03 Thread Steve Hindle
/refute this and save my sanity please! Thanks On 12/3/06, Steve Hindle [EMAIL PROTECTED] wrote: I've got to be missing something silly here: _model:Model; BindSetter(_model.title,... ? String to Function coercion error BindSetter(_model.title()... ? Inaccessible method title error I

[flexcoders] Feature request? Ability to apply multiple states or views at once..

2006-12-02 Thread Steve Hindle
Hi All, I've been working on some basic CRUD screens, where it would be really useful to be able to apply either multiple states or multiple views at once (I think states would be better...) for instance, I have a 'show' state that goes thru and makes all my text entry fields non-editable.

Re: [flexcoders] Feature request? Ability to apply multiple states or views at once..

2006-12-02 Thread Steve Hindle
Hi Dustin, It's 'based on' that actually 'teased' me with this... As you start having more 'optional' things in the component ('noNotes','noSaveButton',etc), you end up with a 'states explosion'... 'based on' gets about half-way there, so I figured it could be enhanced to handle the rest? I

Re: [flexcoders] building reusable, 'stacking' components

2006-12-01 Thread Steve Hindle
/30/06, Steve Hindle [EMAIL PROTECTED] wrote: Hi All, Anyone got any good design patterns for building components that can be stacked inside other components and still look good visually? I'm ending up in nested tabNavigator hell... When you build components that can be used both stand-alone

Re: [flexcoders] Component behavior when child of navigation container

2006-12-01 Thread Steve Hindle
This sort of thing drove me batty with Flex... I finally ended up doing all init. in createComplete methods for each child container (ie, when a child builds itself, it initializes itself) This means I have to sprinkle if (child != null)... around the parent container though Another problem I

[flexcoders] building reusable, 'stacking' components

2006-11-30 Thread Steve Hindle
Hi All, Anyone got any good design patterns for building components that can be stacked inside other components and still look good visually? I'm ending up in nested tabNavigator hell... When you build components that can be used both stand-alone (top level) or included _inside_ another

Re: [flexcoders] Re: to form or not to form that is my question

2006-11-29 Thread Steve Hindle
I'd love an explanation too - I skipped them myself. On 11/29/06, bghoward3 [EMAIL PROTECTED] wrote: that is my main issue as well layout seems to be a hassle please someone in the know add somthing here, my development is stalled until i have a clear understanding of why to use or not use

Re: [flexcoders] To Adobe - new release improvements??

2006-11-29 Thread Steve Hindle
Will 2.0.1 have Flex builder on a more recent eclipse? I'd also love an eclipse 'quick fix' or whatever they call it for changing a property from variable based to getter/setter based! On 11/29/06, David Mendels [EMAIL PROTECTED] wrote: Hi, It may be worth adding however that we are of

[flexcoders] Bug? - field not visible?

2006-11-29 Thread Steve Hindle
I just spent _hours_ chasing this one down... I have an mxml component that displays a model. Text fields are editable to allow data entry. If I enter text in field 'a' and hit tab to go to field 'b' - all text in field 'b' is now highlighted. If I then load a new model into the component (I

[flexcoders] DataBinding Vs. Procedural Model Updates

2006-11-25 Thread Steve Hindle
Hi All, Anyone know the performance implications of using databinding to update a model vs an 'updateModel()' type call? I can use basic databinding to bind a form to the model (source={foo.customer_name}) and databinding calls to bind foo.customer_name back to the form control (so your

Re: [flexcoders] multi-form data sharing

2006-11-16 Thread Steve Hindle
.* -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Steve Hindle *Sent:* Monday, November 13, 2006 9:31 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] multi-form data sharing Hi All, I have a couple of questions regarding flex and a 'typical

[flexcoders] Event fired _every_ time a component is made visible/active

2006-11-16 Thread Steve Hindle
Hi All, There was a discussion recently about how to detect when a component becomes visible/active. It basically proposed 3 methods: creationComplete(), show()/hide(), and UpdateDisplayList(). However, these all seem to have problems: creationComplete() - only fires when the component is

Re: [flexcoders] [ADV] New version of Flexible Rails book available (Alpha version 5)

2006-11-16 Thread Steve Hindle
Hi Peter, Could I suggest making a full table of contents available in an easy to spot place on the website? Also, does the book cover Flex and Rails login/auth systems (AAA, etc), sessions, etc? It appears 'iteration03' might cover some of this? I'm currently building a rails app with a flex

Re: [flexcoders] Event fired _every_ time a component is made visible/active

2006-11-16 Thread Steve Hindle
for a reusable component ? Am I missing something here? Surely other people have run across the same situation ? Mostly I just want my component to reset its tab navigator to the first tab each time its shown (I do other stuff too). It really can't be this unusual can it ? Steve On 11/16/06, Steve Hindle

Re: [flexcoders] Event fired _every_ time a component is made visible/active

2006-11-16 Thread Steve Hindle
. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Steve Hindle *Sent:* Thursday, November 16, 2006 1:01 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Event fired _every_ time a component is made visible/active Hi All, There was a discussion

SOLVED:Re: [flexcoders] Event fired _every_ time a component is made visible/active

2006-11-16 Thread Steve Hindle
transitions. But - on the plus side, it will fire each time your component is made visible, and it doesnt require knowing anything about your parent, or what type of container you embedded in, etc. Thanks All, Steve On 11/16/06, Steve Hindle [EMAIL PROTECTED] wrote: well - show event doesn't appear

Re: [flexcoders] Re: unable to load wsdl?? flex, you're pissing me off...

2006-11-03 Thread Steve Hindle
Works fine in FF 1.5.0.7 Win here...On 11/1/06, Jason [EMAIL PROTECTED] wrote: Can anyone out there can confirm that the example here: http://blog.wrench.com.au/wp-content/uploads/Flex/converter2/Converter.html actually works in Firefox (I'm using 1.5.0.7