Passing Values To a Function

[font=Verdana][size=2]Ok I have a gallery… All the images and the Title of each pic is in a DB, I get the data through xml and create an array object to hold all the image info , eg Title, Filename, Width, Height etc…[/size][/font]

I have an onRollOver Function (Thanks Kirupa) that produces hover text

each image in the gallery is added to the mc in a loop,

eg image=myMC.createEmptyMovieClip(“img”+i… etc

and I set the onRollOver Function as shown here…

[font=Verdana][size=2]image.Box.onRollOver = function() {
_root.x = 1;

_root.HT.txt.text = array[counter].strTitle;

this.fader._alpha = 100;


[/size][/font][font=Verdana][size=2]How Do I pass the value of array[counter].strTitle into the function… [/size][/font]
NB… image.Box is another MC that creates a little fade effect over the image…
[font=Verdana][size=2]I hope I have explained this properly.[/size][/font]
[font=Verdana][size=2]thanks guys[/size][/font]