Learn Flash FS Commands

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash Tutorial - FS Commands

 

Free Flash Tutorial


Step 1    <<   Previous      Intro   1   2   3     Next   >>       >>   Webwasp Mates

 

Step One: The Flash Buttons

  1. Open a new Flash Movie.
  2. Make a simple set of buttons you would to use for your web site.
  3. Now on any of the buttons you wish to use to run some javascript code with, attach the following code to the button:

  4.     on (release, releaseOutside) {
            
    fscommand("0", "click");
        }
        
    on (rollOver, dragOver) {
            
    fscommand("0", "over");
        }
        
    on (rollOut, dragOut) {
            
    fscommand("0", "out");
        }



  5. You can add this code to one or more buttons. Each time however you add this code to a new button you must change the number "0" that appears in the code three times. Every time you add the code to a new button you would increase "0" by 1 like so:

    Code for second button:


  6.     on (release, releaseOutside) {
            
    fscommand("1", "click");
        }
        
    on (rollOver, dragOver) {
            
    fscommand("1", "over");
        }
        
    on (rollOut, dragOut) {
            
    fscommand("1", "out");
        }

    Code for third button:

        on (release, releaseOutside) {
            
    fscommand("2", "click");
        }
        
    on (rollOver, dragOver) {
            
    fscommand("2", "over");
        }
        
    on (rollOut, dragOut) {
            
    fscommand("2", "out");
        }


        Etc.

        Note: You must always start at "0" and keep going up in number by "1" each time you add the code to a new button.

  7. Export the movie as a Flash Movie (swf file): File > Publish

         

Step 1    <<   Previous      Intro   1   2   3     Next   >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates 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.