|
|
|
#1 |
|
Junior Member
Join Date: May 2004
Location: calgary canada
Posts: 1
|
looking for a tutorial for THIS type of transition
Im just starting to learn actionscript and I was hoping someone would have a little feedback on how to do something similar to the transitions on this site.
http://www.jiolahy.it/ Im thinking its just a mask with script repeating a pattern which gradually changes, but i need some input from the experts.... thanks FDR |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2004
Location: Los Angeles
Posts: 2,920
|
Your assumption is right. I wrote this bit of code to mimic the effect - it creates a mask movieclip that can be used to mask an image. In this example, it's just masking a big red box.
To view the effect, attach this code to the timeline of a new blank movie. It looks better with a higher framerate (24 fps or better). The basis of the effect is a cosine wave that is used to oscillate the little boxes a random number of times. Some of the troublesome math in the script below is based on the property of the cosine wave - it has a cycle which 'ends' every 2*PI. In this code, the little boxes do a complete cycle every second. They are randomized so they are out of phase with each other. They oscillate for a few cycles and than stop. The duration of oscillation is chosen so that the position of the waveform at the end of the oscillation will be at it's maximum value (so the box will be 'maxed out'.
|
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|