2 posts tagged with actionscript by Grod.
Displaying 1 through 2.
Flash 8 code question: [more inside]
posted on Oct 20, 2006 - 9 answers ![]()
OK. So I have five movie clips on the stage named b1 - b5. When the user clicks on one the other four need to gotoAndPlay. I could write a function for one object then cut and paste and just change the names, but that seems inelegant. What I think I need to do is generate an array containing the five objects, then, when the user clicks on one of them, that one is removed from the array and triggers a function that loops through the remaining clips in the array and does the goto. Does that make sense? And if so, how would I do it? And if not, what is a better way? In other words, user clicks on movie named b1 and b2-b5 do something. user clicks on movie named b3 and b1,b2,b4, and b5 do something. Thanks! [more inside]
posted on Jun 29, 2006 - 22 answers ![]()