vendredi 4 mars 2016

Using actionscript to randomize layers with motion paths in Flash

So Im looking to improve a little pet project I have, and while Im sure I can find what I need in adobe livedocs I dont think Im using the right language.

Essentially I have set up a background image, with a series of pulses that follow a motion path each on a separate layer in the timeline. Now I could stagger the frames and timeflow easy enough, but I want to do something more.

What Im hoping is I could use AS3 to randomize which layer(s) play in each iteration of the loop and randomly change the direction of the motion path and/or speed as well. Should be pretty simple with the random function, just not sure how to call a layer. Is there a way to assign an instance name to each one?

Anywho, heres the link:

Random Pulses




Aucun commentaire:

Enregistrer un commentaire