Flash Tema Düzenleme
-

bu temayı telefona kurdum, türkçeleştirdim fakat saat kısmını ayarlayamadım. örnek 00:28 olması gerekirken 0:28 gösteriyo bunu nerden düzeltebilirim.
function dodate()
{
var _loc2 = new Array("Ocak", "Şubat", "Маrt", "Nisan", "Маyıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık");
var _loc3 = new Array("Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi");
var _loc1 = new Date();
fulldate.text = _loc1.getDate() + " " + _loc2[_loc1.getMonth()] + " " + _loc3[_loc1.getDay()];
}
function dotime()
{
var _loc1 = new Date();
hours_locked.text = _loc1.getHours();
if (_loc1.getMinutes() < 10)
{
minutes_locked.text = "0" + _loc1.getMinutes();
return;
}
minutes_locked.text = _loc1.getMinutes();
}
function goback()
{
if (goingback)
{
slider._x = slider._x - 15;
}
if (slider._x <= 45)
{
slider._x = 44;
clearInterval(intervalid);
goingback = false;
}
}
function nextWallpaper()
{
loadMovie("", wallpaperMovie2);
++thei;
trace(thei + ".jpg");
wallpaperMovie2.loadMovie(theDir + "/wall/" + thei + ".jpg");
wallLoader.checkLoad.gotoAndPlay(2);
}
function doOnLoad()
{
pctLoaded = wallpaperMovie2.getBytesTotal();
trace(pctLoaded + "bytes");
if (pctLoaded == "-1")
{
nextWallpaperSWF();
}
}
function nextWallpaperSWF()
{
loadMovie("", wallpaperMovie2);
trace(thei + ".swf");
wallLoader.checkLoad1.gotoAndPlay(2);
wallpaperMovie2.loadMovie(theDir + "/wall/" + thei + ".swf");
}
function doOnLoadSWF()
{
pctLoaded1 = wallpaperMovie2.getBytesTotal();
trace(pctLoaded1 + "bytes");
if (pctLoaded1 == "-1")
{
thei = "0";
nextWallpaper();
}
}
function prevWallpaper()
{
loadMovie("", wallpaperMovie2);
--thei;
trace(thei + ".jpg");
wallpaperMovie2.loadMovie(theDir + "/wall/" + thei + ".jpg");
wallLoader.checkLoad.gotoAndPlay(2);
}
setInterval(this, "dodate", 1000);
dodate();
setInterval(this, "dotime", 1000);
dotime();
goingback = false;
slider.onMouseDown = function ()
{
if (_xmouse >= 15 && _xmouse <= 70 && _ymouse >= 346 && _ymouse <= 380)
{
startDrag(slider, 0, 44, 365, 195, 365);
}
}
;
slider.onMouseUp = function ()
{
slider.stopDrag();
if (slider._x < 190)
{
goingback = true;
intervalid = setInterval(goback, 20);
return;
}
_root.gotoAndStop("idle,3");
}
;
stop();
setInterval(this, "time", 1000);
time();
setInterval(this, "dodate", 1000);
dodate();
setInterval(MusicTitle, 500);
stop();
theDir = this._url.slice(0, this._url.lastIndexOf("/"));
var thei;
thei = 0;
nextWallpaper();
player2.player.loadMovie("player.swf");
_root.wallLoader._visible = false; -
function dotime()
{
var _loc1 = new Date();
hours_locked.text = _loc1.getHours();
if (_loc1.getMinutes() < 10)
{
minutes_locked.text = "00" + _loc1.getMinutes();
return;
}
minutes_locked.text = _loc1.getMinutes();
} -
Pessimistic bunu yazdı:
-----------------------------function dotime()
{
var _loc1 = new Date();
hours_locked.text = _loc1.getHours();
if (_loc1.getMinutes() < 10)
{
minutes_locked.text = "00" + _loc1.getMinutes();
return;
}
minutes_locked.text = _loc1.getMinutes();
}
-----------------------------olmadı kardeşim.
-
Pessimistic bunu yazdı:
-----------------------------function dotime()
{
var _loc1 = new Date();
hours_locked.text = _loc1.getHours();
if (_loc1.getMinutes() < 10)
{
minutes_locked.text = "00" + _loc1.getMinutes();
return;
}
minutes_locked.text = _loc1.getMinutes();
}
-----------------------------orda diyorki eger sayı 10 dan kucukse basına bi sıfır koy, sen bole yaparak basına iki sıfır koydurmussun
-
aLsanCaK bunu yazdı:
-----------------------------Pessimistic bunu yazdı:
-----------------------------function dotime()
{
var _loc1 = new Date();
hours_locked.text = _loc1.getHours();
if (_loc1.getMinutes() < 10)
{
minutes_locked.text = "00" + _loc1.getMinutes();
return;
}
minutes_locked.text = _loc1.getMinutes();
}
-----------------------------orda diyorki eger sayı 10 dan kucukse basına bi sıfır koy, sen bole yaparak basına iki sıfır koydurmussun
-----------------------------napıcaz hocam
-
function dotime()
{
var _loc1 = new Date();
if (_loc1.getHours() < 10)
{
hours_locked.text = "0" + _loc1.getHours();
return;
}hours_locked.text = _loc1.getHours();
elseif (_loc1.getMinutes() < 10)
{
minutes_locked.text = "0" + _loc1.getMinutes();
return;
}
minutes_locked.text = _loc1.getMinutes();
}aynı döngüyü saat için de uyarlamak istedim bunu bi denermisin..
edit : else if (_loc1.getMinutes() < 10) bu satırda else ile if ayrı olacak
-
saol dostum yardımların için başka bir temadan baarak düzelttim.
function dotime()
{
var _loc1 = new Date();
if (_loc1.getHours() <= 10)
{
hours_locked.text = "0" + _loc1.getHours();
}
else
{
hours_locked.text = _loc1.getHours();
}
if (_loc1.getMinutes() < 10)
{
minutes_locked.text = "0" + _loc1.getMinutes();
return;
}
minutes_locked.text = _loc1.getMinutes();
}
