-
Hi i've found this javascript and i can't find out wich action i have to use in the flash movie.
Can somebody help me with this.
The javascript with the full html code changed to my movie:
<html>
<head>
<title>H@RDW@RE - BETA V1.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
netscape = (navigator.appName == "Netscape");
n4 = netscape && (parseInt(navigator.appVersion) >= 4);
explorer = (navigator.appName == "Microsoft Internet Explorer");
ie4 = explorer && (parseInt(navigator.appVersion) >= 4);
function shake(n) {
if (n4 || ie4) {
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);
}
}
}
}
// End -->
</script>
<body bgcolor="#000000" onload="shake(0)" value="Shake Screen">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0"
ID=New Flash Intro 42 WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE="test.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="test.swf" menu=false quality=high bgcolor=#000000 WIDTH=100% HEIGHT=100% TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>
This are the actions in used:
set (onload=shake(0), "");
value="Shake Screen";
or
onload=shake()
value="Shake Screen"
None worked, so can somebody help me with this,
Thanks in advance,
WesBite
-
Here's the problem...or so it would appear...when you call the function, you pass it 0...if you look at the function where n is passed to...it wants a value > 0. At least that was my initial read on it. Try changing you number.
Change...
set (onload=shake(0), "");
to something like..
set (onload=shake(2), "");
-
I will try it out one other thing is i made a movie with a walking dinosaur and everytime its foot goes on the ground i want in that keyframe that the IE or netscape screen will shake, do i still have to the same actions for that and must i then put them in every keyframe where i want were the IE or Netscape screen will shake??
Thanks in advance,
WesBite
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|