PDA

View Full Version : ListBox problems.....::sigh::


deo
04-27-2004, 02:34 PM
Hi,

Well im nearing the completion of my movie but am totally stumped now.

Heres the deal:

I have a bunch of movieclips set on the first frame (just basic mouse over animations) with some actionscript to handle a few functions (importing an xml doc and color changing functions).

Now, I tried adding a list box on a seperate layer and populating it with the data from the xml document.

example:
myList.addItem("blah", blah);

But when I run the movie, the listbox shows up as empty with a 1px black border around it. I even tried populating it with static info within the movie and it returns the same result. I debuged and the info IS comming in from the xml properly.

So I said screw it and created an empty movie clip and imported the listbox (which was working in a seperate fla) and it works, but the stylesheet im applying to it is not being applied and cannot get it to apply all the styles properly.

Here is how im appling the styles:

_global.style.setStyle("themeColor", 0xF0F0F0);
_global.style.setStyle("color", 0x798699);
_global.style.setStyle("rollOverColor", 0xD9DFE8);
_global.style.setStyle("textRollOverColor", 0x798699);
_global.style.setStyle("fontFamily", "Tahoma,sans-serif");
_global.style.setStyle("fontSize", "11");
_global.style.setStyle("textSelectedColor", 0xFFFFFF);
_global.style.setStyle("selectionColor", 0x798699);


If anyone can help, I would deeply appreciate it.

~Deo

CyanBlue
04-27-2004, 03:09 PM
Howdy and Welcome... :)
But when I run the movie, the listbox shows up as empty with a 1px black border around it.
That sounds like the ones that has to do with the font... Maybe yoiu have not embed the font correctly???

Try this... You said you have static data version, right???
Create a new Flash file and copy that part and run it to see if it happens again or not... If it happens again, disable the 'font' part and try it again to see if that works... If that works, that probably has to do with the font... If not, I have no idea... :)

deo
04-27-2004, 04:15 PM
Well,

I know its not the font, because if it was the font, the scrollbar would still appear and it would be able to scroll. There must be something else that is stopping list from displaying.

Either way, I found a simple solution. I just took the movie with the List that already had the styles applied to it and working and imported the other movie into it, rather than the other way around. Everything seems to be working.

Thanks for the help anyway.

~Deo

cb604
08-26-2005, 08:52 PM
Did you apply the styles though? Try this at the bottom of your styles code.


_global.style.applyChanges();

cb604
08-26-2005, 08:53 PM
whoa sorrysguys, I necro'd a long dead thread!