Hi list,
Sorry about this off topic post, i'v post this to adobe flex support forum,
but no one replies, I think maybe some one else here have focused this
problem before, so maybe there's suggestions of this problem:
When you use both filters and scrollRect properties for a Sprite, here's a
test:
package{
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.geom.Rectangle;
import flash.text.*;
public class TestProj extends Sprite
{
private var container:Sprite;
private var cursor:Sprite;
private var text:TextField;
public function TestProj(){
container = new Sprite();
var sprite:Sprite = new Sprite();
sprite.graphics.beginFill(0xff0000);
sprite.graphics.drawRect(0, 0, 200, 100);
sprite.graphics.endFill();
sprite.x = sprite.y = 100;
sprite.scrollRect = new Rectangle(0, 0, 200, 100);
sprite.filters = [new GlowFilter(0x0000FF, 1, 10, 10, 4)];
container.addChild(sprite);
addChild(container);
stage.addEventListener(MouseEvent.MOUSE_DOWN, __mouseDown);
cursor = new Sprite();
cursor.graphics.beginFill(0xffff00);
cursor.graphics.drawCircle(0, 0, 20);
cursor.graphics.endFill();
addChild(cursor);
cursor.startDrag(true);
text = new TextField();
text.text = "click the stage to invisible the rect container, " +
"but you can see it is still visible, \nthen move the circle over it...!";
text.autoSize = TextFieldAutoSize.LEFT ;
text.y = 300;
addChild(text);
}
private function __mouseDown(e:MouseEvent):void{
container.visible = false;
e.updateAfterEvent();
}
}
}
From the code, you can see, if you click the stage, the red rect should be
invisible, but it does not, then move the cursor(yellow circle) over it, see
what happens.
There is the movies to show you: http://www.rgenerat.org/iileyblog/?p=62
Is this really a flash player bug? and is there a way to avoid this or solve
this? Thanks very much for helps.
--
iiley
AsWing http://www.aswing.org
Personal http://www.iiley.com
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org