1) In the openStack handler of my stack, I want to position the stack slightly above the center of the screen. I tried using the following code:
Code: Select all
set the loc of this stack to the screenLoc
set item 2 of the loc of this stack to (item 2 of the loc of this stack - 30)
compilation error at line 17 (Properties: token is not a property) near "item", char 10
Can someone explain to me what the error message means? And what the correct way is to script what I need?
--------------------------
2) I want the user of my stack to be able to choose whether or not to have a backdrop behind the stack. I created an optionMenu button with two options: Yes and No, and wrote the following script.
Code: Select all
on menuPick pItemName
switch pItemName
case pItemName = "Yes"
set the backdrop to 100,100,100
break
case pItemName = "No"
set the backdrop to none
break
end switch
end menuPick