dycraw
12-29-2006, 08:19 PM
I am completely lost and do not know if this is possible I have a list component that is populated through xml using the following actionscript
var albums = new Array();
var dataListener:Object = new Object();
dataListener.galleryData = function(eventObject):Void {
for (i=0; i<eventObject.data.length; i++) {
albums.addItem({label:eventObject.data[i][0].title, data:eventObject.data[i][0].id});
}
};
my_ssp.addEventListener("galleryData", dataListener);
nav_cb.dataProvider = albums;
var changeListener:Object = new Object();
changeListener.change = function(eventObject) {
my_ssp.loadAlbum(eventObject.target.selectedItem.d ata);
};
nav_cb.addEventListener("change", changeListener);
What I would like to know is if there is anyway to the list component show a different heading then the one retreived through the xml call. If this makes sense. Currently the xml serves up the following based on the way things are named in my database (647, 649, 732, 23, 59) what I would like the List component to show is (Portfolio 1, Portfolio 2, Portfolio 3, Portfolio 4, Portfolio 5) regardless of the numbers provided by the xml.
If I am way off on even explaining this please let me know so I can give it another shot
var albums = new Array();
var dataListener:Object = new Object();
dataListener.galleryData = function(eventObject):Void {
for (i=0; i<eventObject.data.length; i++) {
albums.addItem({label:eventObject.data[i][0].title, data:eventObject.data[i][0].id});
}
};
my_ssp.addEventListener("galleryData", dataListener);
nav_cb.dataProvider = albums;
var changeListener:Object = new Object();
changeListener.change = function(eventObject) {
my_ssp.loadAlbum(eventObject.target.selectedItem.d ata);
};
nav_cb.addEventListener("change", changeListener);
What I would like to know is if there is anyway to the list component show a different heading then the one retreived through the xml call. If this makes sense. Currently the xml serves up the following based on the way things are named in my database (647, 649, 732, 23, 59) what I would like the List component to show is (Portfolio 1, Portfolio 2, Portfolio 3, Portfolio 4, Portfolio 5) regardless of the numbers provided by the xml.
If I am way off on even explaining this please let me know so I can give it another shot