[flexcoders] Re: what's happen with my 'array' ?
You'll need to strip unwanted characters... cards = new ArrayCollection(green.text.replace(/[\[\]']/g, "").split(",")); --- In flexcoders@yahoogroups.com, cholid cholid wrote: > > > > but data i've is use '[]' > when it split with ',' it doesn't work > > > > > > From: valdhor valdhorli...@... > To: flexcoders@yahoogroups.com > Sent: Wed, June 16, 2010 1:39:54 AM > Subject: [flexcoders] Re: what's happen with my 'array' ? > > > You don't have an array - all you have is a string. You need to convert it to an array. Try this: > > > > creationComplete= 'test()'> > > > > paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' paddingRight= '10'> > > > > > > > > > > --- In flexcod...@yahoogro ups.com, cholid cholid wrote: > > > > hi all > > i've new problem > > > > im make mx:ComboBox that the data is from array that's request from mx:Text > > > > i've two mx:Text that string source is > > > > 1.array string = > > > > ['M3-02-06-2010- 10-05-04. flv', 'M3-02-06-2010- 22-17-16. flv', 'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv'] > > > > 2.array string that source is from external fungtion (call with https) > > > > THE PROBLEM IS: > > if i call array from second mx:Text, the mx:ComboBox is not show data > > but if i call array from first, the mx:ComboBox is not working > > > > the source code is here: > > > > > > > > http://www.adobe. com/2006/ mxml' creationComplete= 'test()'> > > > > > > > > > > > > > layout='horizontal' > > paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' paddingRight= '10'> > > > > > > > > > > > > > > > > > > > > > > > > >
Re: [flexcoders] Re: what's happen with my 'array' ?
but data i've is use '[]' when it split with ',' it doesn't work From: valdhor To: flexcoders@yahoogroups.com Sent: Wed, June 16, 2010 1:39:54 AM Subject: [flexcoders] Re: what's happen with my 'array' ? You don't have an array - all you have is a string. You need to convert it to an array. Try this: --- In flexcod...@yahoogro ups.com, cholid cholid wrote: > > hi all > i've new problem > > im make mx:ComboBox that the data is from array that's request from mx:Text > > i've two mx:Text that string source is > > 1.array string = > > ['M3-02-06-2010- 10-05-04. flv', 'M3-02-06-2010- 22-17-16. flv', > 'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv'] > > 2.array string that source is from external fungtion (call with https) > > THE PROBLEM IS: > if i call array from second mx:Text, the mx:ComboBox is not show data > but if i call array from first, the mx:ComboBox is not working > > the source code is here: > > > > http://www.adobe. com/2006/ mxml' creationComplete= 'test()'> > > > > > > layout='horizontal' > paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' > paddingRight= '10'> > > > > > > > > > > > >
Re: [flexcoders] Re: what's happen with my 'array' ?
thanks valdhor, it awesome From: valdhor To: flexcoders@yahoogroups.com Sent: Wed, June 16, 2010 1:39:54 AM Subject: [flexcoders] Re: what's happen with my 'array' ? You don't have an array - all you have is a string. You need to convert it to an array. Try this: --- In flexcod...@yahoogro ups.com, cholid cholid wrote: > > hi all > i've new problem > > im make mx:ComboBox that the data is from array that's request from mx:Text > > i've two mx:Text that string source is > > 1.array string = > > ['M3-02-06-2010- 10-05-04. flv', 'M3-02-06-2010- 22-17-16. flv', > 'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv'] > > 2.array string that source is from external fungtion (call with https) > > THE PROBLEM IS: > if i call array from second mx:Text, the mx:ComboBox is not show data > but if i call array from first, the mx:ComboBox is not working > > the source code is here: > > > > http://www.adobe. com/2006/ mxml' creationComplete= 'test()'> > > > > > > layout='horizontal' > paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' > paddingRight= '10'> > > > > > > > > > > > >
[flexcoders] Re: what's happen with my 'array' ?
You don't have an array - all you have is a string. You need to convert it to an array. Try this: http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete='test()'> --- In flexcoders@yahoogroups.com, cholid cholid wrote: > > hi all > i've new problem > > im make mx:ComboBox that the data is from array that's request from mx:Text > > i've two mx:Text that string source is > > 1.array string = > > ['M3-02-06-2010-10-05-04.flv', 'M3-02-06-2010-22-17-16.flv', 'M3-02-06-2010-12-07-06.flv', 'M3-02-06-2010-08-03-02.flv'] > > 2.array string that source is from external fungtion (call with https) > > THE PROBLEM IS: > if i call array from second mx:Text, the mx:ComboBox is not show data > but if i call array from first, the mx:ComboBox is not working > > the source code is here: > > > > http://www.adobe.com/2006/mxml' creationComplete='test()'> > > > > > > layout='horizontal' > paddingTop='10' paddingBottom='10' paddingLeft='10' paddingRight='10'> > > > > > > > > > > > >