todayisnew
asked on
transparent background on a spark spinnerlist?
Hello :)
been at this about 4 hours, looking to set the background of a spark spinner list to transparent :) I've tried backgroundAlpha which does not seem to work and editing the skin for the class any help is greatly appreciated.
been at this about 4 hours, looking to set the background of a spark spinner list to transparent :) I've tried backgroundAlpha which does not seem to work and editing the skin for the class any help is greatly appreciated.
ASKER
sure, any simple spark spinner does not have the option to set the background alpha to 0 while keeping the text in the spinner visible. I set the alpah here to 0.5 as you can see the background starts to vanish but the text goes with it :)
<s:SpinnerListContainer x="-1" y="-76" width="200" height="200" alpha="0.5">
<s:SpinnerList height="100%" labelField="data" selectedIndex="1" >
<s:ArrayList>
<fx:Object data="data1"></fx:Object>
<fx:Object data="data2"></fx:Object>
<fx:Object data="data3"></fx:Object>
<fx:Object data="data4"></fx:Object>
</s:ArrayList>
</s:SpinnerList>
</s:SpinnerListContainer>
<s:SpinnerListContainer x="-1" y="-76" width="200" height="200" alpha="0.5">
<s:SpinnerList height="100%" labelField="data" selectedIndex="1" >
<s:ArrayList>
<fx:Object data="data1"></fx:Object>
<fx:Object data="data2"></fx:Object>
<fx:Object data="data3"></fx:Object>
<fx:Object data="data4"></fx:Object>
</s:ArrayList>
</s:SpinnerList>
</s:SpinnerListContainer>
I don't have 4.6 to test this so I cannot be so sure but this one looks like it is just what you need. Scroll all the way to the bottom of the post where he is overriding drawBackground method to change the color of the background where you can give change 0.7 to 0 to set it transparent, I think. See if that works for you.
http://devgirl.org/2011/11/14/flex-mobile-development-spinnerlist-sample-with-source-code/
http://devgirl.org/2011/11/14/flex-mobile-development-spinnerlist-sample-with-source-code/
graphics.beginFill(0x92ADC2, .7);
CyanBlue
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
CyanBlue