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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:57:16+00:00 2026-05-13T07:57:16+00:00

Hi can anyone offer some help please ? I have two images on my

  • 0

Hi can anyone offer some help please ? I have two images on my flash stage (A camera image and a scenery image) The idea is that the camera is in front of the scenery. The problem is although both images are on my stage the camera is completely transparent and looks wrong . How can I set the cannon image transparency so that it is a solid image on top of the background image . Thanks in advance for any tips !, Mick

    // add images 

var cannon = new mc_cannon ;
var backGround = new mc_scene ;        


backGround.x = 200 ;
backGround.y = 200 ; 
addChild (backGround) ; 

setChildIndex(cannon,numChildren - 1);
cannon.alpha = 1 ;
cannon.x = 200 ;
cannon.y = 200 ; 
addChild (cannon) ;
  • 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-13T07:57:16+00:00Added an answer on May 13, 2026 at 7:57 am

    Just looking at your code, I would guess that your code causes a runtime error, as you are trying to use the setChildIndex() method with a display object that has yet to be added to the stage (cannon). I can’t remember ever accidentally doing this, so I’m not sure that an error is indeed thrown, but doing so would be consistent with other display-list related programmer errors.

    Because you are adding the background first, and then the cannon, you shouldn’t have to use setChildIndex() at all. The cannon will be added on top of the background.

    Furthermore, you speak of transparent JPEG images, something that (while it does exist in an addition to the JPEG spec) is almost never used. You should use PNG images for bitmaps that have transparency. Then, in Flash CS4, set the compression of the imported image to “Photo (JPEG)”, and it will be encoded by Flash as a JPEG, but keeping the transparency intact.

    If removing setChildIndex() doesn’t help, and you are indeed able to import the alpha channel in your images, I’m finding it really hard to imagine what the problem might be. Could you maybe supply a screen shot of the camera being “completely transparent” and “looking all wrong”?

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone offer an alternative to removing duplicates from an numeric indexed table that
can anyone offer a selector to do away with this horrible chunk of code:
Can anyone suggest a CMS able to offer the following features: Free/open source Support
Can anyone suggest the best way to offer a file for download within a
Can anyone help - this is driving me mad. I am calling a mysql
Here is my full problem so if anyone has any ideas or can offer
Can anyone let me know how can we change the value of kendo combobox
Can anyone enlighten me to a way I can Highlight the content of an
Can anyone explain to me why this program: for(float i = -1; i <
Can anyone explain why here a = [] ? 1 : 2 a will

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.