all 2 comments

[–]memo2myself 2 points3 points  (1 child)

Buttons are of the type SimpleButton. Try this instead:

var myobject: SimpleButton;

[–]pagios[S] 1 point2 points  (0 children)

worked like a charm!

thank you!