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

  • SEARCH
  • Home
  • 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 WPF UserControl made of other ContentControl templates which contain sets
Assuming Visual C/C++ 6, I have a complex data structure of 22399 elements that
I have a large old program which has some rather complex graphical displays (all
I have a graphics system for Java which allows objects to be wallpapered by
i have a input tag which is non editable, but some times i need
I have a complex query with group by and order by clause and I
I have a complex .NET Remoting server app that provides a couple of services.
I have a complex command that I'd like to make a shell/bash script of.
I have some complex stored procedures that may return many thousands of rows, and
I have a complex sharepoint deploy with multiple EventReceivers and Workflows. I also have

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.