Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
Oct 29, 2013 Oct 29, 2013

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

TOPICS
ActionScript
673
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 29, 2013 Oct 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 t

...
Translate
LEGEND ,
Oct 29, 2013 Oct 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];

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 29, 2013 Oct 29, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 29, 2013 Oct 29, 2013
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines