|
||||||
|
||||||
Click by Click: Create a Whiteboard or Blackboard
See Full Version: This is a shortened click by click version of a: Full Length Tutorial
Free
Flash Tutorial
Learn how to create a Whiteboard or Blackboard that the user can draw with whist online. It is very surprisingly easy to create a Whiteboard / Blackboard and the file size is tiny. When you print it will print whatever you drawn on your board. It is that much more difficult to add different colours and brush size. At the end of this tutorial you will see an example of a simple Paint program created with this same script and the published Movie is only 6KB!
Click by Click: If you would like to view this tutorial without all the notes: Click by Click
Example: Download the
Flash file Beg 018a
Whiteboard: Click and Draw.
Example: Download the
Flash file Beg 018b
Blackboard: Click and Draw.
Step One: Setting Up the Document
Step Two: ActionScript - Timeline
_root.createEmptyMovieClip("myLine", 0);
_root.onMouseDown = function() {
myLine.moveTo(_xmouse, _ymouse);
myLine.lineStyle(2, 0xff0000, 100);
_root.onMouseMove = function() {
myLine.lineTo(_xmouse, _ymouse);
}
}
_root.onMouseUp = function() {
_root.onMouseMove = noLine;
}
Step Three: Placing the Delete Button on Stage
Step Four: Delete Button ActionScript
on (release) {
myLine.clear();
}
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!
See Full Version of this: Tutorial
|
•
10547 visitors to this page since 20 Sept 0604 |
|
|
Webwasp is Phil Schulz's baby. You are welcome to contact me or become my Facebook friend:
Click here
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.
|