Javascript Shake? MX
how exactly can you make the html page shake through flash at a certain point... not on a button click, but when the movie reaches a certain frame?
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-25-2004, 07:31 PM
View Complete Forum Thread with Replies
Sponsored Links:
Shake Shake Shake, Shake Your Booty
Hey peeps (again)
I been buzzin around flashkit.com LOADS today, another movie im playing around with is a shake script.
http://www.flashkit.com/tutorials/Sp...-7/more4.shtml
Its great! easy and simple to edit but... on the demonstration I click the button, it does a funky bit of animation, then shakes. I can get it to shake with flash but the second I press/release the button/image. How do I put a delay on it, or make it work once it reachs the frame?
Many thanks
Matt
View Replies !
View Related
In-out-in-out Shake It All About
in-out:
i would very much like to do what i once saw on this chap's site, (the site no longer seems to exists).
he/she had a button which allowed the user to toggle between a full screen mode and browser window, marvellous!!
shake it all about:
i also saw on another site a feature which seemed to shake the browser window on a button click.
anybody got any clues what-so-ever? i would be very greatfull.
View Replies !
View Related
Shake
Hi,
One of the movie i made is compose of many images, comming one at the time. All the images are convert to objects. The problem i have is that the image seem to shake, juet like a little flickers, very fast but very annoying.
All those image come from 0 to 100% alpha in 5 frame, stay on for 4 secondes and disapeard in the same way. The shaking occurs in the 4 seconds still.
any idea?
p.s. i checked all the usual suspect, and i work with flash from the time it was still future splash! This, i never seen.
tanxs,
View Replies !
View Related
How Do I Shake It?
hi i have posted b4 bt i wasnt very clear i wana do this
http://www.flashkit.com/tutorials/Sp...en-7/index.php
but i dont want a button i want ti to start automaticaly i want it to be set it up so as soemthing falls from the top of the browser, as it lands it causes the screen to shake but i just cant seem to do it please some 1 help me as the fineshed result will look top cheers
View Replies !
View Related
Shake
How do i make the movie clip look "distorted"
like in this website after it loads you will see a picture of a girl and it will shake once and a while.
http://www.estars.co.kr/kjw/index.asp
View Replies !
View Related
Shake
i know not all browers support this, but i want a javascript code to shake the browser. i have a code but it doesn't work. and i tried other and can't seem to figure them out : help is much appreciated
View Replies !
View Related
Shake It
Hello people,
I have a quick newbie question that doesn't seem to make any sense at all to me. I have a MovieClip(emma) containing your letters(ee,m1,m2 & aa) which I want to shake when clicked on (one at a time).
Here's my code. Now why does the shakeIt function only work properly once when clicked on??
Code:
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
import flash.utils.Timer;
var letter:Object;
var firstPos:Number;
var timer:Timer = new Timer (20, 20);
timer.addEventListener(TimerEvent.TIMER, onTimer);
emma.ee.addEventListener(MouseEvent.CLICK, shakeIt);
emma.m1.addEventListener(MouseEvent.CLICK, shakeIt);
emma.m2.addEventListener(MouseEvent.CLICK, shakeIt);
emma.aa.addEventListener(MouseEvent.CLICK, shakeIt);
function shakeIt(e:MouseEvent):void {
letter = e.target;
timer.start();
firstPos = letter.x;
//trace(firstPos);
}
//And also, the function onTimer can access the letter variable but the trace statement below can't, whyyyyy?
trace(firstPos);
function onTimer(e:TimerEvent):void {
letter.x += Math.random() * 8 - 4;
letter.rotation = letter.rotation+5 | letter.rotation-5;
trace('timed');
}
function resetPosition(xPos:Number):void {
letter.x = xPos;
letter.rotation = 0;
}
//resetPosition(firstPos);
Thanks!
kjeft
View Replies !
View Related
Natzke Shake
I recall seeing some tutorial or fla regarding Natzke.com's too much coffee text look... it's an actionscript that shakes the text... can't find it... used searches... nadda
Anyone help?
View Replies !
View Related
Help Please W/ Browser Shake +
I set up a page w/ the browser shake.
It works fine.
The browser shake is javascript which I guess is
called by the button in the swf file
I want the button to be pushed then a sound and animation
begins.
I have it set up so the button is pushed and browser shake starts.
But, with the same button I want these other events to take place
I am pretty sure I cant,...on the same button do a
on release=browsershake
then on press=sound and animation
So in short, I want the browser to start shaking
when the button is pressed (which works now)
and a animation + sound (expolde sound) to start
How do I get these 3 events to happen on one button
Thanks
Kevin
View Replies !
View Related
Player Shake
Hello all! I am newbie and I am acually using swish to make a presentaion. I would like to add one more effect. I have an explosion sound and would like the player/browser to shake when that sound plays. Could anyone help me out with this? I have seen some of the other scipts and acually got the screen to shake, but only with html, not when I play my movie.
help!
thanks!
View Replies !
View Related
Browser Shake
hi,
ok this is a simple question.
i know it used to be on flashkit. But want to let the browser shake when i say in a flash movie. but does anybody know how?
i've searched under "shake" and "browser"
can't find it/
anybody?
thanks!
Tianshi
View Replies !
View Related
I Want My Feaking Mc To Shake
I can't figue out how to get my movie clip to shake 2 pixels up 2 pixels down. Flash is gettin' pissed at me, because I keep screwing up. Help please. Here is the code I am using:
onClipEvent (enterFrame) {
_x = x+1;
_y = _y+1
if (this._x>=2 and this._y>=2) {
this._x = 0;
this._y = 0;
}
}
but this screws up the position of my mc. I want it to be at x = 20.9 and y = 6.7 and shake from there.
View Replies !
View Related
Shake Button
I'm trying to write a little ActionScript that will shake a button when the cursor is over it using
Code:
setProperty("this", _x, random(5));
setProperty("this", _y, random(5));
The only thing is I want it to do this over and over until there is a roll out. Can anyone help me do this?
Thank you.
View Replies !
View Related
Browser Shake
I read a tutorial in here on how to make a browser shake...I tried to do it in Dreamweaver, but alas it did not work. Does anybody no why it wouldn't work?
Browser Shake Tutorial
View Replies !
View Related
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
View Replies !
View Related
Screen Shake
I noticed in some flash movies the user was able to make what ever window the flash file was in shudder and shake when ever some one big jumped. Does any one know how to do that ? as it would be really kewl !!!!!, thankies
View Replies !
View Related
Screen Shake
Hey guys,
I have an effect at some point in my Flash movie, where I want the screen to shake for about 3 seconds, starting out strong and fading away. Anyone know of a good tutorial pointing this out? Also, if it can be done with MX 2004 Pro?
Thanks,
Frankie B
View Replies !
View Related
Jittering Or Shake
I'm looking to make something jitter, that is shake and rotate, but more or less on the same place.
PHP Code:
onClipEvent (enterFrame) {
this._rotation = this._rotation+1;
}
I can make the item rotate and move in one direction, but I'd like to make it move a few pixels up down around etc. something like this...
PHP Code:
onClipEvent (enterFrame) {
this._x = this._x+1; or this._x-1
}
Excuse the simplicity of this question, but I haven't used actionscripts for ages and am shocked by how much I've forgotten.
View Replies !
View Related
Pick It Up And Shake It
Hi, I've got a bit of a problem and was hoping if someone could point me in the right direction with this.
Basically, I'm looking to suss out a good way to pick up objects (all affected by a main gravity that will kepp them grounded), but when you pick up an object rather than the simple stuff I'm trying to get it so that the user can shake an object. By that I mean you can shake it from side to side, up down, any angle and the object will swing with the motion of the mouse.
If you find it hard to visualise what i mean, pretend the mouse is the spring and swinging it will cause the object to move in the direction until it springs back into place when the mouse is still.
Any ideas?
View Replies !
View Related
Shake My Screen Please (help)?
THIS IS THE CODE I HAVE:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
}
}
}
}
// End -->
</script>
</HEAD>
<body>
<center>
<form>
<input type=button onClick="shake(2)" value="Shake Screen">
</form>
</center>
</body>
</html>
END CODE
I want to know how to make the screen shake without having to press a button, or even better make it to that i could click a button in flash and have it do this.
Thanks
View Replies !
View Related
Dot Shake Effect
I was working on a blood spewing particle effect and while working on that I came across this 'problem' not what I wanted but pretty cool so I'll post it here. It gives the illusion that the screen is shaking and it's pretty cool.
Btw, click where you want the dots to appear.
Ok here's a different variation of that...
http://www.filefactory.com/?f4fe6c
And here's basically what I was aiming for in the beggining.
http://www.filefactory.com/?6be478
View Replies !
View Related
Shake Effect Help
So I tried following the tutorial on this site but theres something wrong the code. I keep getting error.
Code:
**Error** Symbol=myMC, layer=Layer 2, frame=1:Line 4: ')' or ',' expected
duplicateMovieClip(tremble, "tremble" add c, c);
Total ActionScript Errors: 1 Reported Errors: 1
View Replies !
View Related
Check If Shake
Hi!
I'm new to this forum and kinda new to actionscript.
I'm trying to make a site, where you can move various movieclips around, and for that I use a simple drag function with easing, shown below...
_root.myMC.ease = 2;
_root.myMC.onPress = function() {
this.drag = true;
};
_root.myMC.onEnterFrame = function() {
if (this.drag == true) {
this.targX = _root._xmouse;
this.targY = _root._ymouse;
}
if (this._x != this.targX | this._y != this.targY) {
this._x += (this.targX-this._x)/this.ease;
this._y += (this.targY-this._y)/this.ease;
}
};
_root.myMC.onMouseUp = function() {
this.drag = false;
};
When moving the movieclip around, my idea is to have something happen to it, if the user shakes the movieclip. But I don't know how to check is the movieclip is shaking, does anyone have an idea as to how I'll do this?
Thanks
View Replies !
View Related
Shake My Screen Please (help)?
THIS IS THE CODE I HAVE:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
}
}
}
}
// End -->
</script>
</HEAD>
<body>
<center>
<form>
<input type=button onClick="shake(2)" value="Shake Screen">
</form>
</center>
</body>
</html>
END CODE
I want to know how to make the screen shake without having to press a button, or even better make it to that i could click a button in flash and have it do this.
Thanks
View Replies !
View Related
Shake Browser
Hey I want to know how to make the browser shake?
I know it's something like shakexy...but I don't get it.
Can someone tell me exactly how to do this??
I have made a movie and want on some particular frames the browser to shake.
Help :-<
Thnx
View Replies !
View Related
Shake Browser Window
Hi there.....
I got this script...
SCRIPT LANGUAGE="JavaScript1.2">
<!--
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
}
}
}
}
// -->
</SCRIPT>
to shake a browser window....
how do i change the script to make the shaking shorter??
View Replies !
View Related
Make A Button Shake?
Hello People,
Does anyone know how I could make a button shake when it is rolled over? I'm not sure how to make anything shake actually, but I'm wanting to shake my button
I know shake is used somewhere?
does anyone know?
thanks
View Replies !
View Related
SHAKE / Vibrating Effect
Hey guys, I've seen tutorials on how to make a browser window shake. But how do I make a graphic/movieclip shake violently like that. Meaning I dont want the entire window to shake, I want a button, or a logo to shake. Please help me I'm a noobie. Thanks.
View Replies !
View Related
Shake Browser Question
Hello, I would like to know how to shake the browser window. I know its not the greatest effect but when used properley, its pretty cool. This question has been asked a number of times, I am aware. I have tried some tutorials on it but when it is executed it has a clicking sound like your clicking a link or something, I dont want that. I want it to be silent like this http://www.webagent007.com/v3_entry.htm
can anyone help please?
View Replies !
View Related
Image Shake Prob.
I made a symbol of a group of 6 images fade in and out; each image appears from opacity 0 to opacity 100% in a sequence. The problem is when I display the movie the images shake in a light movement which does not seem professional at all. I checked the positions of all the images used in the symbol, and they all have the same x and y values.
Please advice, and tell me what might be the reason for this shake.
View Replies !
View Related
Making The Web Browser Shake
Can someone tell me how i can modify tha' actionscript to make the browser shake upon opening tha' page without creating a button or a link... Iz that possible?
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Modified by Flash kit http://www.flashkit.com -->
function shake_xy(n) {
if (self.moveBy) {
for (i = 10; 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>
View Replies !
View Related
|