Copy link to clipboard
Copied
Hi
Is it possible to give the drop down part a drop shadow? At the moment, mine blends a little too much into a datagrid.
Cheers
You can do it programmatically the same way you would assign a filter to any DisplayObject...
import flash.filters.DropShadowFilter
var cbFilter:DropShadowFilter = new DropShadowFilter ();
cb.filters = [cbFilter];
Another approach sans AS3 for the same effect would be to just place cb inside a MovieClip and apply the filter to the MovieClip thru the properties panel
Though you will find that it only shadows the main element in both of those approaches, not the drop list portion with t
...Copy link to clipboard
Copied
You can do it programmatically the same way you would assign a filter to any DisplayObject...
import flash.filters.DropShadowFilter
var cbFilter:DropShadowFilter = new DropShadowFilter ();
cb.filters = [cbFilter];
Another approach sans AS3 for the same effect would be to just place cb inside a MovieClip and apply the filter to the MovieClip thru the properties panel
Though you will find that it only shadows the main element in both of those approaches, not the drop list portion with the shadow. To add it to the drop list portion you need to target that....
cb.dropdown.filters = [cbFilter];
Copy link to clipboard
Copied
Thank you Ned - targeting the dropdown part was the piece of the puzzle I was missing.
Copy link to clipboard
Copied
You're welcome
Find more inspiration, events, and resources on the new Adobe Community
Explore Now