RE: [flexcoders] Re: Looping output

2006-04-25 Thread Karl Johnson
When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel =

Re: [flexcoders] Re: Looping output

2006-04-25 Thread Suresh Akula
Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy

Re: [flexcoders] Re: Looping output

2006-04-25 Thread Suresh Akula
try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman [EMAIL PROTECTED] wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){

Re: [flexcoders] Re: Looping output

2006-04-25 Thread Suresh Akula
correction parentApplication.closing.createChild(mx.containers.Grid, undefined,{id:grid+i}); --- Suresh Akula [EMAIL PROTECTED] wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman [EMAIL PROTECTED]

Re: [flexcoders] Re: Looping output

2006-04-25 Thread Suresh Akula
can you explain me why you are using parentApplication.closing.mainPanel.subCanvas. can't you use subCanvas.createChild(...); here is the sample application ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ function getData1():Array {

RE: [flexcoders] Re: Looping output

2006-04-25 Thread Tracy Spratt
So the issue is not assigning an id, but rather that you are not able to successfully use createChild() at all? Could the problem be the reference chain? Can you do it in a sample app? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Re: Looping output

2006-04-25 Thread Mark Rausch
Use percentWidth and percentHeight instead -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output Well tracy, it is