Using an IF Statement to check if the mouse has been clicked?

Hey all,

I’m trying to write an if statement so that when the user clicks on my button i tween some content in.

Here is my AS Code:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]news.[COLOR=#0000FF]onRelease[/COLOR] == [COLOR=#000000]true[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#000000]function[/COLOR] newsContentCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
easeType = mx.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]easing[/COLOR].[COLOR=#000080]Elastic[/COLOR].[COLOR=#000080]easeOut[/COLOR];
[COLOR=#000000]var[/COLOR] begin = [COLOR=#000080]0[/COLOR];
[COLOR=#000000]var[/COLOR] [COLOR=#0000FF]end[/COLOR] = [COLOR=#000080]70[/COLOR];
[COLOR=#000000]var[/COLOR] nbegin = [COLOR=#000080]250[/COLOR];
[COLOR=#000000]var[/COLOR] nend = [COLOR=#000080]180[/COLOR];
[COLOR=#000000]var[/COLOR] [COLOR=#0000FF]time[/COLOR] = [COLOR=#000080]0[/COLOR].[COLOR=#000080]9[/COLOR];
[COLOR=#000000]var[/COLOR] mc1 = newsTitle;
[COLOR=#000000]var[/COLOR] mc2 = nContent;
boxTween = [COLOR=#000000]new[/COLOR] mx.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]Tween[/COLOR][COLOR=#000000]([/COLOR]mc1, [COLOR=#FF0000]"_y"[/COLOR], easeType, begin, [COLOR=#0000FF]end[/COLOR], [COLOR=#0000FF]time[/COLOR], [COLOR=#000000]true[/COLOR][COLOR=#000000])[/COLOR];
boxTween = [COLOR=#000000]new[/COLOR] mx.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]Tween[/COLOR][COLOR=#000000]([/COLOR]mc2, [COLOR=#FF0000]"_y"[/COLOR], easeType, nbegin, nend, [COLOR=#0000FF]time[/COLOR], [COLOR=#000000]true[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]

Cheers in advance all :smiley: