Create a Whiteboard or Blackboard

Home • Members Tutorials Forum iSnapChat Contact Us 

 


Flash Tutorials

   

Create a Whiteboard or Blackboard

Free Flash Tutorial


Step 4    <<   Previous      Intro   1   2   3   4    >>      

 

Step Four: Delete Button ActionScript

  1. Select the: Blue Button

  2. Button Selected.

  3. If the Actions Panel is closed open it: Window > Actions (F9)
  4. 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.

  5. Type (or copy and paste) the following Actionscript into Actions Box:
  6. on (release) {
        myLine.
    clear();
    }

  7. Go to: Control > Test Movie

    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

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Step 4    <<   Previous      Intro   1   2   3   4    >>      


31982 visitors to this page since 20 Sept 0604

Phil Schulz's Facebook Profile
Webwasp is Phil Schulz's baby. You are welcome to contact me or become my Facebook friend: Click here

 Top of Page HomeMembers Tutorials Forum iSnapChat Contact Us 
 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.