Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

position of filters #35

Open
matrix3d opened this issue Dec 13, 2020 · 1 comment
Open

position of filters #35

matrix3d opened this issue Dec 13, 2020 · 1 comment

Comments

@matrix3d
Copy link
Owner

matrix3d commented Dec 13, 2020

@kennylerma pls look at.the positon is 100px,but get 200px.

package  
{
	import flash.display.Sprite;
	import flash.filters.BlurFilter;
	import flash.filters.DropShadowFilter;
	/**
	 * ...
	 * @author lizhi
	 */
	public class TestFilter extends Sprite
	{
		
		public function TestFilter() 
		{
			SpriteFlexjs.debug = true;
			
			var b:Sprite = new Sprite;
			addChild(b);
			b.x = 100;
			
			var a:Sprite = new Sprite;
			a.graphics.beginFill(0);
			a.graphics.drawRect(0, 0, 100, 100);
			b.addChild(a);
			//a.cacheAsBitmap = true;
			
			//a.x = 100;
			
			a.filters = [new DropShadowFilter(2, 45, 0xff0000, 1, 2, 2, .3, 1,true)];
		}
		
	}

}
@kennylerma
Copy link
Contributor

I'll have a look. I have several fixes coming soon for caching, drawing and masking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants