Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Creative Suite

  • Print
  • + Share This
This chapter is from the book

Coding the Multiple Movement Algorithm

The brute-force way to make this work is to simply take your previous slide code, copy and paste the same code underneath the original code, and then alter this second part so that it affects the movie clip called panel2. As a result, you would end up with four if statements. That's reasonable when you only have two things to slide, but what if you had 5 or 10? What I want to do is show you a much more efficient way of coding this using something you will fall in love with—functions.

  • + Share This
  • 🔖 Save To Your Account