[flexcoders] e4x with XMLListCollections?

2006-10-03 Thread Clare Todd
I have a hunk of XML that I have loaded into an XMLListCollection. It describes a training course catalog. I'm trying to write a function to return the title of a course when passed the "KeyID" of a specific course instance, and am running into all sorts of problems (it ain't working being

[flexcoders] drag only CERTAIN items from a list?

2006-09-14 Thread Clare Todd
I have a tree for a training site. It has Courses who have CourseInstance children: info course title="Cooking 101" courseinstance location="Houston" date="02/11/1974" / courseinstance location="Chicago" date="12/23/2007" / /course ... I want people to be able to drag items off the tree

[flexcoders] tree labelFunction that an determine what type of node I'm dealing with?

2006-09-13 Thread Clare Todd
I have a tree that has some XML returned from an HTTP service as its dataprovider The XML structure is essentially: things redthing id="1" name="Todd"/ bluething id="23" happy="yes"/ orangething green="no"/ /things I'd like my labelFunction to be able to react to the different types of

[flexcoders] comparing substrings case sensitively?

2006-09-08 Thread Clare Todd
I'm trying to look for instances of characters in a String, using myString.indexOf() I was hoping to find there was a case sensitivity flag in there, but there isn't so it finds "Todd" in the string "My name is todd", which is not what I want in this specific index. Anyone have an easy way to

[flexcoders] Flash Event vs FLexEvent in custom component?

2006-08-10 Thread Clare Todd
I'm writing a custom component (extending UIComponent) and want to issue some events. All of them are simple "I happened" sort of events like "loginButtonClicked", "theyMovedTheirMouse", etc -- no additional information passed in the event object other than target, type, etc. I have been