Scripting is the only way you can move an Object by a Variable, so you will need to Upgrade to OPUS. Go to OPUS XE, then you'll have ALL the power of OPUS.
The good news is this is very simple in OPUS. I created a Text Input Object and gave it a Variable name of "MoveMe." Then I created a Button Object, which by default already has a "Left Mouse Click" Trigger. I selected the Programming Tab (next to Action), then selected "Script".
To see samples and explanations, go to the Organizer and click the "Script" tab, then go down to "Graphical Objects" and highlight "MoveX". Right mouse click and select "Go To Help". You will see the Syntax "MoveX(PosX,Time,Wait) with explanations for each parameter. See the Example:
myImage.MoveX(50, 2.0)
This means you type the name of the Object you want to move (make sure it's one word without spaces), then a period, then "MoveX", then in parens put the amount you want to move, then the amount of time you want to take it to move. You can replace the fixed amount of movement with a previously created Variable:
myImage.MoveX(MoveMe, 2.0)
The Object "myImage" will move the Variable amount of "MoveMe". If it's a positive number it will move to the right. Negative numbers move left. It will take 2.0 seconds to move. If you want to move Vertically, use MoveY.
_________________ Fred Harms, Extraordinary Demos Naperville, Illinois (USA) 630/904-3636 demofred@aol.com
|