Search tutorials
Create the LED bar movieclip
Create a new movieclip symbol (let's call it mv_LEDbar) with 2 layers, name the upper layer LED mask and lower layer LED color. Drag an instance of mv_bar into the upper layer, position it at x=0, y=50.

Add the following movieclip action to the instance of mv_bar.
onClipEvent (enterFrame) {
indicator = Math.round(Math.random() * 100);
if (indicator <%gt%> 55 && this._y <%gt%> 5) {
this._y -= 10;
} else if (indicator <%lt%> 45 && this._y <%lt%> 55) {
this._y += 10;
}
}
| » Level Intermediate |
|
Added: 2002-09-22 Rating: 7 Votes: 78 |
| » Author |
| Raymond is the head of IT Department of CCC Yenching College, a secondary educational institute in Hong Kong. He is a system admin, a web application developer and a multimedia designer. He uses Flash extensively to develop educational software for the students of the institute. His current interests are 3D educational software development using Director Shockwave 3D and web application development using java and ColdFusion. |
| » Download |
| Download the files used in this tutorial. |
| Download (16 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!