14. We now need to update our count variable: mycount = mycount + 1; Now we can use our count to set something different to happen every 20 rings, using the white version of the ring we made earlier. if( mycount % 20 == 0 ){ obj.ring.gotoAndStop(2); } Finally don’t forget to put a close bracket on the whole animation: }


15. Save, export and zoom down your tunnel. Try different shapes within the ring animation and different colours of both the ring and the background shading, to see what else could work. You’re now able to use these skills and this coding in your own work.

Tip

Once you’ve made your file, try increasing the rotation number or even adding a different attribute altogether such as alpha. Also try to add an ‘if’ statement to fade sections of the tunnel out and back in again based on the count variable.


Who: Creative director of digital agency Rare Design Associates, Steve Simmonds has 11 years’ experience in online campaigns. He specializes in bridging the gap between design and programming.
Contact: www.wearerare.com
Software: Adobe Flash CS3, Adobe Photoshop
Time to complete: 4 hours
On the CD: Files for this tutorial can be found on the cover CD.