W
Whoop
Moin ich hab nen kleines Problem...
ich möchte ein Javascript in meine Flash Animation einsetzten.
Es handelt sich dabei um ein "Shake-Script":
<SCRIPT LANGUAGE="JavaScript1.2">
function shake_xy
{
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
{
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
{
if (self.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(0,-i);
}
}
}
}
//-->
</SCRIPT>
Das muss aber an einer bestimmten Stelle ausgelöst werden ...wie mache ich das?
Danke schonmal im Vorraus!
Whoop
ich möchte ein Javascript in meine Flash Animation einsetzten.
Es handelt sich dabei um ein "Shake-Script":
<SCRIPT LANGUAGE="JavaScript1.2">
function shake_xy

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

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

if (self.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(0,-i);
}
}
}
}
//-->
</SCRIPT>
Das muss aber an einer bestimmten Stelle ausgelöst werden ...wie mache ich das?
Danke schonmal im Vorraus!
Whoop