Leones
11-04-2009, 02:26 PM
Hey,
Can't get my head around this one!! I need a lil help with a list I've created as a menu via the List Component. Once a label is selected I would like it to navigate to another page within the site.. which it does, but once the new url is loaded, the list component disappears.. as in it does not exist on the new url (on the same sight)?! What am I doing wrong?!?
Any help will be muchly appreciated!
Here's the AS..
mx.accessibility.ListAccImpl.enableAccessibility() ;
my_list.change = function(evt:Object) {
getURL(evt.target.selectedItem.data, "_self");
};
my_list.addEventListener("change", my_list);
my_list.setStyle("backgroundColor", "0xF3DAE8");
my_list.setStyle("alternatingRowColors", [0xF3DAE8, 0xF4E4ED]);
my_list.setStyle("color", "0x4C0018");
my_list.setStyle("fontSize","14");
my_list.setStyle("rollOverColor", "0x800028");
my_list.setStyle("textRollOverColor", "0xFFFFFF");
my_list.setStyle("textSelectedColor", "0xFFFFFF");
my_list.setStyle("selectionColor", "0x800028");
Can't get my head around this one!! I need a lil help with a list I've created as a menu via the List Component. Once a label is selected I would like it to navigate to another page within the site.. which it does, but once the new url is loaded, the list component disappears.. as in it does not exist on the new url (on the same sight)?! What am I doing wrong?!?
Any help will be muchly appreciated!
Here's the AS..
mx.accessibility.ListAccImpl.enableAccessibility() ;
my_list.change = function(evt:Object) {
getURL(evt.target.selectedItem.data, "_self");
};
my_list.addEventListener("change", my_list);
my_list.setStyle("backgroundColor", "0xF3DAE8");
my_list.setStyle("alternatingRowColors", [0xF3DAE8, 0xF4E4ED]);
my_list.setStyle("color", "0x4C0018");
my_list.setStyle("fontSize","14");
my_list.setStyle("rollOverColor", "0x800028");
my_list.setStyle("textRollOverColor", "0xFFFFFF");
my_list.setStyle("textSelectedColor", "0xFFFFFF");
my_list.setStyle("selectionColor", "0x800028");