Hey guys, please help with this AS2 code. **I would very much appreciate it. **
I have an array of names as you can see. I’m simply trying to have those names pull in and show when I rollover a thumbnail which contains a dynamic text field “pName.” I have a for loop which controls the rollover events for the thumbs. I’m using the same ‘for’ loop to try and pull in the names but have a variable “current” set to “i”. However, when tested the dynamic text field is showing up as “undefined.” (I have embedded all fonts.)
var Names:Array = ["Bill Werber", "Bill Mock", "Ed Koffenberger", "**** Groat", "Art Heyman", "Jeff Mullins", "Jack Marin", "Bob Verga", "Mike Lewis", "Randy Denton", "Mike Gminski", "Jim Spanarkel", "Gene Banks", "Johnny Dawkins", "Mark Alarie", "Tommy Amaker", "Danny Ferry", "Christian Laettner", "Grant Hill", "Bobby Hurley", "Trajan Langdon", "Elton Brand", "Shane Battier", "Chris Carrawell", "Jason Williams", "Carlos Boozer", "Mike Dunleavy", "Chris Duhon", "Luol Deng", "JJ Re****", "Shelden Williams", "DeMarcus Nelson", "Gerald Henderson", "Jon Scheyer"];
var Thumbs:Array = [p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34];
for (var i = 0; i <= Thumbs.length && Names.length; i++)
{
var current = i
Thumbs*.onRollOver = function():Void
{
this.pName.text = Names[current];
select.start();
TweenMax.to(this,.4,{frame:10, ease:"linear"});
};
Thumbs*.onRollOut = function():Void
{
this.pName.text = "";
TweenMax.to(this,.4,{frame:1, ease:"linear"});
};
Thumbs*.onRelease = function():Void
{
//Code to change picture and profile information
};
}