He,

I have a question, wich is probably very simple.
In a class I am looping through an array to make buttons;

for (var i : Number = 0 ; i < buttonList.length ; i ++)
{
        var btn = makeButton (listholder_mc , 0 , 0 , "labelTXT" );
        btn._y = 1 + (prevBtn._y + prevBtn._height);
        btn.onPress = Delegate.create (this, _onPress)
        btn.onRollOver = Delegate.create (this, _onRollOver)
        var prevBtn = btn;
}

As you can see I am assigning button handlers by using Delegate and pointing to a method of the class. My question is, is it possible to it by letting this class extend the MovieCLip class. And how would i do this.
Or is this the "normal" way to do it?

Jiri
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to