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 8598867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:15:35+00:00 2026-06-12T01:15:35+00:00

I need to place a transparent sprite over another sprite. The overlaying sprite will

  • 0

I need to place a transparent sprite over another sprite. The overlaying sprite will acept some mouse events. When a user move mouse over upper sprite a curve will be drawn. After it’ll be processed it will be drawn on the base sprite (and erased on upper).

The idea I have now is to place the sprite, draw a rectange of size equal to sizes of sprite and set alpha to 0.

The question is a bit dump: maybe the proposed solution is not the best. Is there a better way to set width and height (as far a I understand Sprite.width = w; will not help)?

Thank you in advance!

  • 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-06-12T01:15:36+00:00Added an answer on June 12, 2026 at 1:15 am

    You can’t set dimensions directly, while you can draw over that Sprite. So you can do like this:

    graphics.beginFill(0,0); // zero alpha fill
    graphics.lineStyle(0,0,0); // invisible lines
    graphics.drawRect(0,0,width,height);
    graphics.endFill();
    

    This way your Sprite can have its alpha remaining at 1, to not hide anything that’s its child. Then, whatever curve you would decide to draw in that Sprite, you can draw within a child Shape object, via graphics.moveTo and graphics.lineTo.

    UPDATE: According to comments below, setting alpha to 0 won’t work with newer Flash player versions, so alpha should be set to a nonzero amount for the events to register on the overlapping sprite.

    graphics.beginFill(0x808080,0.01); // almost zero alpha fill
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to draw a transparent plane over a User control in my DotNET
We need to place text over objects in a web page, similar to this:
I need a place to stick global referentially transparent utility methods. These should be
I am trying to create an effect when you place the mouse cursor over
I need to place some validation on an asp button to ensure it is
I need to place 10 ImageViews alongside one another (in a horizontal row) and
I need to place two repeated background images on the left and right border
I need to place the label text to left and the radio button to
I need to place default text to all rows for particular column in jquery
I need to place several DatePicker widgets into the row. If there is not

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.