Component Property Menu

I’ve been making a game engine recently, and i want to turn some of the movie clips into components. the main reason for this is so that i can create that menu that is available instead of the properties area. it comes up with some variables that you can edit from there. i would like to be able to do this instead of having to do:

onClipEvent(load) {
    variable = value;
    variable = value;
    variable = value;
}

on a lot of the movieclips.

just found remembered name for it: component parameters. how can you enable this dialog for your movieclips?

just found this handy tutorial.
http://www.flashcomponents.net/tutorials/triangle/triangle.html
The bit i’m struggling with though: is how to update the movieclip as it is on the stage, when you edit the component’s parameters in the parameters menu. i’m not quite understanding the as behind that. any help?