alpha field does not work well in children
Bug #924051 reported by
Robert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jeash |
Incomplete
|
Medium
|
Unassigned |
Bug Description
The solution is to modify the DisplayObject.hx by adding this:
public var alpha(jeashGetA
var _alpha:Float;
.
.
.
function jeashGetAlpha(
{
if (parent != null)
return _alpha * parent.alpha;
return _alpha;
}
function jeashSetAlpha(
{
_alpha = a;
return a;
}
I have tested by myself and seems to work fine.
PD: I'm not using NME, just jeash.
Changed in jeash: | |
status: | New → Fix Committed |
milestone: | none → 0.8.8 |
Changed in jeash: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Hey,
I think I need to test this a little, because alpha already pre-multiplies if you are a child of a container that is drawn through a Bitmap.draw op.. Do you have a small example where you know this works ?