Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3219544
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:39:31+00:00 2026-05-17T15:39:31+00:00

I have a complex graphics data on a sprite or a shape (no matter

  • 0

I have a complex graphics data on a sprite or a shape (no matter which is exactly).
But I want to draw shadow (inner too) for one Rect ( [10, 10, 240, 25] for example) or another path.

  /// code before
  grObj.graphics.drawRect( 10, 10, 240, 25);
      /// -> draw inner shadow on this objcect somehow
  /// code after

Is it possible to perform w\o filters?

ps. http://ipicture.ru/uploads/100927/RHZF1K6Exu.png


solving:

BitmapData(*).applyFilter( *,*,*,*); // play with this function :)

also http://help.adobe.com/ru_RU/AS3LCR/Flash_10.0/flash/display/BitmapData.html#applyFilter()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:39:31+00:00Added an answer on May 17, 2026 at 3:39 pm

    i’m assuming you don’t want to add filters to your object because you plan on adding a colorTransform and do not want the filters to also change color.

    if that’s the case what you can do is separate the filter by creating another sprite of the same size as the original, add a drop shadow filter to the new sprite with the hideObject parameter set to true.

    //display object
    var grObj:Sprite = new Sprite();
    grObj.graphics.beginFill(0xFF0000, 1);
    grObj.graphics.drawRect(0, 0, 240, 25);
    grObj.graphics.endFill();
    
    //filter object
    var dsFilter:Sprite = new Sprite();
    dsFilter.graphics.beginFill(0);
    dsFilter.graphics.drawRect(0, 0, grObj.width, grObj.height);
    dsFilter.graphics.endFill();
    
    dsFilter.filters = [new DropShadowFilter(4.0, 45, 0, 1.0, 4.0, 4.0, 1.0, 3, true, false, true)];
    
    //display list
    grObj.x = dsFilter.x = 10;
    grObj.y = dsFilter.y = 10;
    
    addChild(grObj);
    addChild(dsFilter);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a complex json array which I want to target a specific line/string
I have complex form that I want to make more user friendly. It consists
I have a complex django object, which has properties of other class types. This
I feel like a bit of a newbie posting this, but anyway: I have
I have a complex drawing on a Gtk DrawingArea widget and I wish to
I have a complex project where there are many directories that have POM files,
I am attempting to extract all data from a file with one regex expression.
I've had a long standing interest in developing an OS UI tailored to my
How do they code the logic of a user interface running on embedded hardware.
My team has come to conclusion that in order to highlight certain text we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.