I’m learning ActionScript 3 (basically learning ActionScript properly, rather than my haphazard approach to AS1 before)

Today I have learned about event listeners, and have figured out for myself how to implement the modulo operator!

 The linked walking clip is only 19 frames long, but modulo allows me to loop through them based on the mouse’s x position. Modulo sets the upper limit on the number by using remainders: if the x position is 23, after the modulo operation, the number given is 4.

 Not the best explanation,  but I feel very pleased with myself! Hooray!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s