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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:12:51+00:00 2026-05-23T00:12:51+00:00

Is it possible to show another instance of a sprite? What I’m trying to

  • 0

Is it possible to show another instance of a sprite? What I’m trying to do is have a reflection of a animated sprite.
What I’ve got so far is my Sprite called “canvas” that has things animating inside it by use of AS3. And what I want to do is show a copy of it flipped, below it to look like a reflection. I tried the following code but to no luck, it just hides everything?..

addChild(canvas);
var reflection:Sprite = new Sprite();
addChild(reflection);
reflection.addChild(canvas);

Any ideas why this code doesn’t work? Or do you have a better way to approach this.
Thanks

  • 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-23T00:12:52+00:00Added an answer on May 23, 2026 at 12:12 am

    You could use BitmapData for that.

    class members:

    // flip vertically and shift by 100 (insert your canvas size)
    private var reflect:Matrix = new Matrix(1, 0, 0, -1, 0, 100);
    // instanciate BitmapData with 100x100 size (insert your canvas size),
    // filled with black but with 100% transparancy, it's an
    // ARGB value (0 == 0x00000000)
    private var reflectionData:BitmapData = new BitmapData(100, 100, true, 0);
    private var reflection:Bitmap = new Bitmap(reflectionData);
    

    init:

    // you might want to draw canvas already on startup
    reflectionData.draw(canvas, reflect);
    reflection.x = canvas.x;
    reflection.y = canvas.y + canvas.height;
    addChild(reflection);
    

    on animation/redraw

    // clear to transparency
    reflectionData.fillRect(reflectionData.rect, 0);
    // draw the current canvas with matrix applied
    reflectionData.draw(canvas, reflect);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone show how it is possible to check whether another instance of the
Is it possible to show in one application window (maximized) live screens of another
Possible Duplicate: Restore a minimized window of another application I want to restore (show
Is it possible to show a facebook page as iframe in another site?
New to iOS, I have to make an app that will show photos and
Is it possible to show success message on another page without using $_SESSION ?
How is possible show an intro view for 5 seconds, to show after another
I have a function that checks whether a type is a subtype of another
I have a NSStatusItem in my app that can be configured to show some
Pretty simple question this time around. I have an application that communicates with another

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.