Click to See Complete Forum and Search --> : List Component - Transparent Background?
foochuck
01-10-2008, 10:32 AM
Does anyone know if there's a way to make the list component's background transparent? I want to put a custom image in the background of the list menu.
Thanks!
FOO
cancerinform
01-13-2008, 03:29 PM
I did not get the image alpha to 100, but try this. Create a movieclip with your image and export for actionscript. Here is a script for a clip named my_skin:
var themeShape:String = "my_skin";
myList.setSkin (1,themeShape);
myList._alpha=50;
foochuck
01-13-2008, 07:08 PM
I'll give that a try. What about the alpha though? Can I make it 99? I'm not sure what you meant when you said you couldn't get 100...
cancerinform
01-13-2008, 07:54 PM
50 is a compromise. When it is 100 the image is hidden behind the list. When it is 0, the list is not visible so isn't the image, which is part of the list.
foochuck
01-14-2008, 09:38 AM
cancerinform,
I've tried this method and although it functions, it doesn't work for what I need. Instead of a bitmap, I'd like to put a vector gradient in the background. Is that possible without having to mess around with the alpha settings?
Thanks
FOO
cancerinform
01-14-2008, 11:35 AM
You can still put a vector gradient by placing it in a movieclip.
The only way to get rid of the background is this:
_global.styles.ScrollSelectList.setStyle("backgroundColor", "transparent");
but then you also loose the eventhandler.
If you switch to AS3 components you can easily manipulate them.
foochuck
01-14-2008, 02:45 PM
Switching to AS3 will require a flash CS3 upgrade, correct?
flashkit.com
Copyright Internet.com Inc., All Rights Reserved.