Help please with "Callback" functions

[font=Times New Roman]I’m using a callback function for a button instance’s “onPress” callback event. [/font]

[font=Times New Roman]The function, which is defind within a larger script & in the first frame of the movie, is as follows:[/font]

[font=Times New Roman][color=darkorchid]function move (direction){[/color][/font]

[font=Times New Roman][color=darkorchid]curItem-=direction;[/color][/font]

[font=Times New Roman][color=darkorchid]curItem=Math.min(allProducts.length-1,curItem);[/color][/font]

[font=Times New Roman][color=darkorchid]curItem=Math.max(0,curItem);[/color][/font]

[font=Times New Roman][color=darkorchid]updateDisplay();[/color][/font]

[font=Times New Roman][color=darkorchid]}[/color][/font]

[font=Times New Roman][color=darkorchid]function updateDisplay(){[/color][/font]

[font=Times New Roman][color=darkorchid]description_txt.text=allProducts[curItem].price;[/color][/font]

[font=Times New Roman][color=darkorchid]}[/color][/font]

[font=Times New Roman][color=darkorchid]back_btn.onPress=move(1);[/color][/font]

[font=Times New Roman]All this does, when I test the movie, is put the amount for the first item in the array that I’m addressing in the text box – But this happens before any button is pressed & as soon as the movie loads.[/font]

[font=Times New Roman]I have placed the same function call actually on the button instance & it works fine.[/font]

[font=Times New Roman]Any ideas please.[/font]

[font=Times New Roman](Complete fla attached for full script info.)[/font]

Use this code instead:

back_btn.onPress=function(){
move(1);
}

Thanks claudio works a dream - But how come my original version works most of the time (in other scripts) but not in this case?