Easy way to change the defaultFrame / overFrame of a button widget on press?

Is there an easy way to change the defaultFrame / overFrame of a button widget on press?

I’ve tried a couple things to no avail. 

Thanks,

Gullie667

Hi @Gullie667,

I’m not sure I understand… you want to change this to something “dynamic”, like a button has numerous different states that can change dynamically at different points in the app? For example, it starts with one pair of default/over frames, then later switches to another pair of default/over frames?

Thanks,

Brent

Correct… Image a button that is changing state but not being removed…

Touch  = Scalse up a bit

Move off = Scales back down

Release = Activates and changes the default and over frames. (and other stuff)

OnRelease, if I try and just set the overFrame = (Somthing other than current) it doesn’t seem to work

I am guessing that is right and I my syntax isn’t off b\c it doesn’t exist right? (currentButton.overFrame = 2 for example, doesn’t work)

Hi @Gullie667,

I’m not sure I understand… you want to change this to something “dynamic”, like a button has numerous different states that can change dynamically at different points in the app? For example, it starts with one pair of default/over frames, then later switches to another pair of default/over frames?

Thanks,

Brent

Correct… Image a button that is changing state but not being removed…

Touch  = Scalse up a bit

Move off = Scales back down

Release = Activates and changes the default and over frames. (and other stuff)

OnRelease, if I try and just set the overFrame = (Somthing other than current) it doesn’t seem to work

I am guessing that is right and I my syntax isn’t off b\c it doesn’t exist right? (currentButton.overFrame = 2 for example, doesn’t work)