PDA

View Full Version : simple answer.



frette
February 15th, 2007, 03:12 PM
Hi.

Can anybody tell me hur i can call a item with a var?

var tempName = _root.nav.images."item_"+i;
tempName.gotoAndStop(tempLink);

You guys perhaps have a more simple way to do this.

//F

kortexvfd
February 15th, 2007, 03:26 PM
I assume tempLik is defined elsewhere?

I think what you are trying to do is:

var tempName = _root.nav.images["item_"+i];
tempName.gotoAndStop(tempLink);

frette
February 16th, 2007, 04:29 AM
You assumed just right!

thank you man