I have 7 buttons. When I mouseover / mouseout each button I animate it so it slightly shifts its position. Currently I have to create a separate function each button, for example...
hypeDocument.setElementProperty(home, 'left', -200, 0.1, 'easeinout')
hypeDocument.setElementProperty(home, 'left', -210, 0.1, 'easeinout')
I would like to create a single custom behavior that can be used for all buttons. I would need to pass parameter such as left position though. Is this possible or am I stuck creating 14 different functions (7x2)?