Thanks Muzak, that works great. I am now trying to find what property
controls the green glow that appears around the whole listbox when
it's hi-lighted as I want to lose that too and it doesn't seem to be
mentioned in the docs.
Cheers!
Ali
On 1 Jun 2007, at 12:49, Muzak wrote:
Component styles are set through the setStyle() method.
You can do this either globally or on an instance directly.
Check the docs.
For the list:
List component > Customizing the List component
function setUserList(myUserList:List) {
userList = myUserList;
userList.setStyle("useRollOver", false);
userList.setStyle("selectionColor", 0xFFFFFF);
}
regards,
Muzak
----- Original Message -----
From: "Alistair Colling" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Friday, June 01, 2007 12:27 PM
Subject: [Flashcoders] Can't set selectionColor property of List
from withinclass
Hi there, I'm working on a class that is passed instances of
components so that nearly all of the code is inside the class. I want
to set the colour of selected items to white so the list always looks
the same. I am trying to set the selectionColor property from within
my class but I get the error message:
There is no property with the name 'selectionColor'
I can set this property fine from the FLA using the regular syntax:
userList.selectionColor = 0xFFFFFF
this is how I am doing it from my class (and it doesn't work!):
function setUserList(myUserList:List) {
userList = myUserList;
userList.setStyle("useRollOver", false);
userList.selectionColor = 0xFFFFFF;
}
If anyone has any ideas for the syntax of how to set this property
from within a custom class I'd be really glad to hear.
Thanks!
Ali
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com