typo: card.onPress = raiseCard; function raiseCard() { // runs in scope of card instance and not Deck //bad // this != Card }
should be card.onPress = raiseCard; function raiseCard() { // runs in scope of card instance and not Deck //bad // this != Deck } _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com