Flash components › Flash files › Animated Backgrounds
Moving Lines
|
Posted on 2009 Apr 02 |
nice:! Great work!!!
|
Posted on 2009 Apr 02 |
thanks :)
Flash components › Flash files › Animated Backgrounds
|
Posted on 2009 Apr 02 |
|
Posted on 2009 Apr 02 |
Details
Uploaded: 29 March 2009
Opens With: Flash 8 (8+)
Files Included: FLA, AS, SWF, HTML
Size: 5kb
Action Script: AS2
Resolution: Resizable
Documentation: good
Keywords: moving, line, moving line, particles, curve, bezier curve, particle system, background,
Do you like this file?
Bundle:
Moving Line project (.swf, .fla and .as)
ParticleSystem and Particle classes (.as) !!!
Documentation from my site (see my profile) of moving line and particle system.
Architecture:
Moving line parts:
1) Random Bezier curve creation connected to each other
2) Line creation using points in Bezier curve
3) Update line's trail falling down alpha and deleting transparent lines (trail)
4) Particle system emitting particles from the head of moving line in opposite direction
First of all code creates Bezier curve, then using defined step in a loop code creates line using points in a curve. Each new line fall down alpha previous one, when line is transparent it will be deleted. Code create next curve when step in Bezier curve is at the end. First line (every new one) defines angle of particle system attached to it.
Initialization example:
Actionscript on Stage:
import MovingLine //main class
for(var i:Number = 0 ; i<3 ; i++){ //amount of moving lines
var ml:MovingLine = new MovingLine(_root["backgr1"]) //create new moving line with giving its layer
}