A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Browser Shake

  1. #1
    Senior Member
    Join Date
    Feb 2003
    Posts
    225

    Browser Shake

    How exactly do you make the browser shake - is it a script? for instance - http://www.soulplane.com/main.php - when the plane drops down the browser shakes - if anyone could help I'd really appreciate it - thanks in advance

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    www.flash-db.com/PopUp can generate any code you want. Shakes, moves, resize and so on.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

  4. #4
    Senior Member
    Join Date
    Feb 2003
    Posts
    225
    Hello - I tried both of the replys but still having difficulties - In my .swf - I want the browser to shake on frame 10 - is there a certain action script I add to this?

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You have to add the shaking javascript function call on frame 10.

  6. #6
    Senior Member
    Join Date
    Feb 2003
    Posts
    225
    I added the following script to frame 10 -

    javascript:shake_xy(4)

    is there something I'm forgetting?

  7. #7
    Senior Member
    Join Date
    Feb 2003
    Posts
    225
    Can anyone help me Please -

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well there's certainely a getURL missing...

    getURL("javascript:shake_xy(4)");

    Other than that I'll have to check the tutorial, to see if that's really the name of the function, which by the way, should be included in your html that holds your Flash movie. And this has to be tested through the html, and not only from the Flash application.

    Just checked and the above should work, assuming you test this through the html.
    Note also that this interrupts the Flash movie from playing while the shaking is occuring.
    Last edited by oldnewbie; 05-18-2004 at 03:40 PM.

  9. #9
    Senior Member
    Join Date
    Feb 2003
    Posts
    225
    Hmmm - I still can't get it to work - I attached my Test .fla - if you can take a look at it - that'll be great - and where do I add the info to the .html tag -
    Attached Files Attached Files

  10. #10
    Senior Member
    Join Date
    Feb 2003
    Posts
    225
    Can anyone Please help me - thanks in advance

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