RE: [flexcoders] Re: reuse image source property causes 1009 ?

2009-05-02 Thread Alex Harui
If you got that error on that line, breakfast_img_item2 or fast_img_item1 Is null and it could have to do with creationPolicy or just plain timing. You didn't show when your code ran and you didn't include the full stacktrace with line numbers which usually helps. Alex Harui Flex SDK Developer

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread fumeng5
Wow, works like a charm; big thanks. And if I want to test it against IDs with 3 characters I'm thinking that RegExes are the way to go. Here's what I've got that isn't quite working. var currentID:String = item.id.toString(); var pattern:RegExp = /^/; if ( pattern.test( activeID

[flexcoders] Re: reuse image source property causes 1009 ?

2009-05-02 Thread Jason B
mistype on the action script i didn't do a copy paste :( sorry but still just not allowing a image source to image source --- In flexcoders@yahoogroups.com, "Jason B" wrote: > > I have an image source property which i want to pass to another image on a > different display? Is there something sp

[flexcoders] reuse image source property causes 1009 ?

2009-05-02 Thread Jason B
I have an image source property which i want to pass to another image on a different display? Is there something special to passing image sources? TypeError: Error #1009: Cannot access a property or method of a null object reference. breakfast_img_item2.source = fast_img_item1.source;

RE: [flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread Tracy Spratt
Assuming strings: If (currentID.charAt(0) == activeID) { //if the first character matches the activeId return true; } Else { return false; } If the ids are numbers then the logic will be different. Tracy Spratt, Lariat Services, deve

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread fumeng5
I'm creating an ArrayCollection based on the XML loaded in. I iterate over that and build the UI. I have a simple conditional that decides whether to run one block of code and create a button or run another and create a radio button. I think that part is fine as it is right now. I've never wor

RE: [flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread Tracy Spratt
In that case I would create a component that had two states, one radio and one button, and repeat that, passing in the entire currentItem in a setter function, and set the state based on the passed in data. On the filter, are you asking for an e4x expression? One tip is that in an e4x expre

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread fumeng5
I've got it almost working now. However, I'm trying to write a Filter function. This function will compare an ID and return a subset of IDs. For example, an ID of 1 will return IDs with 11, 12, 13; an ID of 2 will return IDs with 21, 22, 23, etc... How do I compare IDs as strings to return wha

Re: [flexcoders] Window Shade component

2009-05-02 Thread Charles Parcell
Indeed there is! Thanks. Charles P. On Fri, May 1, 2009 at 5:25 PM, Jeffry Houser wrote: > > > > I thought there was one in Flexlib. > > Charles Parcell wrote: > > I am looking for a Window Shade component to use in my application. Can > someone point me in the right direction? > > > > Thank

[flexcoders] Flex equivalent of PHPs format_date

2009-05-02 Thread Hyder
I need to try and format the time being retrieved from mysql. The time is of type Number in mysql. In php, format_date parses it but Flex's dateformatter does not understand it. For example, '1241259519' is 'Sat May 02, 2009 10:18 am'

[flexcoders] Spring-Flex Integration

2009-05-02 Thread haribond_thegangster
Hi Friends I want to know the steps for Flex-Spring Integration with the help of Blazeds Can anyone elaburate me the steps clearly Regards Hari