ActionScript 3.0 :: 24 Objects Transparency Bug - Overlap The Layer Background

Jul 13, 2011

I ran into an odd problem a week ago that I haven't been able to fix. I'm new to Flash so sorry if this has been discussed but my research has turned up nothing. I'm using Flash Develop. I managed to duplicate the problem in a simple program: I set up one large bitmap for the background, not transparent. I then add another large bitmap on top of that, the second layer background, as a child of the main bg. This layer has transparency so you can see the bg through the trees and such. Then I stack a lot of sprites on top of each other, all with transparency. They can be children of the main bg or the second layer bg, doesn't matter. Where the transparency of the sprites overlap the second layer background disappears completely to reveal the main background (like a window around the sprite stack.) The bitmaps I'm using are from embedded png files.

I found that 23 transparent objects causes the 24th object and beyond to disappear. And it only happens when I have a mask set to the main background (a simple filled square for clipping the child sprites that move off-screen.) Also the problem goes away while the background is moving. My project features many objects near each other so the chance of this problem occurring is pretty high. Its not game-breaking but I'm new to flash and my project is nearly complete (and large) so I'm hoping there is something simple I can do to fix this.

View 3 Replies


Similar Posts:


Create Top Layer With Transparency?

Aug 15, 2009

I have created a swf for the header of my website. On the top layer I have an image that stays static while the rest of the header changes images. I am trying to get the static image to be fairly transparent but am not having much luck. I created the image in PS I saved it with transparency but it doesn't look right in the swf.

View 2 Replies

ActionScript 2.0 :: Make A Sort Of Increasing Transparency Layer?

Mar 27, 2005

How i would go about making a sort of increasing transparency layer..

say i have a movieclip which is scrolling back and forth horizontally ..

as it reaches its extremes ( were i want it to start being hidden) i do not want it to be completly hidden right away .. but i want it to look more and more hidden the further into the extreme it goes , so it looks as if its fading when it scrolls to the side.

View 7 Replies

ActionScript 2.0 :: Making A Sort Of Increasing Transparency Layer?

Mar 27, 2005

making a sort of increasing transparency layer..say i have a movieclip which is scrolling back and forth horizontally ..as it reaches its extremes ( were i want it to start being hidden) i do not want it to be completly hidden right away .. but i want it to look more and more hidden the further into the extreme it goes , so it looks as if its fading when it scrolls to the side.

//VoS

i know it could be done by slicing the mc up into smaller bits and changing _alpha of it as it goes further away from my center ..

View 7 Replies

Can 3D Objects Overlap/intersect

Oct 15, 2009

Not sure how best to put this into words  Ddoes the depth manager always keep one on top of another, or can planes intersect, overlap, go through one another?

View 1 Replies

Professional :: Collapse Multiply Layers With Different Transparency Into A Single Solid Filled Layer

Jun 3, 2010

i want to collapse a complex scene with all different layers and different transparency into a single layer (or as few as possible) to optimize the flash file for online (were experince proformance issues). I have tried the combine and manually copying pasting into one layer but it cuts the fill below and replace with transparent fill. I want to have a end file that is 100% solid.

View 1 Replies

IDE :: Specify A Background Color, Or Transparency?

Jan 18, 2009

I found FlashObject script easy to understand and apply ... in part due to good instructions and the handy 'Generator.'

It validated W3C too!

One problem. My background color turned to white. How do I specify a background color, or transparency?

View 1 Replies

Css :: Css - Flash Objects Overlap When Window Is Resized?

Oct 10, 2010

Here is the link

[URL]

when resizing the window, swf objects overlaps?

View 1 Replies

ActionScript 3.0 :: MovieClip Background Transparency?

Jun 28, 2010

I have a collection of animated sprites with a brown background and I want to know how to make the brown transparent. Is there some kind of color keying in flash? The brown is #5E4229 by the way.

View 2 Replies

ActionScript 3.0 :: Placing Objects - How To Ensure MCs Do Not Overlap / Pile Up

Aug 16, 2011

I have all the functionality that I want. The basic premise of this exercise is that youth will grab a statement, drag over a microphone and it'll appear on the corresponding area (board1, board2, board3). So if they grab two statements in a row it'll place their answers at my predetermined spot. Is there a way to space each answer by a difference of 10 px? So they grab answer one and it'll go at (x) 75px, answer two will go to (x) 85 px? Basically ensuring that the mc's will not overlap or pile up.

Code is below:
// listeners
backbutton.addEventListener(MouseEvent.CLICK, backclick);
helpbutton.addEventListener(MouseEvent.CLICK, helpclick);
answerbutton.addEventListener(MouseEvent.CLICK, answerclick);
[Code] .....

View 7 Replies

ActionScript 3.0 :: Change Transparency Of Background Dynamically Within An Area?

Dec 13, 2011

I have two backgrounds on different layers, and an object that can be dragged around. What I want to happen is that an area around the object should be transparent so you can see the background behind the first background, and when the object is moved, the transparent area should also move. Kind of like a "see-through" effect.

View 2 Replies

ActionScript 2.0 :: Dynamically Load A Movie With Transparency Background?

Jun 26, 2003

can i dynamically load a movie with transparency background? and one more thing i load a jpg with loadmovie command but the size of the jpg in pixel is not the same with the output of the fla..

View 3 Replies

ActionScript 3.0 :: Delete Pixels To Reveal Background / Transparency?

Jan 6, 2011

This has been bugging me for a little, and some of the examples I have tried to find throw me in loops and they have been wrong. [url]...

Or if you have ever played "Scorched Earth" you will see that when some part of the terrain is destroyed, it punches out the pixels perfectly when a shot is fired into the ground, to reveal the picture behind the main picture with the terrain.

View 9 Replies

Flex :: Make The Modal Transparency Background Absolutely Transparent.?

Aug 22, 2011

I am using the below given code to try to make the transparency 0, but I still am unable to make the background become absolutely transparent.

<mx:Style>
global {
modalTransparencyBlur: 0;

[code].....

View 1 Replies

ActionScript 2.0 :: Background Clicking Through To A Layer Below Error?

Dec 6, 2009

I designed an all flash website and coded in AS2 and when someone clicks to play a movie in my Commercials section, I fade in a solid black background (which is a Symbol - Graphic) and the video (FLV) plays. I noticed that while the video is playing if you click on the solid black background it clicks through to the layer below and sometimes you can click on another button/video. I don't understand this because shouldn't the solid black background which covers the whole screen prevent this click through? Is there some sort of code or something I need to tell the solid black background to not click through.

View 2 Replies

ActionScript 2.0 :: Referencing Objects Not On Same Layer

Jul 15, 2011

Is it possible to control an object/element on a instance? If so, how is it done through actionscript?

There is an instance "instance140" off of the root, that has an element named img4 that i need to reference... does anyone know how I would go about that?

View 1 Replies

ActionScript 3.0 :: Adding Objects To A Masked Layer?

Dec 16, 2010

Say I have a flash project, with 3 layers (a, b, c). Layer C is the background, and A has a couple of shapes that masks B. Now I'm just wondering if there's a way to add my objects (MovieClips) to the stage using AS3 and still maintain the masks coming from A, seeing as merely putting my code in Layer B doesn't do the trick

View 3 Replies

ActionScript 3.0 :: Define A Layer For Dynamic Objects?

Dec 5, 2009

I'm creating a number of dynamic text field objects in my Actionscript, but it looks like its being rendered on the wrong layer. I've written the actionscript in the first frame of my 3rd layer (which is masked), but the objects that are rendered dont appear to be affected by the masking effect (that does work with static objects). Is there a way to define programatically which layer an object is rendered in? Something like layerNo.stage.addChild(object)?

View 1 Replies

Professional :: Create The Scripts On The Objects And Not On The Layer?

May 5, 2010

I have used buttons elsewhere in my project but this time when I use the same script I get the following error:

Symbol=gallery_button_vir_oak_tree_down, layer=Layer 1, frame=1, [code]........For some reason the project I inherited is set on an older version of action script (v1.0). So, I have to create the scripts on the objects and not on the layer.

View 8 Replies

How Does The Flash Layer Interact With The Flex Layer In A Multiple Layer Design

Aug 26, 2011

Don't know if the flash layer on the view stack contain only the compiled flash swf file

View 1 Replies

Professional :: See The List (root) Of Objects That Are Inside Each Layer?

Feb 11, 2011

I´m starting to learn flash cs5 a couple hours ago. Currently i´m learning how to use layers. Imagine that I put a rectangle and an elipse inside layer 1. Then I create a new layer with a photo. How can I see the list (root) of objects that are inside each layer? I know that I can use the outline color to visually identify them but is it possible to see the objects as a root?

[Code]....

View 6 Replies

ActionScript 3.0 :: Layer Manipulation - Game-engine, Which Will Add Objects To Itself As Symbols?

Jul 8, 2009

I'm creating a game-engine, which will add objects to itself as symbols, and I want to be able to choose how they are "layered". For example, say I decide to model things in a type of 3D, and the Z co-ordinate is used for depth (distance from front), how would I translate this into an object 1 unit away rendering in front of an object rendering 2 units away? The engine programming I've done fine in terms of calculating the values etc., as I have a strong javascript background so that was the easy what with actionscript's neat OO syntax, but getting it to do things visually is a bit problematic know, heh. So far all I've really managed is a nice little loading bar, which isn't really that hard =D
 
Also, the symbols I create are actually going to be comprised of multiple parts; a base-layer, a detail-layer, and a colour-layer. What is the easiest way to do this? Ideally I'd create the symbol with multiple layers of its own, and simply toggle the detail and colour-layers on/off as required, and tint the colour-layer independently of the rest of the symbol. Is this possible? Or will I need to use multiple symbols and move them in tandem myself?

View 4 Replies

ActionScript 2.0 :: Liquid Flash Layout - Place A Keyframe On Frame 10 In The Background Layer And Make A Motion Tween?

Mar 10, 2008

I used the liquid Flash layout file from this site , but i got one problem.I placed the script in a layer called actionscript and on frame 1, under it there is a other layer called background. I placed in just a square with a gradient color and made it a movieclip. I also placed this on frame 1. Everything is working perfect from this point but when i want to place a keyframe on frame 10 in the background layer and make a motion tween so that the background fades in from 0 opacity to 100, it doesn't work.

View 13 Replies

Professional :: Flash "window" To Background Layer?

Jul 23, 2010

Anyway, what I want to accomplish is as follows:I have a background layer that is an imageI have a middle layer that is all whiteI have a top layer that has a rectangle on itI want that rectangle to see through the white layer to the background. In other words, I want full transparency for the rectangle, but not to the layer immediately below it, but to the background layer

View 7 Replies

ActionScript 3 :: Blending Objects With Each Other But Not With Background

Jul 21, 2011

I have a number of objects (represented as DisplayObjects) that I wish to blend with each other. However behind these objects there is a background that i do not want to involve in the blending. So basically I want to blend these objects with eachother and afterwards use the result of this blending as a new DisplayObject (for example to put it on top of a randomly colored background).

So what I have is:
var obj1:DisplayObject = getFirstObj();
var obj2:DisplayObject = getSecObj();
var background:DisplayObject = getBackground();
obj1.blendMode = BlendMode.ADD;
obj2.blendMode = BlendMode.ADD;

At first attempt I tried was putting these objects into a common DisplayObjectContainer hoping that blending mode would only be relative to all objects contained by the same DisplayObjectContainer, but this does not seem to be the case.
var objectsPool:Sprite = new Sprite();
objectsPool.addChild( obj1 );
objectsPool.addChild( obj2 );
addChild( background );
addchild( objectsPool );

View 2 Replies

ActionScript 3.0 :: Attaching Objects On Scrolling Background?

Aug 5, 2009

I have a scrolling background and am trying to place an object on top of it dynamically. I can get the object(which is a picture of a tractor to appear over the background with the following statement attachMovie("tractor_mc","pic",2); however it locates it at the wrong position on the stage. Is there anyway that I can control where the object is dynamically placed on the stage ? im using Flash 8 and ActionScript 3.0

View 0 Replies

ActionScript 3.0 :: 'Slicing' Background Image Into Useable Objects?

Mar 9, 2011

I'm looking into doing the following :

I've got this 'map.png' that i'm using as a background image. The map shows a country with all the provinces/states/counties 'outlined' on it.

I'd like to generate the effect when you mouse-over or click on a province you get info on the selected province, maybe highlight it, or its outline.

The best way to do this would be making objects/MC's on top of the image ? Slice out parts of the image ?

View 9 Replies

Actionscript 3.0 :: Listeners On A Parallax - Objects Which Are On The Middle And Front Layer Are "blocking" The Sprites

Aug 27, 2009

I've made a parallax scroller consisting of three layers (actually each layer is a movieclip). On the bottom layer I have attached some sprites which I want to be clickable. The problem is that objects which are on the middle and front layer are "blocking" the sprites so they can't be clicked. I've googled for nested listeners but haven't found a solution yet.

View 1 Replies

ActionScript 3.0 :: Bitmapcanvas - Add Shadows To All Objects - Background Bitmap (won't Change During Level)

Oct 21, 2010

I'm working on a tile based game, inspiredb by tutorials from the book "the essential guide to flash games". Please have a look at [URL] -- edit: by the way, the game idea is by no means mine, but i want to replicate the old game "sensitive" from the c64 [URL] for learning purposes I want to add shadows to all objects that stand in the water. However, since I want to keep my sprite count to a minimum, I have put all objects that don't do anything in a background bitmap. The best solution I can think of is to have:

1) a background bitmap (won't change during level)
2) a background shadows bitmap (won't change during level)
3) a sprite layer
4) and a sprite shadow layer at every screen, but this seems like a lot of work for just shadows.

View 5 Replies

ActionScript 3.0 :: Scrolling Background Is Hidding The Birds, Planes And Clouds Objects Which Scroll Up?

Nov 9, 2011

I thought I would create a simple little game involving a skydiver who is supposed to be falling towards the ground, the problem I have got is the scrolling background is hidding the birds, planes and clouds objects which scroll up,

package
{
import flash.display.MovieClip;[code]......

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved