Sparkã®Listã§MXã®List.invalidateList()ã¨åãåä½ããããã«ã¯?
MXã®Listã«ã¯invalidateList()ã¨ããã¡ã½ããããã£ãã®ã ããã©、Sparkã®Listã«ã¯ãªã。
ãããããªã¹ãã®å 容ãå¤ãã£ãã¨ãã©ãããã®?dataProviderãåã»ããããã、dataProviderã«ã»ãããã¦ããArrayCollectionã®refresh()ãå¼ã¶ã¨ã?ããã、ããã ã¨é¸æããã¦ããã¢ã¤ãã ãéé¸æã«ãªã£ã¦ãã¾ã。
åã«ãããã£ãã®ã ããã©、ã¡ã¢ãå¿ãã¦ã。ããããã°ããã£ãã®ã ã£ã。
ããã§MXã®List.invalidateList()ã¨åãå¹æããã。Sparkã®Listã«ãåãã¡ã½ãããæ®ãã¦ããã¦ãããã°è¯ãã£ãã®ã«。
ãããããªã¹ãã®å 容ãå¤ãã£ãã¨ãã©ãããã®?dataProviderãåã»ããããã、dataProviderã«ã»ãããã¦ããArrayCollectionã®refresh()ãå¼ã¶ã¨ã?ããã、ããã ã¨é¸æããã¦ããã¢ã¤ãã ãéé¸æã«ãªã£ã¦ãã¾ã。
åã«ãããã£ãã®ã ããã©、ã¡ã¢ãå¿ãã¦ã。ããããã°ããã£ãã®ã ã£ã。
var ir:IFactory = list.itemRenderer; list.itemRenderer = null; list.itemRenderer = ir;
ããã§MXã®List.invalidateList()ã¨åãå¹æããã。Sparkã®Listã«ãåãã¡ã½ãããæ®ãã¦ããã¦ãããã°è¯ãã£ãã®ã«。
ã³ã¡ã³ã
ã³ã¡ã³ããæ稿