UI buttons

I am trying to incorporate UI buttons in my game since they look pretty self explanatory. I have been running into a few questions…

Is it possible to rotate a UI button or image

  
 local button1 = ui.newButton{  
 default = "images/button1.png",  
 over = "images/button2.png",  
 onPress = button1Press,  
 onRelease = button1Release,  
 text = "Play",  
 emboss = true,  
  
  
 }  
  
 button1.x = \_W/2; button1.y = \_W/2  

I would like to rotate everything such as the pictures and the text, but a simple command of rotation = 90 does not work.
and my last question. just to make sure, does the following code erase the ui button from memory just like any display object?

button1:removeSelf()  
button1 = nil  

Thanks,
Brian [import]uid: 24708 topic_id: 14677 reply_id: 314677[/import]

Don’t know the first, but yes, your code is correct for the 2nd.

Have you tried putting the widgets in a group and rotating the group AFTER you do so? [import]uid: 23693 topic_id: 14677 reply_id: 54313[/import]

[lua]local button1 = ui.newButton{
default = “images/button1.png”,
over = “images/button2.png”,
onPress = button1Press,
onRelease = button1Release,
text = “Play”,
emboss = true
}
button1.x = _W/2; button1.y = _W/2
button1:rotate = (90)[/lua]
[import]uid: 83851 topic_id: 14677 reply_id: 54491[/import]

Bwwhahaha, dude, figured it out: it’s

[lua]button1.view.rotate = 90[/lua] [import]uid: 23693 topic_id: 14677 reply_id: 54794[/import]