This. question

[AS]
on (press) {
_root.ynew = this._y+(this._height/2);
}
[/AS]

when i use that with ‘this’ it doesnt work like i expect but when i give the object an instance name and replace ‘this’ with that name it does work like i think it should. Am i totally missing what ‘this’ does?

Thanks

Cody

when used ON buttons, this refers to the timeline the button is placed. When this is used ON movieclips, it refers to THAT movieclip.

thanks for the reply

how do you recommend to use more then one button

i was going to do something like this: http://www.kirupa.com/developer/actionscript/duplicate.htm in a loop

but what would do?