Join us in Outworldz at or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Water Flash_Water__cool_effect_for_Viewer  


Just drop this into any prim and then click it. It requires the media be enabled in viewer 2.0.

Category: Water
By : Ferd Frederix
Created: 2010-06-18 Edited: 2010-06-18
Worlds: Second Life

the Zip file

Download all files for Flash_Water__cool_effect_for_Viewer
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Flash_Water__cool_effect_for_Viewer_1.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 play()
2 {
3 string html = "
4 <html>
5 <head>
6 <object width=\"2048\" height=\"2048\" type=\"application/x-shockwave-flash\" data=\"\" id=\"sb-content\" style=\"visibility: visible;\"><param name=\"bgcolor\" value=\"#000000\"><param name=\"allowFullScreen\" value=\"true\"></object></body>
7 </html>";
9 // html = "data:text/html," + llEscapeURL(html); // you may need to escape funny chars
10 html = "data:text/html," + html; // or not, this depends upon your URL's
11 llSetPrimMediaParams(0, // Side to display the media on.
15 PRIM_MEDIA_AUTO_PLAY,TRUE, // Show this page immediately
16 PRIM_MEDIA_CURRENT_URL,html, // The url currently showing
17 PRIM_MEDIA_HOME_URL,html, // The url if they hit 'home'
18 PRIM_MEDIA_HEIGHT_PIXELS,2048 , // Height/width of media texture will be
19 PRIM_MEDIA_WIDTH_PIXELS,2048 // rounded up to nearest power of 2.
21 ]);
23 }
25 default
26 {
28 {
29 play();
30 }
33 {
35 }
36 }

Back to the Best Free Tools in Second Life and OpenSim.