So you're referring to something like a dial that you might click and drag to rotate, but constrain to 180 degrees?
This is going to be a volume button. I've found a behavior in director that can be used for this, but it doesn't have any option to constrain to 180 degrees.
the behavior is "Drag To Rotate"
Yes, that's what I want, but when I save the file in MX2004 it gives an error. Please, can someone take a look and correct it for me. I can't find where the problem is. It asks for a comma... etc.
If you're using the code from the Director Online article, the problem may be the line continuation character, which looks like a sideways, flipped capital L after the getAngle (me, slope) statement.
newAngle = myPrevAngle + getAngle (me, slope) ¬
Delete that character and keep everything on line line, like this:
newAngle = myPrevAngle + getAngle (me, slope) - myClickAngle
Aside from that, the error message should be telling you more than just that it needs a comma. Some portion of the code is probably being shown. That will give you a clue as to where the problem is.