home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kompuutteri Kaikille K-CD 2003 #3
/
K-CD_2003-03.iso
/
Winamp
/
winamp3_0-full.exe
/
Skins
/
Default.wal
/
scripts
/
firststart.m
< prev
next >
Wrap
Text File
|
2002-07-22
|
777b
|
35 lines
#include <lib/std.mi>
Global Boolean startit;
Global GuiObject ThingerIcon;
Global Timer timor;
System.onScriptLoaded() {
startit = 0;
if (getPrivateInt("firststart", "done", 0) == 1) return;
startit = 1;
}
System.onScriptUnloading() {
if (timor != NULL) delete timor;
}
System.onPlay() {
if (!startit) return;
startit = 0;
Layout l = getContainer("main").getLayout("normal");
if (l == NULL) return;
ThingerIcon = l.findObject("Thinger");
if (ThingerIcon == NULL) return;
ThingerIcon.onNotify("forcedwobbling", "", 1, 0);
setPrivateInt("firststart", "done", 1);
timor = new Timer;
timor.setDelay(3000);
timor.start();
}
timor.onTimer() {
ThingerIcon.onNotify("forcedwobbling", "", 0, 0);
timor.stop();
}