cs3 component creation

One of the greatest thing that happened with CS3 is the support for components. I had numerous classes with subtle differences. But now with components I can take care of those differences by using component parameters, which is editable via the property inspector.

I have one issue regarding component creation.
We can use the [Inspectable] tag just above the setter functions to make a property accesible via the componeont parameter panel.
Suppose I have three inspectable tags like the following

[Inspectable (type=int,defaultValue = 0)]
public function set MyInt(myInt:int):void{
a=myInt;
}
[Inspectable (type=number,defaultValue = Math.PI)]
public function set MyNumber(myNum:int):void{
b=myNum;
}
[Inspectable (enumeration="Type1,Type2",defaultValue = "Type1")]
public function set MyType(myType:String):void{
switch(myType){
case Type1:
.
.
.
break;
case Type2:
.
.
.
break;
default:
break;
}

 }

The third parameter is like a preset which sets the other 2 parameters in a preset manner. But I need to refelect the changes that happen to the parameters ‘MyNum’ and ‘MyInt’ when i select any of the 2 presets using the ‘MyType’ list in the parameters panel in flash IDE.

Hope I have explained myself correctly…

Thanks in advance…