我正在製作一個新聞滑塊,用於從php腳本加載內容。問題是,當我把網址進入的BitmapImage爲縮略圖源,圖像從未加載:基於Flex BitmapImage不會從URL加載
var newsItemThumb:BitmapImage = new BitmapImage();
newsItemThumb.source = XMLReader.newsItem[i].thumb;
newsItemThumb.fillMode = "stretch";
newsItemThumb.width = 100;
newsItemThumb.height = 100;
// add the thumb to news
newsItem.addElement(newsItemThumb);
我確實爲此工作過,但不確定它爲什麼發生。我將XMLReader.newsItem [i] .thumb的值設置爲一個字符串變量,它的工作方式非常奇怪! – Glen