Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
Shaking browser window
Category : Flash | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Hello all.....This tutorial will show u how to add a shaking browser effect in flash MX.......

Make a basic flash animation then at a key frame...add this action
CODE
getURL("javascript:shake_xy(5)");


When you play the basic animation on the html file,
open the html file using notepad or wordpad and add this script:-
CODE
<script LANGUAGE="JavaScript1.2">
   function shake_xy(n) {
   if (self.moveBy) {
       for (i = 30; i > 0; i--) {
           for (j = n; j > 0; j--) {
           self.moveBy(0,i);
           self.moveBy(i,0);
           self.moveBy(0,-i);
           self.moveBy(-i,0);
           }
         }
      }
   }
   function shake_x(n) {
   if (self.moveBy) {
       for (i = 10; i > 0; i--) {
           for (j = n; j > 0; j--) {
           self.moveBy(i,0);
           self.moveBy(-i,0);
           }
         }
      }
   }
   function shake_y(n) {
   if (self.moveBy) {
       for (i = 10; i > 0; i--) {
           for (j = n; j > 0; j--) {
           self.moveBy(0,i);
           self.moveBy(0,-i);
           }
         }
      }
   }
   //-->
   </SCRIPT>


thts it.... smile.gif
this may scare you but,no worries at all... biggrin.gif
nowfel_n_87@msn.com


All rights reserved - swish-db.com