# How do I add filters to this ball using as?

**URL:** <https://forum.kirupa.com/t/how-do-i-add-filters-to-this-ball-using-as/271702>\
**Category:** Uncategorized\
**Created:** [September 26, 2008, 4:36pm UTC](https://forum.kirupa.com/t/how-do-i-add-filters-to-this-ball-using-as/271702 "2008-09-26T16:36:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spooks222](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@spooks222](https://forum.kirupa.com/u/spooks222)\
**Post date:** [September 26, 2008, 4:36pm UTC](https://forum.kirupa.com/t/how-do-i-add-filters-to-this-ball-using-as/271702/1 "2008-09-26T16:36:27Z")

</div>

two questions,

1. I drew a blue ball using actionscript, and I was wondering what other kind filters I could use to make it look more realistic. I tried using the help files, but I always ran into problems on the output. I know I have to add a gradientfilter but i just cant get it to work

```auto
package {
	import flash.display.MovieClip;
	
	public class BallBlue extends MovieClip {
		public var radius:Number;
		private var color:uint;
		public var vx:Number = 0;
		public var vy:Number = 0;
		
		
		public function BallBlue(radius:Number=30, color:uint=0x0000ff) {
			this.radius = radius;
			this.color = color;
			init();
		}

		public function init():void {
			graphics.beginFill(color);
			graphics.drawCircle(0, 0, radius);
			graphics.endFill();
		}
	}
}

```

1. Is it possible that I can call a movieclip from my stage using a Actionscript file? such as, I create a 3dish ball name it ballMC. Can I put that into the code above, instead of using the graphics.drawCircle?

thanks!
