How can I make a variable-size list  ?

Hi guys,
I'm trying to make a flexible list using <mx:List> component, I mean when I add an item or if the item size is changed (ex: collapse/expand) the list size must change.
Is there an easy way to do that ? If you have any idea, please don't hesitate to post it here. Thanks in advance.
Ygor

It sounds like you're doing 2 distinct things; 1) adding new items to the dataProvider, 2) The item renderer is expanding or collapsing.
If that is the case: 1) when you add an item to the dataProvider, increase the size of the list, 2) when the item renderer is expanding or collapsing, access the list through the "owner" property of the item renderer to change the size of the list.

Similar Messages

  • How can I create a variable size array?

    How can I create a variable size array?

    ok then how can i create a new vector object?If you don't know that, you need to go back to your text book and study some more. Or read the tutorial on the basics of Java: http://java.sun.com/docs/books/tutorial/java/index.html
    After reading that you can move on to: http://java.sun.com/docs/books/tutorial/collections/index.html
    Anyway, the answer to your question is, of course:
    Vector v = new Vector();(But you should probably use ArrayList instead of Vector.)

  • How can I make the media size print option "custum" become available if it is not currently?

    How can I make the media size print option "custum" become available if it is not currently?

    See this article also: http://readwrite.com/2013/10/15/ios-7-fixes-iphone-4-4s#awesm=~oktbEwjOyyvr80

  • How can I make the font size in my address bar smaller?

    On my laptop running Windows XP, Firefox 7, suddenly the font size on my tabs and in the address bar are huge. I have no idea what happened to make them that way. It's horrible.

    I finally got the font size issue remedied. I somehow had an add on to make the print large in the address bar. But I have saved your tip to a folder for future reference and thank you so much.
    Now if someone could just help me with this crashing business. I can't isolate it because nothing is constant. I unselected hardware acceleration and this is the longest I've gone without a crash, but I'm not thinking I've got it solved.
    This is on an old laptop running XP. Firefox was running just fine until yesterday morning when I uninstalled RoboForm and installed LastPass. After that I started getting the crashes, yet I'm not pretty sure they have nothing to do with LastPass itself.

  • How can I make a high scores list?

    I've heard a lot of options. I've tried writing to a perl script, I've read about signing an applet (which seems needlessly complicated). I just would like to know what is the easiest way to save a list of 10 high scores for a game that I'm making? If anyone out there has tried this already any advice would be REALLY appreciated
    thanks!

    What I'm trying to do is make just a high scores list for the game as a whole. It will be one high scores list of 10 names/scores that will be there for the applet. I already have everything set up to read the scores and order the scores in the program, i just need to know what the best way to save them permanently for the next time they need to be used is. I have the scores saved in a string array and I could write all the code myself to get those strings set up in whatever format I may need. But I just need to know how to save them once the applet is closed.

  • How can one make the drop down list of bookmarks disappear when selecting an item?

    I want the list to close automatically when selecting a bookmark to open the page (as it does with favourites in Internet Explorer 8). Is it possible to set this up or does the list always have to be closed manually?

    I am closing this prompt as now I am seeing that it is getting refreshed.

  • How can I make a new contact list?

    I would like to create serval group email list on my Iphone. Is this possible?

    An easier way is to use Easy Group. It is a free app to create group of contacts, to send group texts and to send group emails.
    http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: As I am Easy Group developper, I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • How can I make my PDF document a smaller file size

    I am using photoshop cs3. I have a 8.5 x 11 document. It includes images and text. It is 5.48 MB. How can I make to file size smaller??? This is for print so I need to keep the quality of the image.

    In the user guide (available as a searchable PDF on the install disc)
    Chapter 15: Saving and exporting images
    Then
    Saving files in Photoshop PDF format
    Several pages to read... do so

  • How do I make a variable path in AppleScript?

    I'm mass distributing an application, and for the next update I want to add customization. My application currently make a folder in the "Documents" folder. The folder is called "MCL_CONFIG". What I need to do is make a unicode text file in "MCL_CONFIG". Since it's going to be used on many different computers the path to where I'm making the new file has to change depending on the user. How can I make a variable path to a non-directory? Here's the section of my code with the problem:
    tell application "Finder"
        if folder MCLConfig exists then
        else
            display dialog "Welcome to Mc Launcher! You will only recieve this message once, unless you delete the MCL_CONFIG folder." buttons {"Ok"} default button 1
            make new folder at New_User with properties {name:"MCL_CONFIG"}
        end if
    end tell
    It's not shown but I set the variable MCLCONFIG to (path to documents folder from user domain) & "MCL_CONFIG" as text.
    As a side note how do I make the code look like it does in applescript, here?

    You can do something like:
    set supportFolder to ((path to application support from user domain) as text)
    set appName to "My Spiffy App"
    set subFolder to "MCL_CONFIG"
    tell application "Finder" -- add application support folders if needed
      if not (exists folder (supportFolder & appName)) then
        make new folder at folder supportFolder with properties {name:appName}
        make new folder at result with properties {name:subFolder}
      end if
    end tell
    Edit: it is recommended that the folder in Application Support be named with your application's bundle identifier, but most just use the application name.

  • Can i make a group email list so i can email several people at once

    how can i make a group email list so i can email several people at once instead of one at a time from my iphone 4

    Here is a link to our MailShot Pro app, which leftyapple2 was kind enough to mention (Thanks). MailShot Pro in App Store
    MailShot creates a special contact for your group that enables most of the apps on your device to send group email, including the Mail app itself. Just add the contact to the "To" or "Bcc" line of your email using the blue + button
    Any questions or problems, please get in touch with our support email on "support at solubleapps.com", we are always happy to help.
    Peter
    SolubleApps
    Disclosure: we are the developers of MailShot Pro and may benefit from its sale.

  • Iphoto 8.1.2 My source list has disappeared or is so diminished that I can not read it. How can I make it the normal size, please? l

    iphoto 8.1.2  My source list has disappeared or is so diminished that I cannot read it. How can I make it a normal size, please?

    Move your cursor to the extreme left of the iPhoto Window until it becomes a '+', then click and drag right.
    Regards
    TD

  • How can I make a weekly 'to do' list?  I don't want the list associated with a particular date and time; just a list of things to get done!

    How can I make a weekly 'to do' list? I don't want it associated with a particular day or or time, just the week, preferably with the ability to check off or remove when done.

    Thank you for the excellent reference Peddi. I had played with the OAMessageChoiceBean component yesterday, but I was able to tell from your instructions that "Picklist Display Attribute" and "Picklist Value Attribute" really are not for binding to the database EO. That was the key piece of information that had me confused.
    In addition to adding the messageChoice component to the page, I needed to write some code to synchronize the picklist value with the corresponding code value, which I placed in am OAFormValueBean (hidden form field) which I could then bind to my application's database EO in the controller, running in the processFormRequest procedure:
    /** Synchronize the catalog code with the selected catalog name */
    protected void syncCatalogValues(OAPageContext pageContext,
    OAWebBean webBean, MyApplicationAMImpl am) {   
    OAMessageChoiceBean mcb =
    (OAMessageChoiceBean) webBean.findChildRecursive("CatalogName");
    OAFormValueBean cc =
    (OAFormValueBean) webBean.findChildRecursive("CatalogCode");
    String catalogDescription = mcb.getText(pageContext);
    if (catalogDescription != null) {
    String catalogCode = am.getCatalogCode(catalogDescription);
    cc.setValue(pageContext, catalogCode);
    Along with a little code to get the catalogCode value from the LOVVO, that's all it took.
    Thanks again. This was a great help.
    Pete

  • Hey there! So I plugged in my ipod to my computer and it didn't show up where it normally does. I need to update my song list. How can I make it appear? It doesn't come up in Iphoto. A few days ago my sispluggeditintoanothercomputerbutidon'tknowwhatshedid

    Hey there! So I plugged in my ipod to my computer and it didn't show up where it normally does. I need to update my song list. How can I make it appear? It doesn't come up in iphoto either. A few days ago my sis plugged it into another computer but I don't know if she synched it to the other computer, and frankly, she won't remember. I have tried updating itunes, charging the ipod, restarting the ipod/computer, and the rest of what the apple site said to do. Ps I have the latest ipod touch
    I need help stat! Please help!

    I'd say your sister messed up and your iPod is toasted.
    Think about it...  She plugged it in to another computer, she doesn't remember what she did (yeah, right), and now your iPod is not being recognized by your computer... 
    Also take into consideration how old is your sister, and how much does she know about electronics?

  • When I download pictures from my camera, they turn out a nice big size in iPhoto; other pictures that have been e-mailed to me or imported from older libraries/other computers show up small.  Why is this, and how can I make them all the larger size?

    When I download pictures from my digital camera into iPhoto, they turn out a nice large size (usually almost the full screen), but when somebody e-mails me pictures and I import them into iPhoto, or when I transfer old photos from an old library into my new iPhoto library, they turn out very small--not exactly thumbnail-size, but too small to use for calendars or photo books.  I don't know much about computers, so I don't know how this happened.  Also, I can't find any discernible pattern to why this happens with some pictures and not others--ie: what I described above is usually true, but I have had e-mailed photos or old photos turn out the way I want them, which is in the larger size in iPhoto.  Why is this happening, and how can I make all the pictures the larger size?

    Some mail programs, including Apple Mail, can reduce the size of images that are attached to a message. It's happening at the sender's end, and all you can do is ask the sender for a larger image.

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

Maybe you are looking for