Skip to content

position of filters #35

@matrix3d

Description

@matrix3d

@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)];
		}
		
	}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions