Setting the visible of elements dynamically...

Hi All

perhaps you can save me a load of time and frustration!!

I am trying to dynamically set the visible of a set of elements in a script with the following loop

for ( var i = 0 ; i < 7 ; i++ )
{
forms.nav_splash.elements.[“btn_g_”+i].visible = true;
}

I am currently getting an error missing name after .operator can anyone tell me what I am doing wrong here or better still point me in the right direction!

Thanks in advance

Gordon

Gordon,

Remove the . after elements. Treat it like an array. forms[‘xxx’], elements[‘xxx’], globals[‘xxx’] etc.

Scott

Cheers Scott that worked a treat!

Gordon