I was just wondering how to make the properties of a class viewable in the Components Panel. This way, someone who doesn’t program can set properties of a MovieClip by clicking on it.
This is where I’m at so far:
package
{
import flash.display.MovieClip;
public class Rotator extends MovieClip
{
private var _rotationSpeed:Number;
public function Rotator():void
{
}
[Inspectable (defaultValue=0)]
public function set rotationSpeed(speed:Number):void
{
_rotationSpeed = speed;
}
}
}