http://www.flexdeveloper.eu/forums/mxml/adding-checkbox-to-a-list-dynamically/
On Wed, May 19, 2010 at 21:46, Geet.Kartikeya <[email protected]>wrote: > Greetings!! > > > I'm wondering how to dynamically position something on a canvas. I > couldn't seem to find any resources on this when I used Google, so I > apologise in advance if this topic has been kicked into the ground. To > give an example, consider the following: > > > > I have a canvas thats 100 in width; we'll call this canvas "myCanvas". > > > > I have items coming out of my database which create checkboxes. Each > checkbox has a description (the label field of the checkbox), and > these vary in length (e.g. the first item might have a label thats 23 > characters in length, the second may have a label thats 50). I'm > currently accessing the length of the label by using > "myCheckbox.label.length". > > > > So to recap, we have "myCanvas", and many "myCheckbox" elements being > added to the canvas. > > > > I'm trying to make it so that myCheckbox will go from one side of the > canvas to the other side, and if there's not enough room, it will > dynamically drop down to the next available position in the y-axis > (plus a spacer of 10px or so between the rows). > > > > Kindly please provide an example. > > Thank you > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- Fear is an illusion, So, face it ! RM3sh -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

