
Код AS1/AS2:
#initclip
function pSelectGroup () {
this.Name = "";
this.SetVendors ("ffffff")
}
pSelectGroup.prototype = new MovieClip ();
Object.registerClass ("CSelectGroup", pSelectGroup);
pSelectGroup.prototype.SetVendors = function (val) {
var mc = this.attachMovie ("mcVendorCaption", "vendorCaption", 0);
mc.mcvCaption.text = val;
mc.onPress = this.press;
};
pSelectGroup.prototype.press = function () {
trace ("asdf");
};
#endinitclip