Why won't List display ArrayCollection?

Hi all,
I cannot for the life of me figure out why the List I created will not display any of the values in my ArrayCollection.  I've read and watched so much databinding material, that I think it must be something extremely small or absolutely huge that I'm missing.  If anyone could give me a pointer or two it would be so greatly appreciated, I've been on this for days now.
I have two .mxml's (MyCards and NewCard).  The idea is that in the NewCard View the user types in a Title, and text for side 1 and side 2 of a flash card.  The program then saves all 3 of these properties into an Object and puts that Object into an ArrayCollection.  This ArrayCollection is display in a List in the MyCards.mxml file.  The problem is, nothing shows up.
Here's part of MyCards.mxml showing how I'm implementing and binding the ArrayCollection to the List:
                    [Bindable]
               public var card:Object = new Object();
               public var nc:NewCard = new NewCard(); // create new instance of NewCard
               [Bindable]
               public var cards:ArrayCollection = new ArrayCollection();
               public function add():void
                    cards.addItem(nc.myCard); // add new Item to ArrayCollection 'cards'
                    trace(cards.list);
          ]]>
     </fx:Script>
     <s:actionContent>
          <s:Button label="Delete"/>
          <s:Button label="Home" click="button1_clickHandler(event)" skinClass="skins.homeButtonSkin"/>
     </s:actionContent>
     <s:Image x="0" y="-80" height="603" source="mainapp1.jpg"/>
     <s:List id="myCardsList" x="10" y="10" left="0" right="0" top="0" bottom="0" width="1004"
               height="500"  dataProvider="{cards}"
               enabled="true" >
          <s:itemRenderer>
               <fx:Component>
                    <s:MobileItemRenderer label="{data.Title}"/>
               </fx:Component>
          </s:itemRenderer>
          </s:List>
And then here's how I'm 'adding' the cards in the NewCard.mxml:
                         [Bindable]
               public var myCard:CardVO = new CardVO(); // create new instance of CardVO
               public function button2_clickHandler(event:MouseEvent):void  // save button
                    var myc:MyCards = new MyCards();  
                    myc.add();
                    trace(myc.cards.list);
                    trace(myc.cards.length);
                    //card.fTitle = titleCard.text;
                    //mycArray();
                    titleCard.text = "Card Added!";
     <s:TextInput id="titleCard" x="240" y="10" height="62" chromeColor="#515851" color="#060606"
                     contentBackgroundAlpha="1.0" contentBackgroundColor="#FFFFFF" text="{myCard.Title}" change="{myCard.Title = titleCard.text}"/>
     <s:SkinnableContainer
          id = "groupt" x="161" y="88" width="703" height="357"  >
          <!-- text property of mtext1 and mtext2 is bound and returned to the get/set functions in CardVO in the 'change' event-->
          <!-- change sets setter values to those retrieved from textAreas-->
          <s:TextArea id="mtext2" visible="false" x="0" y="0" width="703" height="357"
                         color="#000000" contentBackgroundAlpha="1.0"
                         contentBackgroundColor="#FFFFFF" editable="true" enabled="true"
                         paddingTop="70" text="{myCard.Side2}" change = "{myCard.Side2 = mtext2.text}"
                         textAlign="center"/>
          <s:TextArea id="mtext1" x="0" y="0" width="703" height="357" color="#030303"
                         contentBackgroundAlpha="1.0" contentBackgroundColor="#FFFFFF" editable="true"
                         enabled="true" fontFamily="Arial" fontStyle="normal" fontWeight="normal"
                         lineThrough="false" paddingTop="70" text="{myCard.Side1}" change="{myCard.Side1 = mtext1.text}"
                         textAlign="center" textDecoration="none" verticalAlign="middle"/>
     </s:SkinnableContainer>

The cards array collection items appear to be another list of items instead
of just items?

Similar Messages

  • Why won´t my display turn off when i call (iphone 4s ios 5.1)??

    hi
    i have a iphone 4s with ios 5.1
    since i updated to 5.1 i have the problem that the display won´t turn off,
    when i call with someone.
    i have reset the iphone more than one time.
    I don´t know what i can do more.
    ps: sorry for my englisch

    ach nee....
    i have no protection on the iphone and i know the display turns only off when i hold it at my ear.
    my problem IS that the display won´t turn off when i hold it at my ear.
    This problem is since the update to 5.1!

  • Why won't tabs display properly when composing e-mails in mail?

    When I compose an e-mail in Mail, often the window won't display the top row of tabs (send, attachment, etc.).  I can see the tip of each graphic, but it's almost like they've been cropped out.  Does anyone know what might be causing this and how to correct it?  Thanks in advance.

    yldawg,
    Try going to the mail menu, view click on hide toolbar, and clicking show toolbar (or visa versa) depending what shows. I haven't used this os in a long time, so I'm not sure how it is set up anymore.
    Best

  • Why won't Safari display altered uploaded files?

    If I make some changes in my web page, some changes in CSS setting, and upload the page, it continues to display in the former format. However, if I check Firefox, the newly edited file appears just fine.
    I tried repeatedly emptying the Safari cache, and even used Onyx to empty all browser caches, and of course repeatedly try reloading the page but it still does not update.
    Does anyone know why this is so? Is there a solution?
    Thanks,
    Richard

    You confused me a little here. Earlier you wrote:
    t I can see the changes in GoLive or BBedit (as previews)
    but then you say:
    That I am also previewing the file in Safari and also loading from my hard disk at that time. So that suggests to me, since Safari does not render it right
    Are you seeing changes made to CSS files when previewing in Safari ... or not? I might have read something wrong, but I had the impression you were saying previews in Safari show CSS changes, while previews online do not.
    Also, I think there are two things happening and one is confusing the matter. Earlier you wrote:
    But when previewed in Safari, it is not the same — the padding is gone.
    My feeling was that this was a separate issue, not a problem with caching. (To my knowledge and in my experience, Safari never uses cached files when viewing files on the hard drive.) My thought was that this is a CSS conflict or syntax problem.
    Test for the caching issue (in previews vs. online) with something obvious, rather than your padding style... something like a red border or a text style, so you'll be sure if it's there or not.
    Message was heavily edited by: Rachel R

  • Why are my Add-on Bar items halfway hidden, and why won't they display properly?

    [http://download343.mediafire.com/29kbvy9b609g/uzw78f3vqf688mb/Add-on+Bar+Glitch.PNG Glitched Add-on Bar photo]
    After using the new Firefox 4 for just a few days, I've noticed that my Add-on Bar items (mail notifier and weather bar) are jutted down below the actual visible display area they should be, so I can see half of the icons. This is not a priority issue, but it is still an issue, and it bothers me. I've already tried uninstalling then reinstalling Firefox 4, I've already tried removing then reinstalling the add-ons themselves, and I've also tried just hiding then showing the Add-on Bar but still nothing is changed. This problem only occurs when I use themes for Firefox 4 other than the default theme. The attached photo is a screenshot of my Add-on Bar so you hopefully won't think I'm crazy.

    I've figured this out. Apparently, there is a graphical bug in FF4 when the "Show: Icons and Text" option under customizing the toolbar is enabled, and the Downloads icon is in the Add-on Bar, the Downloads icon remains centered, but the other items in the Add-on Bar are pushed under the display area of the Add-on Bar. If the setting is reverted back to just icons or just text shown, or if the Downloads icon is removed from the Add-on Bar, this is fixed. A simple line of code could fix this coincidental error, but as I said before, it's not a priority issue. As always, I can just click Ctrl+J to show my current downloads. I just tried to have this icon in the newly named Add-on Bar to replicate my old-fashioned Firefox 3.6 interface, but I guess that's unreasonable for Mozilla...

  • Why won't iCal display multi-day events in month view?

    This is frustrating. If someone sends me a calendar event that lasts multiple days from Calendar software that ACTUALLY WORKS  (hint hint hint Google Calendar, Outlook), and if I accept this event, it only displays the FIRST DAY of the event in iCal's month view. It should put a solid bar through every date included in the duration of the event. How is it that this has not been fixed yet???

    Bug or design flaw?
    Try setting it as a recurring event (yeah, I know, it's not a great solution, but it gets the job done)

  • Why won't iTunes display the content tabs at the top of the screen?

    I recently upgraded to iTunes 5.1 so that I can sync my MacBook Pro with my new iPad.  Now I can't figure out how to select and transfer my photo albums - nothing with my photo albums is displaying on the iTunes screen or in the Library.

    So I setup my ipad as a new iPad and even after putting iTunes back on it. If I deselect what I want to sync and then sync again those items are simply not removed.
    You would think after this long that Apple would have the ability to thoroughly regression test this stuff.

  • Why won't GUI display correctly ?? --URGENT--

    Hi,
    I am copying the code from my book. For some reason the color doesn't work when I copy+paste teh code into Eclipse. Am I doing something wrong or do I have to enable something in Eclipse options??? I keep getting 2 windows WITH NO TXT and NO COLOR. Here is the code:
    import javax.swing.*;
    import java.awt.*; //needed for the Color class
    public class SecondWindow extends JFrame
        public static final int WIDTH = 200;
        public static final int HEIGHT = 200;
        public SecondWindow( )
            super( );
            setSize(WIDTH, HEIGHT);
            Container contentPane = getContentPane( );
            JLabel label = new JLabel("Now available in color!");
            contentPane.add(label);
            setTitle("Second Window");
            contentPane.setBackground(Color.BLUE);
            addWindowListener(new WindowDestroyer( ));
        public SecondWindow(Color customColor)
            super( );
            setSize(WIDTH, HEIGHT);
            Container contentPane = getContentPane( );
            JLabel label = new JLabel("Now available in color!");
            contentPane.add(label);
            setTitle("Second Window");
            contentPane.setBackground(customColor);
            addWindowListener(new WindowDestroyer( ));
    }and the driver file
    import java.awt.*; //for the class Color used in an argument.
    public class SecondWindowDemo
         Creates and displays two windows of the class SecondWindow.
        public static void main(String[] args)
            SecondWindow window1 = new SecondWindow( );
            window1.setVisible(true);
            SecondWindow window2 = new SecondWindow(Color.PINK);
            window2.setVisible(true);
    }WINDOWS Destroyer Class
    import java.awt.*;
    import java.awt.event.*;
    If you register an object of this class as a listener to any
    object of the class JFrame, then if the user clicks the
    close-window button in the JFrame, the object of this class
    will end the program and close the JFrame.
    public class WindowDestroyer extends WindowAdapter
        public void windowClosing(WindowEvent e)
            System.exit(0);
    }Message was edited by:
    eristic
    Message was edited by:
    eristic

    Well I read the forum rules and it doesn't say
    anything about not using URGENT. Sounds like you are
    going based on convention.Consider basic good manners. You have just approached a bunch of strangers and asked them for their help, for free. By telling us it's urgent, you're really saying "my problem is more important than these other people asking for help", which is only true as far as you're concerned. Everyone considers their own problem more important.
    The forum rules may not say anything about not using "URGENT", but since the people answering the questions have the power to do so or not, you just have to abide by what they say. Like it or lump it, basically. Or cough up some hard currency

  • Why won't emails display in new mailbox I created?

    Hi, I wanted to make another mailbox/folder to put specific emails in, did what I've always done, except the ones I've copied to the new box don't sit in the folder, they are only shown on my computer drive, not in the mail window, like all the others! Why is this happening?

    BDAqua wrote:
    Hmmm, this "folder in my Finder", is it located in...
    /Users/YourUserName/Library/Mail/Mailboxes/
    Yes, along with all the other ones. However, many have a second, with duplicate names, but with .mbox after it, while some don't, including the one I created. As a workaround I just renamed one of the folders that was working, "delivered", that I never use. However, while I can put messages or copies in it, in my Finder, it is still titled "delivered" even though the correct emails are inside it. It's just this kind of stuff that Apple used to explain, right there in their Help window, you used to be able to go through every program, and when deciding how to set preferences, it told you, line by line what everything meant. Now, it's sink or swim, hunt around for some info here, there, and often end up coming here, posting questions or searching for answers, or sometimes just searching the web. It's very frustrating & disappointing, as Apple used to be well-loved for it's ease of use, and customer service... no more. Something as simple as this should be, I have to end up spending a lot of wasted time & energy, hunting an answer to a very minor question.....

  • Why won't artwork display

    The album artwork shows up in my itunes, but when I sync my iPod it won't show up. I have the tab clicked that says to show artwork. How do I get it to show up on my iPod?

    The album artwork shows up in my itunes, but when I
    sync my iPod it won't show up. I have the tab
    clicked that says to show artwork. How do I get it
    to show up on my iPod?
    ?

  • Why won't Cinematic Display work with Macbook OSX 10.5.8?

    I have the 27" Cinematic Display - just got it a couple mont. Works fine with my MacBook Pro. So far we have had no luck getting my wife's MacBook 2.4 gig Core Duo running OSX 10.5.8 to detect the display when we plug in the mini port. Is there a way to manually get it to detect the screen or is there something I'm missing?
    Thanks in advance!
    Jeremy

    The store says it requires 10.6.4 or later, and so one has posted a question or answer to the contrary.
    The biggest mistake users make with Mini DisplayPort is not pushing the cable-end into the port all the way. It must be inserted until "essentially ALL of the metal part disappears inside the socket".

  • Why won't my display backlight come on?

    I have a unibody MacBook Pro purchased in late 2009.
    Sometimes when I wake up my laptop I can see that the display has come on but the backlight that makes the display bright is not on.  On other words, the screen is completely dark, but under the right lighting I can see that the LCD itself is on (windows are up, the cursor is moving around the screen) but there is no light making it all bright (i.e., the display backlight is off).  When I put it to sleep and wait for the indicator light to start pulsing and then wake it up again it will off then come on, but of course I shouldn't have to do that.
    Perhaps related or unrelated is my keyboard backlight also doesn't work.  I can turn the brightness up and down using the F5 and F6 keys and the indicator will come up on the screen showing the brightness going up and down, but the keys themselves are not lit at all.
    Was there a recall sent out about this issue?  I do have AppleCare.
    Thanks.

    I have the same thing, not only my current Retina MacBookPro (Mountain Lion) but on my previous 2008 MacBook black (Lion). I find it very odd that I'd have the exact same issue on two different computers; there must have been a setting on the old one that got migrated to the new one somehow?

  • Why won't video display full screen?

    I've imported an mp4 file into Premiere elements 7, burnt it to DVD, but when I view it on TV there's large black areas all around the video.  i thought it was the TV setting, played around with those, but couldn't get it to display full screen.
    I've looked at the video again in preview, and it's the same when I preview it, so I'm guessing it might be a Premiere Elements setting or a laptop setting?  Note this is the first time I've tried it on a new laptop - the old one was nicked when we were burgled :-(
    I've done a clean install of premiere elements and just gone from there, so do I need to do something after install maybe?
    Any help much appreciated
    thanks

    Dabbsyl
    You say that you created your .mp4 (photos and videos) in Windows Movie Maker. However, please verify that since Windows Movie Maker does not appear to offer a .mp4 export choice...they all seem to be .wmv or dv.avi. If you miswrote on this point, the discussion of .mp4 and Premiere Elements becomes a non issue.
    (The above seems to be true if you are using the Windows Live Movie Maker instead of Windows Movie Maker, but in the case of Windows Live Movie Maker there is no longer an option for dv.avi, just .wmv.)
    When creating a Premiere Elements project for export to file saved to the computer hard drive or burn to disc,
    a. Determine the properties of your source media (video and audio compression, frame size, frame rate, file extension, pixel aspect ratio, etc)
    b. Set the Premiere Elements project preset (new project dialog) to match the properties of those source media.
    c. Check...does my source media fill the space provided in the Edit Mode Monitor for editing purposes.
    d. When exporting, if workflow is for 16:9 Widescreen, then be sure to set for a preset for Widescreen burn to or, if workflow is 4:3 standard, then a preset for Standard burn to.
    I suspect that your problems are in regard to set up of your project rather than .mp4 versus other wrapper formats.
    But let us see by looking at the details revisited.
    Thanks.
    ATR

  • Why won't Mail display incoming any more?

    Yesterday in a moment of brain-fade, I accidently erased my In-box instead of a single email (OK, I didn't have my glasses on, and didn't read the dialogue box properly). The problem now is that although Mail tells me there's X number of mail in the inbox there's no sign of it. I thought about deleting the account and re-doing it but the dialogue box tells me I'll lose everything. Does that include mail stored in folders? Any ideas?
    vfMarky

    Not sure how do you expect deleting anything to be of any help in trying to recover something deleted previously...
    What type of account is this (POP, IMAP, .Mac)?

  • Why won't menu display?

    package test;
    import java.awt.BorderLayout;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    public class TestFrame extends JFrame {
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         private JSplitPane jSplitPane = null;
         private JPanel jPanel = null;
         private JPanel jPanel1 = null;
         private JLabel jLabel = null;
         private JLabel jLabel1 = null;
         private JMenuBar jJMenuBar = null;
         private JMenu jMenu = null;
         private JMenuItem jMenuItem = null;
         private JMenuItem jMenuItem1 = null;
         private JMenu jMenu1 = null;
         public TestFrame() {
              super();
              initialize();
         private void initialize() {
              this.setSize(300, 200);
              this.setJMenuBar(getJJMenuBar());
              this.setContentPane(getJContentPane());
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(new BorderLayout());
                   jContentPane.add(getJSplitPane(), BorderLayout.CENTER);
              return jContentPane;
         private JSplitPane getJSplitPane() {
              if (jSplitPane == null) {
                   jSplitPane = new JSplitPane();
                   jSplitPane.setDividerLocation(50);
                   jSplitPane.setLeftComponent(getJPanel());
                   jSplitPane.setRightComponent(getJPanel1());
              return jSplitPane;
         private JPanel getJPanel() {
              if (jPanel == null) {
                   GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
                   gridBagConstraints1.gridx = 0;
                   gridBagConstraints1.gridy = 0;
                   jLabel1 = new JLabel();
                   jLabel1.setText("left");
                   jPanel = new JPanel();
                   jPanel.setLayout(new GridBagLayout());
                   jPanel.add(jLabel1, gridBagConstraints1);
              return jPanel;
         private JPanel getJPanel1() {
              if (jPanel1 == null) {
                   GridBagConstraints gridBagConstraints = new GridBagConstraints();
                   gridBagConstraints.gridx = 0;
                   gridBagConstraints.gridy = 0;
                   jLabel = new JLabel();
                   jLabel.setText("right");
                   jPanel1 = new JPanel();
                   jPanel1.setLayout(new GridBagLayout());
                   jPanel1.add(jLabel, gridBagConstraints);
              return jPanel1;
         private JMenuBar getJJMenuBar() {
              if (jJMenuBar == null) {
                   jJMenuBar = new JMenuBar();
                   jJMenuBar.add(getJMenu());
              return jJMenuBar;
         private JMenu getJMenu() {
              if (jMenu == null) {
                   jMenu = new JMenu();
                   jMenu.add(getJMenuItem());
                   jMenu.add(getJMenuItem1());
                   jMenu.add(getJMenu1());
              return jMenu;
         private JMenuItem getJMenuItem() {
              if (jMenuItem == null) {
                   jMenuItem = new JMenuItem();
              return jMenuItem;
         private JMenuItem getJMenuItem1() {
              if (jMenuItem1 == null) {
                   jMenuItem1 = new JMenuItem();
              return jMenuItem1;
         private JMenu getJMenu1() {
              if (jMenu1 == null) {
                   jMenu1 = new JMenu();
              return jMenu1;
    }

    Naw, they're there. And sorry I didn't put any explanation. I hit submit too quick .
    I figured it out though. I wasn't setting the text propreties, so the menu was actually displayin, it was just empty.
    Thanks anyways

Maybe you are looking for

  • How to change associated iMessage email in conversation?

    Hi all, A friend and I are having issues with iMessage. Basicly her whole family uses the one Apple ID for purchases, so my friend updated to iOS5, and we were messing about with iMessages not realising that it was using their family Apple ID. So we

  • Problem with FM NAMETAB_GET in Unicode system

    Hi everyone, I'm working in a landscape that has a non-unicode development, non-unicode testing, unicode testing and non-unicode production. The intention is to have a unicode production in the future. I have an application that has been developed to

  • Blurry spots on screen

    I have blurry spots all over inside my computer screen-giving a slightly blurred effect. It is not on my screen-i checked to see if the glass was smudged or dirty and is not. can someone help me fix this problem?

  • Double line Item For Tax

    Hi SAP Gurus, I have a issue related to invoice verification. We have following tax procedure        Basic Price  + Excise + Frieght + VAT  = Gross Price But here frieght is taxable on which VAT is caluculated. But while doing MIRO system is showing

  • Problems updating to 12.0 + 64-bit version question

    On the first issue: my Firefox 11.0 won't update to 12.0, even when going through the "About Firefox -> Check for updates" path. I know that the release date for 12.0 was today, so I don't understand what's the problem. On the second issue: is it tru