Let’s say I have 10 links with names diff_1,diff_2,diff_3, diff_4, diff_5, rush_1, rush_2, rush_3, rush_4, rush_5. I want them all to share a common function that will change the icon of the objects below the current one clicked. Aka, if you click rush_5, it changes the icon of rush_4 down to diff_1.

Now I don’t want to write  out a huge case statement and am having troubles referencing them dynamically. Let’s say I sent into the function - myFunc(“diff_4”). How would I run through diff_3 and down knowing this? Having issues with doing this dynamically and I know it’s easy, but any help would be nice.

Thanks guys,
Jon



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to