Skip to main content
October 29, 2013
Answered

Can comboboxes have drop shadows, and if so, how (Flash Pro)?

  • October 29, 2013
  • 1 reply
  • 712 views

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

This topic has been closed for replies.
Correct answer Ned Murphy

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];

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
October 29, 2013

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];

October 29, 2013

Thank you Ned - targeting the dropdown part was the piece of the puzzle I was missing.

Ned Murphy
Legend
October 29, 2013

You're welcome