Setting opacity in a button object (InDesign CC Mac)
Hello everyone.
I have some code that looks like this:
| var TheButton = ThePage.buttons.add({geometricBounds:[Top, Lef, Bot, Rgt], opacity: .2, name:"EMailButton" + n}); | ||
| with(TheButton) | ||
| { | ||
| bottomLeftCornerOption = CornerOptions.ROUNDED_CORNER; | ||
| bottomRightCornerOption = CornerOptions.ROUNDED_CORNER; | ||
| topLeftCornerOption | = CornerOptions.ROUNDED_CORNER; | |
| topRightCornerOption | = CornerOptions.ROUNDED_CORNER; | |
| name = EMailList | ||
| label = EMailList | ||
| fillColor = gButtonFillColor; | ||
| opacity = 20; | ||
| } |
Theh problem is in the final line. I am trying to adjust the opacity of the fill in this object but the method I am using is not working. I have looked all over for the correct syntax for adjusting the fill color opacity and I cannot find an example of code, nor does the documentation seem to address this issue,
Can anyone tell me how to adjust my opacity or tell me where to look for finding out that information?
I would greatly appreciate any help this forum could give me.
R,
John
