I feel kind of silly asking this, but can anyone tell me whats wrong?
**
function overButton (ClipName) {
trace(“workingOver " +ClipName);
ClipName.submenu.surroundings.heading.colorTo(“0x0099FF”,.2,“easeInOutSine”);
ClipName.submenu.surroundings.heading.tween(”_x",5,.2,“easeInOutSine”);
ClipName.submenu.surroundings.back.alphaTo(100,.2,“easeInOutSine”);
trace(“workingover complete”);
}
**
Say ClipName is commercial the trace comes out fine with commercial inserted. Even when i replace ClipName with “commercial” (no quotation marks) and hard code it in, the function works! but not with the parameter.
this is my code when I call the function:
on (rollOver){
_root.overButton(commercial);
}
Can anyone tell me where im going wrong?
Cheers!