Hi,

Does anyone know how to:

1. create an array of buttons with different gif files
as images.

or

2. reference an element as a variable using JS.



The code I tried to make work as follows:

on "button1" button press
btn = "button1"

JS action
Element(btn).position.x = 100 --- this doesn't work
Element("button1").position.x = 100 --- this works but I have 15 buttons and would prefer to use less code.


All suggestions gratefully received.

Regards,
a_non_amous.