|
Scripts
Oct 23, 2010 9:35:51 GMT -5
Post by SWF Graphics on Oct 23, 2010 9:35:51 GMT -5
duplicateMovieclip (actionscript 1)
One script I found that works
Info This goes on a separate layer on the first keyframe of your movie...Name your rain mc rain... *****************************************************************************
MovieClip.prototype.regen = function() { i = 0; this.onEnterFrame = function() { i++; tropfen = i; set("fallspeed"+(i-1), Math.random()*15); rain.duplicateMovieClip("rain"+i, i); _root["rain"+i]._y = -10; _root["rain"+i]._x = Math.random()*550; _root["rain"+i].onEnterFrame = function() { if (this._y>400) { this.removeMovieClip(); } else { this._y += ["fallspeed"+i]; } }; }; }; _root.rain.regen();
|
|
|
Scripts
Oct 23, 2010 9:36:59 GMT -5
Post by SWF Graphics on Oct 23, 2010 9:36:59 GMT -5
Another script I found that works
Info This goes on a separate layer on the first keyframe of your movie... Name your rain mc rain... *****************************************************************************
MovieClip.prototype.regen = function() { i = 0; this.onEnterFrame = function() { i++; newRain = rain.duplicateMovieClip("rain"+i, i); newRain._y = -10; newRain._x = Math.random()*550; newRain.fallspeed = Math.random()*15+5; newRain.onEnterFrame = function() { if (this._y>400) { this.removeMovieClip(); } else { this._y += this.fallspeed; } }; }; }; _root.rain.regen();
|
|
|
Scripts
Oct 23, 2010 9:37:42 GMT -5
Post by SWF Graphics on Oct 23, 2010 9:37:42 GMT -5
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="400" HEIGHT="300" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"> <PARAM NAME="MOVIE" VALUE="yourmovie.swf"> <PARAM NAME="PLAY" VALUE="true"> <PARAM NAME="LOOP" VALUE="false"> <PARAM NAME="QUALITY" VALUE="high"> <PARAM NAME=MENU VALUE=false> <EMBED SRC="yourmovie.swf" WIDTH="400" HEIGHT="300" PLAY="true" LOOP="false" QUALITY="high" MENU="false" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT>
|
|
|
Scripts
Oct 23, 2010 9:39:04 GMT -5
Post by SWF Graphics on Oct 23, 2010 9:39:04 GMT -5
replace my graphic link with your own & change the size to the size of your graphic...
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"WIDTH=180 HEIGHT=238><PARAM NAME=movie VALUE="http://i179.photobucket.com/albums/w296/swfla/blog/obb-yarngirl-lg.swf"> <PARAM NAME=quality VALUE=> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=> <EMBED src="http://i179.photobucket.com/albums/w296/swfla/blog/obb-yarngirl-lg.swf" quality= bgcolor= WIDTH=180 HEIGHT=238 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
|
|