|
||||||
|
||||||
Create a Whiteboard or Blackboard
Free
Flash Tutorial
Step Four: Delete Button ActionScript
Button Selected.
Important Note: Make sure that you can see Actions - Button at the top of the Actions Panel:
The Actions Panel has Actions - Button in the top corner.
on (release) {
myLine.clear();
}
Note: You should be able to draw and use your delete button.
Well done - your Movie is finished!
Explanation of ActionScript - Button
on (release) {
On release of the mouse button.
myLine.clear();
Delete myLine
}
End of script.
Example
of a Paint
program created with this same ActionScript
Example: Download
the Flash file Beg 018c
A Paint program made with this same script. The whole
file is only 6KB!
Notes: The above Movie has variables in the line:
myLine.lineStyle(myWidth, myColour, myAlpha);
These variables are controlled by the sliders which enables the user to change the paint settings as they draw.
For a tutorial on variables click here
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
20639 visitors to this page since 20 Sept 0604 |
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|