A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Browser Shake? How do I?

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    19

    Browser Shake? How do I?

    Hey everybody. After searching through flashkit for some time I was unable to find a decent browser shake for my movie. Im looking for the script or whatever I would need to make the browser shake on an event and settle back to normal, no abrupt stop. If anyone has the script or movie with it that I could use or copy or see, that would help a lot! Thanks.

    Gabe

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    1,017
    if u want the browser to shake u need to use javascript, if u want to shake just your flash movie then u can use actionscript.
    which one do u want?
    mey the swartz be with you

    http://www.amirlotan.com

  3. #3
    Senior Member Sunnyat's Avatar
    Join Date
    Apr 2002
    Location
    Sydney, Australia
    Posts
    336
    OK buddy....

    this is the steps: (by the way if you want the fla file just e-mail me)
    [blue]
    <HEAD>
    <TITLE>OvalZenith.iwarp.com
    </TITLE>
    <SCRIPT LANGUAGE="JavaScript1.2">

    function shake_xy(n) {
    if (self.moveBy) {
    for (i = n; i > 0; i--) {
    self.moveBy(0,i);
    self.moveBy(i,0);
    self.moveBy(0,-i);
    self.moveBy(-i,0);
    }
    }
    }
    </script>

    </HEAD>
    [/blue]
    [red]You put this in the .html[/red]

    And then you put this:
    javascript:%20shake_xy(8) in one of your frames as the http:// then >>javascript:%20shake_xy(8) and parrent window.

    That should do it.!!!!

  4. #4
    Junior Member
    Join Date
    Aug 2002
    Posts
    19

    rad

    Hey, Thanks! That was exactly what I was looking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center