I have this javascript and actionscript and if i publish to
player 7 they both work but not when i publish to player 8? is
there something in the script that i need to change or is it not
possible with player 8?
thanks... Peter
This is the script that i paste in the head of the html:
<script type="text/javascript">
<!--
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>
this is the FLASH ACTION SCRIPT that i paste on a
frame or a button:
getURL ("javascript:shake(5)");