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?