# Browser Shake try that didnt work with flash8

**URL:** <https://forum.kirupa.com/t/browser-shake-try-that-didnt-work-with-flash8/168362>\
**Category:** design\
**Created:** [November 6, 2005, 3:31pm UTC](https://forum.kirupa.com/t/browser-shake-try-that-didnt-work-with-flash8/168362 "2005-11-06T15:31:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcancert](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@kcancert](https://forum.kirupa.com/u/kcancert)\
**Post date:** [November 6, 2005, 3:31pm UTC](https://forum.kirupa.com/t/browser-shake-try-that-didnt-work-with-flash8/168362/1 "2005-11-06T15:31:37Z")

</div>

The Browser Shake tried with the scripts bellow didnt work with publish settings of flash 8 but it did work with publish settings of flash6. Can some oen help me with some modifications to make it work with flash 8.?

The script in the keyframe where browser should shake… is…

**getURL(“javascript:shake\_x(5)”);**

and the script in head of my htm page is …

\<SCRIPT LANGUAGE=“JavaScript1.2”\>  
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\>

can {  
someOne (“tellme”);  
}

How to make it compatible with flash8 woulbe Nice.
