Alpha of Graphics is not affected by container alpha
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jeash |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Currently the alpha of Graphics is not adjusted by a container's alpha. This precise scenario could be fixed fairly simply by multiplying the current DisplayObject's alpha with the parent cumulative alpha. However, the larger strategy for handling masking, cacheAsBitmap, and BlendMode.LAYER should be taken into account when fixing this.
package ;
import flash.display.
import flash.display.
import flash.Lib;
class Main extends Sprite{
public static function main() {
}
public function new(){
super();
var s:Sprite = new Sprite();
s.graphics.
s.graphics.
s.graphics.
var inset:Shape = new Shape();
inset.
inset.
inset.
s.x=s.y=100;
s.alpha=0.1;
s.addChild(
addChild(s);
}
}
Changed in jeash: | |
status: | Fix Committed → Fix Released |
hmm.. do you have an example for masking ?
BlendMode is tricky... I am unsure how to support it in a clean and fast way. Possibly, this is only for GL-contexts.